2
0

feat(account): 🗃️Add api token

This commit is contained in:
Baptiste Arnaud
2022-02-21 06:57:44 +01:00
parent 65c206e00a
commit 5a80774ff5
7 changed files with 52 additions and 11 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "apiToken" TEXT;

View File

@ -51,6 +51,7 @@ model User {
stripeId String? @unique
credentials Credentials[]
customDomains CustomDomain[]
apiToken String?
}
model CustomDomain {
@ -96,6 +97,7 @@ model DashboardFolder {
parentFolder DashboardFolder? @relation("ParentChild", fields: [parentFolderId], references: [id])
childrenFolder DashboardFolder[] @relation("ParentChild")
typebots Typebot[]
@@unique([id, ownerId])
}
@ -118,6 +120,7 @@ model Typebot {
settings Json
publicId String? @unique
customDomain String? @unique
@@unique([id, ownerId])
}