import { IsInt, IsPositive, IsString, IsNotEmpty } from 'class-validator';

export class PurchaseDto {
  @IsString()
  @IsNotEmpty()
  productId!: string;

  @IsInt()
  @IsPositive()
  quantity!: number;
}
