using System; using System.Collections.Generic; namespace RestaurantApp.Models { public class Order { public int OrderId { get; set; } public int TableId { get; set; } public string TableInfo { get; set; } public int EmployeeId { get; set; } public string EmployeeName { get; set; } public int? ClientId { get; set; } public string ClientName { get; set; } public DateTime OpenedAt { get; set; } public DateTime? ClosedAt { get; set; } public string Status { get; set; } public decimal DiscountPct { get; set; } public decimal TotalAmount { get; set; } } public class OrderItem { public int OrderItemId { get; set; } public int OrderId { get; set; } public int DishId { get; set; } public string DishName { get; set; } public int Quantity { get; set; } public decimal UnitPrice { get; set; } public string Notes { get; set; } public string Status { get; set; } public decimal Total => Quantity * UnitPrice; } }