using TakeoutSaaS.Shared.Abstractions.Entities;
namespace TakeoutSaaS.Domain.Orders.Entities;
///
/// 订单明细。
///
public sealed class OrderItem : MultiTenantEntityBase
{
///
/// 订单 ID。
///
public Guid OrderId { get; set; }
///
/// 商品 ID。
///
public Guid ProductId { get; set; }
///
/// 商品名称。
///
public string ProductName { get; set; } = string.Empty;
///
/// SKU/规格描述。
///
public string? SkuName { get; set; }
///
/// 单位。
///
public string? Unit { get; set; }
///
/// 数量。
///
public int Quantity { get; set; }
///
/// 单价。
///
public decimal UnitPrice { get; set; }
///
/// 折扣金额。
///
public decimal DiscountAmount { get; set; }
///
/// 小计。
///
public decimal SubTotal { get; set; }
///
/// 自定义属性 JSON。
///
public string? AttributesJson { get; set; }
}