import { ApiProperty } from '@nestjs/swagger';

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

  @ApiProperty()
  name!: string;

  @ApiProperty()
  rating!: number;

  @ApiProperty()
  skillLevel!: string; // Assuming skillLevel is a string like 'Rookie', 'Pro', etc.

  @ApiProperty({ required: false })
  category?: string;

  @ApiProperty()
  nationality!: string;

  @ApiProperty()
  racesCompleted!: number;

  @ApiProperty()
  wins!: number;

  @ApiProperty()
  podiums!: number;

  @ApiProperty()
  isActive!: boolean;

  @ApiProperty()
  rank!: number;

  @ApiProperty({ nullable: true })
  avatarUrl!: string | null;
}