Feature
- Belongs to a Product.
- Used to limit SaaS users Custom Entity Rows usage based on their Subscription.
Life Cycle
| Route | Create | Read | Update | Delete |
|---|---|---|---|---|
| /pricing | ||||
| /admin/settings/pricing | ||||
| /admin/settings/pricing/new | ||||
| /admin/settings/pricing/:id |
Properties
| Name | Title | Type | Description |
|---|---|---|---|
| subscriptionProductId * | Product | SubscriptionProduct | Parent Subscription Product |
| order * | Order | Int | Order of display at /pricing and /app/:tenant/settings/subscription |
| title * | Title | String | |
| name * | Name | String | |
| type * | Type | SubscriptionFeatureLimitType | NOT_INCLUDED, INCLUDED, MONTHLY, MAX, or UNLIMITED |
| value * | Value | Int | Applies 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
}