using System.ComponentModel.DataAnnotations;

namespace CartWise.Web.ViewModels.ShoppingList;

public class AddShoppingListItemViewModel
{
    [Required]
    [Display(Name = "Item")]
    [StringLength(240, MinimumLength = 1)]
    public string DisplayName { get; set; } = string.Empty;

    [Range(0.001, 100000)]
    public decimal? Quantity { get; set; }

    [StringLength(32)]
    public string? Unit { get; set; }
}
