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' = 'main';

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

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

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

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