🚀 Init preview and typebot cotext in editor
This commit is contained in:
@ -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;
|
@ -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?
|
||||
}
|
||||
|
Reference in New Issue
Block a user