package de.htwsaar.webshop.model;

import jakarta.annotation.Nullable;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.UUID;

@Getter
@Setter
@AllArgsConstructor
public class OrderItemModel {
    @Nullable
    private Long id;

    @Min(value = 1, message = "Amount must be at least 1")
    private Integer amount;

    @NotNull
    private UUID article;
}
