forked from Yara724/api
Initial commit after migration to gitea
This commit is contained in:
32
src/users/entities/schema/insurer-expert.schema.ts
Normal file
32
src/users/entities/schema/insurer-expert.schema.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
|
||||
import { Types } from "mongoose";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
|
||||
@Schema({
|
||||
collection: "insurer-expert",
|
||||
versionKey: false,
|
||||
timestamps: true,
|
||||
})
|
||||
export class InsurerExpertModel {
|
||||
@Prop()
|
||||
firstName: string;
|
||||
|
||||
@Prop()
|
||||
lastName: string;
|
||||
|
||||
@Prop({ unique: true, required: true })
|
||||
email: string;
|
||||
|
||||
@Prop()
|
||||
password: string;
|
||||
|
||||
@Prop()
|
||||
role: RoleEnum;
|
||||
|
||||
@Prop()
|
||||
clientKey: Types.ObjectId;
|
||||
|
||||
createdAt: Date;
|
||||
}
|
||||
export const InsurerExpertDbSchema =
|
||||
SchemaFactory.createForClass(InsurerExpertModel);
|
||||
Reference in New Issue
Block a user