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

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

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

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

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

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

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