Product

  • Public products are shown at /pricing.
  • A product can have many Prices, and many Features.

Life Cycle

RouteCreateReadUpdateDelete
/pricing
/admin/settings/pricing
/admin/settings/pricing/new
/admin/settings/pricing/:id

Properties

NameTitleTypeDescription
stripeId *Stripe IDStringStripe product ID
order *OrderIntOrder of display at /pricing and /app/:tenant/settings/subscription
title *TitleStringCan be a i18n key for multi-language support
active *ActiveBoolean
model *Pricing ModelPricingModelFLAT_RATE, PER_SEAT, or USAGE_BASED (not supported yet)
public *PublicBooleanVisible at /pricing, uncheck for custom plans
description DescriptionString
badge BadgeStringCan be a i18n key. e.g. Recommended, Most popular...
prices PricesSubscriptionPrice[]
features FeaturesSubscriptionFeature[]

Model

model SubscriptionProduct {
  id          String                @id @default(cuid())
  stripeId    String
  order       Int
  title       String
  description String
  badge       String
  active      Boolean
  model       Int // 0 = FLAT_RATE, 1 = PER_SEAT, 2 = USAGE_BASED
  public      Boolean
  prices      SubscriptionPrice[]
  features    SubscriptionFeature[]
}

cookies.titleSmall

cookies.descriptionSmall shared.learnMore.