Files
yara724api/src/features/user/schemas/profile.schema.ts
2026-06-15 11:27:25 +03:30

19 lines
381 B
TypeScript

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