import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import {
  IsInt,
  IsNotEmpty,
  IsOptional,
  IsString,
  MaxLength,
} from "class-validator";

export class CreateCotizacionDto {
  @ApiProperty({ description: "ID de la OT" })
  @IsNotEmpty()
  @IsInt()
  otId: number;

  @ApiPropertyOptional({ description: "Notas" })
  @IsOptional()
  @IsString()
  notas?: string;

  @ApiPropertyOptional({ description: "UUID local para sync" })
  @IsOptional()
  @IsString()
  @MaxLength(36)
  localId?: string;
}
