forked from Yara724/api
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
|
|
|
|
export type DamagePartImage = DamagePartImageModel & Document;
|
|
|
|
@Schema({ versionKey: false, collection: "damage-part-image" })
|
|
export class DamagePartImageModel {
|
|
@Prop({ default: null })
|
|
path: string | null = null;
|
|
|
|
@Prop({ default: null })
|
|
fileName: string | null = null;
|
|
|
|
@Prop({ default: null })
|
|
claimId: string = null;
|
|
}
|
|
|
|
export const DamageImageModelSchema =
|
|
SchemaFactory.createForClass(DamagePartImageModel);
|