namespace ComputerSalesApp.Models;

internal sealed class UserSession
{
    public int UserId { get; init; }
    public string Login { get; init; } = string.Empty;
    public string Role { get; init; } = string.Empty;
    public int? CustomerId { get; init; }

    public bool IsAdmin => string.Equals(Role, "admin", StringComparison.OrdinalIgnoreCase);
}
