namespace OneForMe.Models;

public class Order
{
    public int Id { get; set; }
    public string OrderCode { get; set; } = string.Empty;
    public string CreatorName { get; set; } = string.Empty;
    public string Name { get; set; } = string.Empty;
    public string? AdditionalInfo { get; set; }
    public string? ImagePath { get; set; }
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime? ClosedAt { get; set; }
    public bool IsClosed { get; set; } = false;
    public DateTime? CompletedAt { get; set; }
    public bool IsCompleted { get; set; } = false;
    
    public ICollection<MenuItem> MenuItems { get; set; } = new List<MenuItem>();
    public ICollection<OrderItem> OrderItems { get; set; } = new List<OrderItem>();
}