import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsEnum, IsNumber, IsDateString } from 'class-validator';

export class SponsorRaceDTO {
  @ApiProperty()
  @IsString()
  id: string = '';

  @ApiProperty()
  @IsString()
  name: string = '';

  @ApiProperty()
  @IsDateString()
  date: string = '';

  @ApiProperty()
  @IsNumber()
  views: number = 0;

  @ApiProperty({ enum: ['upcoming', 'completed'] })
  @IsEnum(['upcoming', 'completed'])
  status: 'upcoming' | 'completed' = 'upcoming';
}
