forked from Shared/esg
update the esg
This commit is contained in:
18
src/claims/schemas/field-expert.schema.ts
Normal file
18
src/claims/schemas/field-expert.schema.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
||||
import { HydratedDocument, Types } from 'mongoose';
|
||||
|
||||
export type FieldExpertDocument = HydratedDocument<FieldExpert>;
|
||||
|
||||
@Schema({ timestamps: true, collection: 'field_experts' })
|
||||
export class FieldExpert {
|
||||
@Prop({ required: true, trim: true })
|
||||
name!: string;
|
||||
|
||||
@Prop({ required: true, unique: true })
|
||||
expertCode!: number;
|
||||
|
||||
@Prop({ default: true })
|
||||
active!: boolean;
|
||||
}
|
||||
|
||||
export const FieldExpertSchema = SchemaFactory.createForClass(FieldExpert);
|
||||
Reference in New Issue
Block a user