using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Products.Entities;

/// <summary>
/// 商品规格选项。
/// </summary>
public sealed class ProductAttributeOption : MultiTenantEntityBase
{
    /// <summary>
    /// 所属规格组。
    /// </summary>
    public long AttributeGroupId { get; set; }

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

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

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

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