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

export class GetMarketSnapshotDto {
  @ApiProperty({ description: 'City name', example: 'HCMC' })
  @IsString()
  city!: string;

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