import { ApiProperty } from '@nestjs/swagger';
import { GenreType, StatutEnfantType } from 'src/entities/children.entity';

export class EnfantResponseDto {
  @ApiProperty({ example: 'UUID-enfant' })
  id: string;

  @ApiProperty({ enum: StatutEnfantType })
  status: StatutEnfantType;

  @ApiProperty({ example: 'Georges', required: false })
  first_name?: string;

  @ApiProperty({ example: 'Dupont', required: false })
  last_name?: string;

  @ApiProperty({ enum: GenreType, required: false })
  gender?: GenreType;

  @ApiProperty({ example: '2018-06-24', required: false })
  birth_date?: string;

  @ApiProperty({ example: '2025-12-15', required: false })
  due_date?: string;

  @ApiProperty({ example: 'https://monimage.com/photo.jpg', required: false })
  photo_url?: string;

  @ApiProperty({ example: false })
  consent_photo: boolean;

  @ApiProperty({ example: false })
  is_multiple: boolean;

  @ApiProperty({ example: 'UUID-parent' })
  parent_id: string;
}
