import { IsNotEmpty, IsOptional, IsString, IsBoolean, MaxLength } from 'class-validator';

export class CreateServiceTypeDto {
  @IsString() @IsNotEmpty() @MaxLength(255)
  name: string;

  @IsString() @IsNotEmpty() @MaxLength(50)
  code: string;

  @IsString() @IsOptional() @MaxLength(500)
  description?: string;

  @IsBoolean() @IsOptional()
  is_active?: boolean;
}
