Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -274,17 +274,17 @@ Diese werden von vielen Modulen geschrieben/referenziert. Sie sind der Grund, wa
|
||||
**Struktur (keine Seat-Typen mehr - Basis-Preis pro Nutzer + Feature-Module als Positionen):**
|
||||
|
||||
```
|
||||
SubscriptionProduct ─1:N─▶ SubscriptionPrice (stripe_price_id, interval month|year|one_time)
|
||||
SubscriptionProduct ─1:N─▶ SubscriptionPrice (legacyProvider_price_id, interval month|year|one_time)
|
||||
│ (Plan: Core/Swarm/Colony)
|
||||
├─M:N─▶ SubscriptionFeature (via ProductFeature, +quota_value JSON) ◀── Konnektor-Gate!
|
||||
└─1:N─▶ SubscriptionUsageBasedPrice ─1:N─▶ UsageBasedTier (Staffel-Overage)
|
||||
│
|
||||
TenantSubscription (1:1 Tenant) ─N:1─▶ Product │
|
||||
├─1:N─▶ TenantSubscriptionProductPrice (quantity=Seats, is_metered)
|
||||
├─1:N─▶ TenantSubscriptionUsageRecord (metric, usage_amount, reported_to_stripe)
|
||||
└─ status (trial/active/past_due/cancelled/frozen) + Stripe-IDs + Dunning-Felder
|
||||
├─1:N─▶ TenantSubscriptionUsageRecord (metric, usage_amount, reported_to_legacyProvider)
|
||||
└─ status (trial/active/past_due/cancelled/frozen) + Legacy-Provider-IDs + Dunning-Felder
|
||||
Credit (ai_token/bonus, balance_after, valid_until) ─N:1─▶ Tenant
|
||||
CheckoutSessionStatus (stripe_checkout_session, intent) ─N:1─▶ Tenant
|
||||
CheckoutSessionStatus (legacyProvider_checkout_session, intent) ─N:1─▶ Tenant
|
||||
```
|
||||
|
||||
`SubscriptionFeature.code` (z. B. `kwp_integration`) ist die Brücke zur Konnektor-Pflicht: `tenantHasModule()` prüft, ob das Feature im Abo des Tenants enthalten ist. Quotas (max_users, ai_tokens) hängen an `SubscriptionProductFeature.quota_value`.
|
||||
|
||||
Reference in new issue
Block a user