2
0

🚀 Init preview and typebot cotext in editor

This commit is contained in:
Baptiste Arnaud
2021-12-22 14:59:07 +01:00
parent a54e42f255
commit b7cdc0d14a
87 changed files with 4431 additions and 735 deletions

View File

@ -12,7 +12,9 @@
"@prisma/client": "latest"
},
"scripts": {
"dev": "yarn prisma db push",
"build": "prisma generate && prisma migrate deploy"
"dev": "yarn prisma db push && BROWSER=none yarn prisma studio",
"build": "prisma generate && prisma migrate deploy",
"migration:create": "dotenv -e ../../.env yarn prisma migrate dev",
"migration:reset": "dotenv -e ../../.env yarn prisma migrate reset"
}
}

View File

@ -0,0 +1,12 @@
/*
Warnings:
- You are about to drop the column `steps` on the `PublicTypebot` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "PublicTypebot" DROP COLUMN "steps";
-- AlterTable
ALTER TABLE "Result" ADD COLUMN "answers" JSONB[],
ADD COLUMN "isCompleted" BOOLEAN;

View File

@ -95,7 +95,6 @@ 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[]
startBlock Json
@ -107,4 +106,6 @@ model Result {
updatedAt DateTime @default(now())
typebotId String
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
answers Json[]
isCompleted Boolean?
}