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

export class DriverProfileStatsDTO {
  @ApiProperty()
  totalRaces!: number;

  @ApiProperty()
  wins!: number;

  @ApiProperty()
  podiums!: number;

  @ApiProperty()
  dnfs!: number;

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

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

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

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

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

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

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

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

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

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