Feature

Life Cycle

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

Properties

NameTitleTypeDescription
subscriptionProductId *ProductSubscriptionProductParent Subscription Product
order *OrderIntOrder of display at /pricing and /app/:tenant/settings/subscription
title *TitleString
name *NameString
type *TypeSubscriptionFeatureLimitTypeNOT_INCLUDED, INCLUDED, MONTHLY, MAX, or UNLIMITED
value *ValueIntApplies to [type]=MONTHLY and [type]=MAX features.

Model

model SubscriptionFeature {
  id                    String              @id @default(cuid())
  subscriptionProductId String
  subscriptionProduct   SubscriptionProduct @relation(fields: [subscriptionProductId], references: [id], onDelete: Cascade)
  order                 Int
  title                 String
  name                  String
  type                  Int // 0 = NOT_INCLUDED, 1 = INCLUDED, 2 = MONTHLY, 3 = MAX, 4 = UNLIMITED
  value                 Int
}

cookies.titleSmall

cookies.descriptionSmall shared.learnMore.