import { IsNotEmpty, IsNumber, IsOptional, IsString, Max, Min } from 'class-validator';

export class UpsertUserProductDiscountDto {
    @IsString()
    @IsNotEmpty()
    userId: string;

    @IsString()
    @IsOptional()
    schemeId?: string; // null / omit = product-level cap

    @IsNumber()
    @Min(0)
    @Max(100)
    maxDiscountPercentage: number;
}
