Subscriptions
Manage the subscriptions of your SaaS customers
Last updated
id String @id @default(cuid())
name String
productId String
price String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAtmodel UserPlan {
id String @id @default(cuid())
userId String @unique
planId String
lemonOrderId String?
lemonProductId String
lemonVariantId String?
lemonPlanName String?
lemonPlanPrice String?
lemonSubscriptionId String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
validUntil DateTime?
cancelUrl String?
updateUrl String?
status String?
user User @relation(fields: [userId], references: [id])
plan SubscriptionPlan @relation(fields: [planId], references: [id])
}