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

export type SkillLevel = 'beginner' | 'intermediate' | 'advanced' | 'pro';

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

  @ApiProperty()
  name!: string;

  @ApiProperty()
  memberCount!: number;

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

  @ApiProperty()
  totalWins!: number;

  @ApiProperty()
  totalRaces!: number;

  @ApiProperty({ enum: ['beginner', 'intermediate', 'advanced', 'pro'] })
  performanceLevel!: SkillLevel;

  @ApiProperty()
  isRecruiting!: boolean;

  @ApiProperty()
  createdAt!: string;

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

  @ApiProperty({ enum: ['endurance', 'sprint', 'mixed'], required: false })
  specialization?: 'endurance' | 'sprint' | 'mixed';

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

  @ApiProperty({ type: [String], required: false })
  languages?: string[];
}

