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

export class RenewalAlertDTO {
  @ApiProperty()
  @IsString()
  id: string = '';

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

  @ApiProperty({ enum: ['league', 'team', 'driver', 'race', 'platform'] })
  @IsEnum(['league', 'team', 'driver', 'race', 'platform'])
  type: 'league' | 'team' | 'driver' | 'race' | 'platform' = 'league';

  @ApiProperty()
  @IsDateString()
  renewDate: string = '';

  @ApiProperty()
  @IsNumber()
  price: number = 0;
}