using System.ComponentModel.DataAnnotations;

namespace Aberwyn.Models
{
    public class PizzaOrder
    {
        public int Id { get; set; }

        [Required]
        public string CustomerName { get; set; }

        [Required]
        public string PizzaName { get; set; }

        public string? IngredientsJson { get; set; } // lista i JSON-form

        public string Status { get; set; } = "Unconfirmed"; // "Ej bekräftad", "Bekräftad", "Klar"

        public DateTime OrderedAt { get; set; } = DateTime.Now;
    }
    public class PizzaAdminViewModel
    {
        public List<PizzaOrder> ActiveOrders { get; set; }
        public List<PizzaOrder> CompletedOrders { get; set; }
        public List<Meal> AvailablePizzas { get; set; }
        public bool RestaurantIsOpen { get; set; }
    }


}
