feat: enforce tenant isolation and shared question bank

This commit is contained in:
2026-07-27 16:59:12 +08:00
parent 28e9a9fa41
commit db4c7b4496
137 changed files with 6402 additions and 112274 deletions

View File

@@ -18,7 +18,7 @@ public sealed class PlatformSaasPlan : AuditableEntity
public int SortOrder { get; set; }
}
public sealed class TenantBillingProfile : IHasTimestamps
public sealed class TenantBillingProfile : IHasTimestamps, ITenantOwned
{
public Guid TenantId { get; set; }
public string? BillingName { get; set; }
@@ -58,7 +58,7 @@ public sealed class TenantInvoice : AuditableTenantEntity
public JsonElement Metadata { get; set; } = JsonDefaults.Object();
}
public sealed class TenantInvoiceItem : Entity
public sealed class TenantInvoiceItem : Entity, ITenantOwned
{
public Guid TenantId { get; set; }
public Guid InvoiceId { get; set; }