using TakeoutSaaS.Domain.Stores.Enums;
using TakeoutSaaS.Shared.Abstractions.Entities;

namespace TakeoutSaaS.Domain.Stores.Entities;

/// <summary>
/// 桌台信息与二维码绑定。
/// </summary>
public sealed class StoreTable : MultiTenantEntityBase
{
    /// <summary>
    /// 门店标识。
    /// </summary>
    public long StoreId { get; set; }

    /// <summary>
    /// 所在区域 ID。
    /// </summary>
    public long? AreaId { get; set; }

    /// <summary>
    /// 桌码。
    /// </summary>
    public string TableCode { get; set; } = string.Empty;

    /// <summary>
    /// 可容纳人数。
    /// </summary>
    public int Capacity { get; set; }

    /// <summary>
    /// 桌台标签（堂食、快餐等）。
    /// </summary>
    public string? Tags { get; set; }

    /// <summary>
    /// 当前桌台状态。
    /// </summary>
    public StoreTableStatus Status { get; set; } = StoreTableStatus.Idle;

    /// <summary>
    /// 桌码二维码地址。
    /// </summary>
    public string? QrCodeUrl { get; set; }
}
