using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Products.Entities;

/// <summary>
/// 加料选项。
/// </summary>
public sealed class ProductAddonOption : MultiTenantEntityBase
{
    /// <summary>
    /// 所属加料分组。
    /// </summary>
    public long AddonGroupId { get; set; }

    /// <summary>
    /// 选项名称。
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 附加价格。
    /// </summary>
    public decimal? ExtraPrice { get; set; }

    /// <summary>
    /// 是否默认选项。
    /// </summary>
    public bool IsDefault { get; set; }

    /// <summary>
    /// 排序。
    /// </summary>
    public int SortOrder { get; set; } = 100;
}
