using Meezi.Core.Enums;
using Meezi.Core.Interfaces;

namespace Meezi.Infrastructure.Data;

public class TenantContext : ITenantContext
{
    public string? UserId { get; set; }
    public string? CafeId { get; set; }
    public EmployeeRole? Role { get; set; }
    public PlanTier? PlanTier { get; set; }
    public string? Language { get; set; }
    public string? BranchId { get; set; }
    public bool IsSystemAdmin { get; set; }
    public bool IsAuthenticated => IsSystemAdmin || !string.IsNullOrEmpty(CafeId);
}
