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

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

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

  @ApiProperty({ enum: ['main', 'secondary'] })
  @IsEnum(['main', 'secondary'])
  tier: 'main' | 'secondary';

  @ApiProperty()
  @IsNumber()
  drivers: number;

  @ApiProperty()
  @IsNumber()
  races: number;

  @ApiProperty()
  @IsNumber()
  impressions: number;

  @ApiProperty({ enum: ['active', 'upcoming', 'completed'] })
  @IsEnum(['active', 'upcoming', 'completed'])
  status: 'active' | 'upcoming' | 'completed';
}