import { ApiPropertyOptional, OmitType, PartialType } from "@nestjs/swagger";
import { IsDateString, IsOptional } from "class-validator";
import { CreateOtDto } from "./create-ot.dto";

export class UpdateOtDto extends PartialType(
  OmitType(CreateOtDto, ["vehiculo", "localId"] as const),
) {
  @ApiPropertyOptional({ description: "Fecha de salida (ISO)" })
  @IsOptional()
  @IsDateString()
  fechaSalida?: string;
}
