import { IsOptional, IsEnum, IsString, IsNumber, IsDateString } from 'class-validator';
import { OrderStatus, Priority } from '@prisma/client';

export class UpdateOrderDto {
  @IsOptional() @IsEnum(OrderStatus) status?: OrderStatus;
  @IsOptional() @IsEnum(Priority) priority?: Priority;
  @IsOptional() @IsString() description?: string;
  @IsOptional() @IsString() serviceType?: string;
  @IsOptional() @IsNumber() value?: number;
  @IsOptional() @IsString() notes?: string;
  @IsOptional() @IsString() internalNotes?: string;
  @IsOptional() @IsDateString() scheduledAt?: string;
  @IsOptional() @IsDateString() executedAt?: string;
  @IsOptional() @IsString() technicianId?: string;
}
