2
0

Add Graph draft

This commit is contained in:
Baptiste Arnaud
2021-12-16 10:43:49 +01:00
parent 0f85d2cd94
commit da9459edf3
35 changed files with 1938 additions and 116 deletions

View File

@ -0,0 +1,14 @@
/*
Warnings:
- Added the required column `startBlock` to the `PublicTypebot` table without a default value. This is not possible if the table is not empty.
- Added the required column `startBlock` to the `Typebot` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "PublicTypebot" ADD COLUMN "blocks" JSONB[],
ADD COLUMN "startBlock" JSONB NOT NULL;
-- AlterTable
ALTER TABLE "Typebot" ADD COLUMN "blocks" JSONB[],
ADD COLUMN "startBlock" JSONB NOT NULL;

View File

@ -87,16 +87,18 @@ model Typebot {
results Result[]
folderId String?
folder DashboardFolder? @relation(fields: [folderId], references: [id])
blocks Json[]
blocks Json[]
startBlock Json
}
model PublicTypebot {
id String @id @default(cuid())
typebotId String @unique
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
steps Json[]
name String
blocks Json[]
id String @id @default(cuid())
typebotId String @unique
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
steps Json[]
name String
blocks Json[]
startBlock Json
}
model Result {