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

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

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

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

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

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

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

  @ApiProperty({ enum: ['scheduled', 'running', 'completed', 'cancelled'] })
  @IsString()
  status!: 'scheduled' | 'running' | 'completed' | 'cancelled';

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