user.email account.plan_name - cleanup context and service construction - config for stripe callback - initial plan

This commit is contained in:
Michael Dausmann
2023-03-19 15:48:08 +11:00
parent 4959475dcc
commit 45fb639fcf
12 changed files with 81 additions and 86 deletions

View File

@@ -13,6 +13,7 @@ datasource db {
model User {
id Int @id @default(autoincrement())
supabase_uid String
email String
display_name String?
memberships Membership[]
@@ -46,6 +47,7 @@ model Account {
features String[]
plan_id Int
plan Plan @relation(fields: [plan_id], references: [id])
plan_name String
members Membership[]
notes Note[]
max_notes Int @default(100)