forked from Yara724/api
Added expert field mirror flow
This commit is contained in:
18
src/features/user/schemas/profile.schema.ts
Normal file
18
src/features/user/schemas/profile.schema.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
|
||||
import { HydratedDocument } from "mongoose";
|
||||
|
||||
export type ProfileDocument = HydratedDocument<Profile>;
|
||||
|
||||
@Schema({ _id: false })
|
||||
export class Profile {
|
||||
@Prop()
|
||||
firstName?: string;
|
||||
|
||||
@Prop()
|
||||
lastName?: string;
|
||||
|
||||
@Prop()
|
||||
birthDate?: Date;
|
||||
}
|
||||
|
||||
export const ProfileSchema = SchemaFactory.createForClass(Profile);
|
||||
Reference in New Issue
Block a user