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

export class LeagueConfigFormModelBasicsDTO {
  @ApiProperty()
  @IsString()
  name!: string;

  @ApiProperty()
  @IsString()
  description!: string;

  @ApiProperty({ enum: ['ranked', 'unranked', 'private'] })
  @IsEnum(['ranked', 'unranked', 'private'])
  visibility!: 'ranked' | 'unranked' | 'private';
}