1
0
forked from Yara724/api
Files
yara724-api/src/claim-request-management/entites/schema/claim-case.snapshot.schema.ts

16 lines
556 B
TypeScript

import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import { AccidentInfo, AccidentInfoSchema } from "src/request-management/entities/schema/accidentInformation.type";
import { Party, PartySchema } from "src/request-management/entities/schema/partyRole.enum";
@Schema({ _id: false })
export class ClaimCaseSnapshot {
@Prop({ type: AccidentInfoSchema })
accident?: AccidentInfo;
@Prop({ type: [PartySchema], default: [] })
parties?: Party[];
}
export const ClaimCaseSnapshotSchema =
SchemaFactory.createForClass(ClaimCaseSnapshot);