using Meezi.Core.Enums;

namespace Meezi.Core.Entities;

public class SupportTicket : TenantEntity
{
    public string Subject { get; set; } = string.Empty;
    public SupportTicketStatus Status { get; set; } = SupportTicketStatus.Open;
    public SupportTicketPriority Priority { get; set; } = SupportTicketPriority.Normal;
    public string CreatedByEmployeeId { get; set; } = string.Empty;
    public string? AssignedAdminId { get; set; }
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
    public DateTime? ClosedAt { get; set; }

    public Cafe? Cafe { get; set; }
    public Employee? CreatedByEmployee { get; set; }
    public ICollection<SupportTicketMessage> Messages { get; set; } = [];
}
