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

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

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

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

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

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

  @ApiProperty()
  @IsNumber()
  position!: number;

  @ApiProperty()
  @IsNumber()
  incidents!: number;
}