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

namespace TakeoutSaaS.Domain.Queues.Entities;

/// <summary>
/// 排队叫号。
/// </summary>
public sealed class QueueTicket : MultiTenantEntityBase
{
    /// <summary>
    /// 获取或设置所属门店 ID。
    /// </summary>
    public long StoreId { get; set; }

    /// <summary>
    /// 排队编号。
    /// </summary>
    public string TicketNumber { get; set; } = string.Empty;

    /// <summary>
    /// 就餐人数。
    /// </summary>
    public int PartySize { get; set; }

    /// <summary>
    /// 状态。
    /// </summary>
    public QueueStatus Status { get; set; } = QueueStatus.Waiting;

    /// <summary>
    /// 预计等待分钟。
    /// </summary>
    public int? EstimatedWaitMinutes { get; set; }

    /// <summary>
    /// 叫号时间。
    /// </summary>
    public DateTime? CalledAt { get; set; }

    /// <summary>
    /// 过号时间。
    /// </summary>
    public DateTime? ExpiredAt { get; set; }

    /// <summary>
    /// 取消时间。
    /// </summary>
    public DateTime? CancelledAt { get; set; }

    /// <summary>
    /// 备注。
    /// </summary>
    public string? Remark { get; set; }
}
