feat(saas): implement marketplace and tenant onboarding

This commit is contained in:
2026-07-29 13:58:59 +08:00
parent 76606029e2
commit 6db200a2fc
145 changed files with 16862 additions and 94529 deletions

View File

@@ -132,8 +132,6 @@ public sealed class TikuDbContext(
public DbSet<ActivationCode> ActivationCodes => Set<ActivationCode>();
public DbSet<Coupon> Coupons => Set<Coupon>();
public DbSet<CouponRedemption> CouponRedemptions => Set<CouponRedemption>();
public DbSet<TenantSubscription> TenantSubscriptions => Set<TenantSubscription>();
public DbSet<TenantUsageRecord> TenantUsageRecords => Set<TenantUsageRecord>();
public DbSet<CommerceRefundRequest> CommerceRefundRequests => Set<CommerceRefundRequest>();
public DbSet<CommerceRefundEvent> CommerceRefundEvents => Set<CommerceRefundEvent>();
public DbSet<CommerceReconciliationBatch> CommerceReconciliationBatches => Set<CommerceReconciliationBatch>();
@@ -180,19 +178,31 @@ public sealed class TikuDbContext(
public DbSet<TenantContentNotification> TenantContentNotifications => Set<TenantContentNotification>();
public DbSet<TenantThemeTemplate> TenantThemeTemplates => Set<TenantThemeTemplate>();
public DbSet<TenantThemeConfig> TenantThemeConfigs => Set<TenantThemeConfig>();
public DbSet<PlatformSaasPlan> PlatformSaasPlans => Set<PlatformSaasPlan>();
public DbSet<ProductModule> ProductModules => Set<ProductModule>();
public DbSet<PlanModuleEntitlement> PlanModuleEntitlements => Set<PlanModuleEntitlement>();
public DbSet<TenantModuleOverride> TenantModuleOverrides => Set<TenantModuleOverride>();
public DbSet<TenantBillingProfile> TenantBillingProfiles => Set<TenantBillingProfile>();
public DbSet<TenantInvoice> TenantInvoices => Set<TenantInvoice>();
public DbSet<TenantInvoiceItem> TenantInvoiceItems => Set<TenantInvoiceItem>();
public DbSet<TenantInvoicePayment> TenantInvoicePayments => Set<TenantInvoicePayment>();
public DbSet<TenantInvoiceReminder> TenantInvoiceReminders => Set<TenantInvoiceReminder>();
public DbSet<PlatformBillingInvoiceReminder> PlatformBillingInvoiceReminders => Set<PlatformBillingInvoiceReminder>();
public DbSet<PlatformAuditAlertRule> PlatformAuditAlertRules => Set<PlatformAuditAlertRule>();
public DbSet<PlatformAuditAlert> PlatformAuditAlerts => Set<PlatformAuditAlert>();
public DbSet<PlatformDunningNotificationChannel> PlatformDunningNotificationChannels => Set<PlatformDunningNotificationChannel>();
public DbSet<PlatformDunningNotificationEvent> PlatformDunningNotificationEvents => Set<PlatformDunningNotificationEvent>();
public DbSet<PlatformBillingDunningNotificationChannel> PlatformBillingDunningNotificationChannels => Set<PlatformBillingDunningNotificationChannel>();
public DbSet<PlatformBillingDunningNotificationEvent> PlatformBillingDunningNotificationEvents => Set<PlatformBillingDunningNotificationEvent>();
public DbSet<SaasFeature> SaasFeatures => Set<SaasFeature>();
public DbSet<PermissionModule> PermissionModules => Set<PermissionModule>();
public DbSet<SaasOffering> SaasOfferings => Set<SaasOffering>();
public DbSet<SaasOfferingVersion> SaasOfferingVersions => Set<SaasOfferingVersion>();
public DbSet<SaasOfferingVersionFeature> SaasOfferingVersionFeatures => Set<SaasOfferingVersionFeature>();
public DbSet<SaasFeatureLimitDefinition> SaasFeatureLimitDefinitions => Set<SaasFeatureLimitDefinition>();
public DbSet<SaasOfferingVersionLimit> SaasOfferingVersionLimits => Set<SaasOfferingVersionLimit>();
public DbSet<TenantSaasSubscription> TenantSaasSubscriptions => Set<TenantSaasSubscription>();
public DbSet<TenantSaasSubscriptionItem> TenantSaasSubscriptionItems => Set<TenantSaasSubscriptionItem>();
public DbSet<TenantFeatureOverride> TenantFeatureOverrides => Set<TenantFeatureOverride>();
public DbSet<TenantFeatureUsage> TenantFeatureUsages => Set<TenantFeatureUsage>();
public DbSet<PlatformBillingQuote> PlatformBillingQuotes => Set<PlatformBillingQuote>();
public DbSet<PlatformBillingQuoteItem> PlatformBillingQuoteItems => Set<PlatformBillingQuoteItem>();
public DbSet<PlatformBillingOrder> PlatformBillingOrders => Set<PlatformBillingOrder>();
public DbSet<PlatformBillingOrderItem> PlatformBillingOrderItems => Set<PlatformBillingOrderItem>();
public DbSet<PlatformBillingPayment> PlatformBillingPayments => Set<PlatformBillingPayment>();
public DbSet<PlatformBillingPaymentEvent> PlatformBillingPaymentEvents => Set<PlatformBillingPaymentEvent>();
public DbSet<PlatformBillingRefund> PlatformBillingRefunds => Set<PlatformBillingRefund>();
public DbSet<PlatformBillingInvoice> PlatformBillingInvoices => Set<PlatformBillingInvoice>();
public DbSet<PocketBaseImportRun> PocketBaseImportRuns => Set<PocketBaseImportRun>();
public DbSet<PocketBaseRawRecord> PocketBaseRawRecords => Set<PocketBaseRawRecord>();
public DbSet<PocketBaseImportIssue> PocketBaseImportIssues => Set<PocketBaseImportIssue>();