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

export class UpdateGradeDto {
  @IsString()
  @IsOptional()
  name?: string;

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

  @IsInt()
  @Min(1)
  @IsOptional()
  level?: number;

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

