import { IsInt, IsString, IsOptional, IsNumber, Min, Max } from 'class-validator';

export class CreateJudgeDto {
  @IsInt()
  contestId: number;

  @IsInt()
  judgeId: number;

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

  @IsNumber()
  @Min(0)
  @Max(1)
  @IsOptional()
  weight?: number;

  @IsString()
  @IsOptional()
  description?: string;
}

