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

export class CreateGradeDto {
  @IsString()
  name: string;

  @IsString()
  code: string;

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

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

