import { ApiProperty } from '@nestjs/swagger';

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

  @ApiProperty()
  questionId: string;

  @ApiProperty()
  questionText: string;

  @ApiProperty()
  answer: string[];
}

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

  @ApiProperty()
  gender: string;

  @ApiProperty()
  age: string;

  @ApiProperty()
  state: string;

  @ApiProperty()
  district: string;

  @ApiProperty({ required: false })
  pdfUrl?: string;

  @ApiProperty()
  isTicketCreated: boolean;

  @ApiProperty({ required: false })
  ticketId?: number;

  @ApiProperty({ required: false,example: 'TKT-123' })
  ticketToken?: string;

  @ApiProperty()
  createdAt: Date;

  @ApiProperty({ type: [QuestionResponseDto] })
  responses: QuestionResponseDto[];
}
