feat: add auth and tenant operations persistence

This commit is contained in:
xiong
2026-07-26 05:29:16 +08:00
parent b2282cde8c
commit aa000c63aa
9 changed files with 10320 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ namespace Tiku.Domain.Tenancy;
public sealed class TenantMembership : AuditableTenantEntity
{
public Guid UserId { get; set; }
public Guid? RoleTemplateId { get; set; }
public TenantRole Role { get; set; } = TenantRole.Student;
public MembershipStatus Status { get; set; } = MembershipStatus.Active;
public JsonElement Permissions { get; set; } = JsonDefaults.Object();