import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';
import { RaceResultDTO } from './RaceResultDTO';

export class RaceResultsDetailDTO {
  @ApiProperty()
  @IsString()
  raceId!: string;

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

  @ApiProperty({ type: [RaceResultDTO] })
  results!: RaceResultDTO[];
}