Tenant Subscription

  • Belongs to a Tenant.
  • Determines the current Tenant subscription and its limits.

Life Cycle

RouteCreateReadUpdateDelete
/app/:tenant/settings/subscription
/admin/accounts/:id

Properties

NameTitleTypeDescription
tenantId *TenantTenantParent Tenant
stripeCustomerId Stripe Customer IDString
stripeSubscriptionId Stripe Subscription IDString
subscriptionPriceId Subscription PriceSubscriptionPriceSelected subscription price, e.g. Monthly Price (of the Basic Subscription Product).
quantity QuantityIntFor products.model=[PER_SEAT] seats quantity input

Model

model TenantSubscription {
  tenantId             String             @unique
  tenant               Tenant             @relation(fields: [tenantId], references: [id], onDelete: Cascade)
  stripeCustomerId     String?
  stripeSubscriptionId String?
  subscriptionPriceId  String?
  subscriptionPrice    SubscriptionPrice? @relation(fields: [subscriptionPriceId], references: [id])
  quantity             Int
}

cookies.titleSmall

cookies.descriptionSmall shared.learnMore.