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

export class RacesPageDataRaceDTO {
  @ApiProperty()
  @IsString()
  id!: string;

  @ApiProperty()
  @IsString()
  track!: string;

  @ApiProperty()
  @IsString()
  car!: string;

  @ApiProperty()
  @IsString()
  scheduledAt!: string;

  @ApiProperty()
  @IsString()
  status!: string;

  @ApiProperty()
  @IsString()
  leagueId!: string;

  @ApiProperty()
  @IsString()
  leagueName!: string;

  @ApiProperty({ nullable: true })
  strengthOfField!: number | null;

  @ApiProperty()
  @IsBoolean()
  isUpcoming!: boolean;

  @ApiProperty()
  @IsBoolean()
  isLive!: boolean;

  @ApiProperty()
  @IsBoolean()
  isPast!: boolean;
}