using Meezi.Core.Enums;

namespace Meezi.Core.Entities;

/// <summary>Daily take-a-number ticket; sequence resets each calendar day (branch-local).</summary>
public class QueueTicket : TenantEntity
{
    public string? BranchId { get; set; }
    public DateOnly ServiceDate { get; set; }
    public int Number { get; set; }
    public string? CustomerLabel { get; set; }
    public string? IssuedByUserId { get; set; }
    public QueueTicketStatus Status { get; set; } = QueueTicketStatus.Waiting;
    public string? OrderId { get; set; }
    public DateTime IssuedAt { get; set; }

    public Cafe Cafe { get; set; } = null!;
    public Branch? Branch { get; set; }
    public Order? Order { get; set; }
}
