using Tiku.Domain.Common;

namespace Tiku.Domain.Tenancy;

public sealed class TenantMembership : AuditableTenantEntity
{
    public Guid UserId { get; set; }
    public TenantRole Role { get; set; } = TenantRole.Student;
    public MembershipStatus Status { get; set; } = MembershipStatus.Active;
    public string? LegacyRole { get; set; }
}

public enum TenantRole
{
    TenantOwner,
    TenantAdmin,
    TenantOperator,
    Teacher,
    Sales,
    Agent,
    Student
}

public enum MembershipStatus
{
    Active,
    Invited,
    Disabled
}
