package de.cannamanage.api.dto.stock;

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

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

public record CreateBatchRequest(
        @NotNull(message = "Strain ID is required")
        UUID strainId,

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

        LocalDate harvestDate,

        @NotBlank(message = "Batch code is required")
        String batchCode
) {}
