update the esg

This commit is contained in:
2026-06-20 18:18:48 +03:30
parent 539e7a4060
commit b3adb6f583
17 changed files with 1086 additions and 1 deletions

View 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);