import { Optional } from '@nestjs/common';
import {
  IsArray,
  IsBoolean,
  IsNumber,
  IsOptional,
  IsString,
  IsUrl,
} from 'class-validator';

export class CreateBidDto {
  @IsUrl()
  url: string;

  @IsNumber()
  max_price: number;

  @IsNumber()
  @IsOptional()
  quantity: number;

  @IsNumber()
  @IsOptional()
  plus_price: number;

  @IsArray()
  @IsOptional()
  metadata: Record<string, any>[];
}
