PREPROD
ReaderAuthor

suite

Tenant Capacity

The purchased storage and billing capacity a tenant holds across the platform.

1 min read · 2 depth levelsstratum-suite · vdevMatches production
Everyday

TenantCapacity records how much storage a tenant has bought beyond its plan defaults. It tracks r2PurchasedBytes for object storage and dbPurchasedBytes for database storage, and ties those purchases back to Stripe through stripeR2ItemId, stripeDbItemId, and stripeCapacitySubscriptionId. The billingMode field controls how the capacity is charged, while updatedAt and the linked tenant keep the record current and attributable. This lets the platform enforce quotas and bill overages accurately per tenant.

Technical section
Data model, API, and internals — visible to developers.
View as developer
Was this helpful?