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

export class Survey {
  @ApiProperty({ description: 'Survey ID' })
  id: number;

  @ApiProperty({ description: 'Survey title' })
  title: string;

  @ApiProperty({ description: 'Survey description' })
  description: string;

  @ApiProperty({ description: 'Target audience for the survey' })
  targetAudience: string;

  @ApiProperty({ description: 'Survey closing date' })
  closingDate?: Date;

  @ApiProperty({ description: 'Survey publication status' })
  published: boolean;

  @ApiProperty({ description: 'Survey questions' })
  questions: any[];

  @ApiProperty({ description: 'Creation date' })
  created_at?: Date;

  @ApiProperty({ description: 'Last update date' })
  updated_at?: Date;
}