import { Gender, Language } from '@prisma/client';
import { ApiProperty } from '@nestjs/swagger';

export class UserEntity {
  @ApiProperty()
  id: number;

  @ApiProperty()
  email: string;

  @ApiProperty({ required: false, nullable: true })
  fullname: string | null;

  @ApiProperty({ required: false, nullable: true })
  dob: Date | null;

  @ApiProperty({ required: false, nullable: true, default: Gender.Female })
  gender: Gender | null;

  @ApiProperty({ required: false, nullable: true, default: Language.en })
  language: Language | null;

  phone: string;

  username: string;

  @ApiProperty()
  created_at: Date;

  @ApiProperty()
  updated_at: Date;

  @ApiProperty()
  deleted_at: Date;
}
