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.
