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

export class CreateScoreDto {
  @IsInt()
  workId: number;

  @IsInt()
  assignmentId: number;

  @IsObject()
  @IsOptional()
  dimensionScores?: any; // JSON object

  @IsNumber()
  @Min(0)
  @Max(100)
  totalScore: number;

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

