import { IsEmail, IsOptional, IsString, MaxLength } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateEarlyAccessDto {
  @ApiProperty({ example: 'admin@example.com' })
  @IsEmail()
  email: string;

  @ApiPropertyOptional({ example: 'rust', description: 'Primary game interest or server count' })
  @IsOptional()
  @IsString()
  @MaxLength(10)
  server_count?: string;
}
