max user limits + check plan active on webhook + flow tweaks

This commit is contained in:
Michael Dausmann
2023-03-25 16:03:28 +11:00
parent 45fb639fcf
commit f2fa72b2a1
12 changed files with 86 additions and 28 deletions

View File

@@ -53,6 +53,7 @@ model Account {
max_notes Int @default(100)
stripe_subscription_id String?
stripe_customer_id String?
max_members Int @default(1)
@@map("account")
}
@@ -63,6 +64,8 @@ model Plan {
features String[]
accounts Account[]
max_notes Int @default(100)
stripe_product_id String?
max_members Int @default(1)
@@map("plan")
}