import { IsBoolean, IsInt, IsOptional, IsString, MinLength } from 'class-validator';

export class CreateReceiptAliasDto {
  @IsString()
  @MinLength(1)
  receiptName!: string;

  @IsInt()
  productId!: number;

  @IsOptional()
  @IsBoolean()
  isGlobal?: boolean;
}
