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

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

  @IsString()
  content: string;

  @IsOptional()
  @IsNumber()
  @Type(() => Number)
  score?: number;

  @IsOptional()
  @IsInt()
  @Min(0)
  sortOrder?: number;
}
