Files
yara724api/src/request-management/entities/schema/expert-profile-snapshot.schema.ts
2026-04-20 18:19:25 +03:30

27 lines
559 B
TypeScript

import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
/**
* Immutable snapshot of the expert at reply time (field expert or damage expert).
* Stored on blame `expert.decision` and claim `evaluation.damageExpertReply*`.
*/
@Schema({ _id: false })
export class ExpertProfileSnapshot {
@Prop()
firstName?: string;
@Prop()
lastName?: string;
@Prop()
email?: string;
@Prop()
insuActivityCo?: string;
@Prop()
mobile?: string;
}
export const ExpertProfileSnapshotSchema =
SchemaFactory.createForClass(ExpertProfileSnapshot);