package de.cannamanage.api.dto.distribution;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;

import java.math.BigDecimal;
import java.util.UUID;

public record CreateDistributionRequest(
        @NotNull(message = "Member ID is required")
        UUID memberId,

        @NotNull(message = "Batch ID is required")
        UUID batchId,

        @NotNull(message = "Quantity in grams is required")
        @DecimalMin(value = "0.01", message = "Quantity must be greater than zero")
        BigDecimal quantityGrams,

        String notes
) {}
