import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { PropertyType } from '@prisma/client';
import { IsEnum, IsOptional, IsString } from 'class-validator';

export class GetMarketReportDto {
  @ApiProperty({ description: 'City name' })
  @IsString()
  city!: string;

  @ApiProperty({ description: 'Time period' })
  @IsString()
  period!: string;

  @ApiPropertyOptional({ enum: PropertyType, description: 'Property type filter' })
  @IsOptional()
  @IsEnum(PropertyType)
  propertyType?: PropertyType;
}
