import { IsString, IsOptional, IsEnum } from 'class-validator';
import { Gender, UserStatus } from '../../users/dto/create-user.dto';

export class CreateJudgeDto {
  @IsString()
  nickname: string;

  @IsEnum(Gender)
  gender: Gender;

  @IsString()
  organization: string;

  @IsString()
  phone: string;

  @IsString()
  password: string;

  @IsString()
  @IsOptional()
  username?: string;

  @IsString()
  @IsOptional()
  email?: string;

  @IsString()
  @IsOptional()
  avatar?: string;

  @IsEnum(UserStatus)
  @IsOptional()
  status?: UserStatus;
}
