team join with link and member admin

This commit is contained in:
Michael Dausmann
2023-04-09 00:41:46 +10:00
parent b4b20e4260
commit 4d288c7468
15 changed files with 238 additions and 34 deletions

View File

@@ -35,6 +35,7 @@ model Membership {
account Account @relation(fields: [account_id], references: [id])
user User @relation(fields: [user_id], references: [id])
access ACCOUNT_ACCESS @default(READ_ONLY)
pending Boolean @default(false)
@@map("membership")
@@unique([user_id, account_id])
@@ -54,6 +55,7 @@ model Account {
stripe_subscription_id String?
stripe_customer_id String?
max_members Int @default(1)
join_password String @unique
@@map("account")
}