🦴 Add theme page backbone
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `theme` to the `PublicTypebot` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `theme` to the `Typebot` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "PublicTypebot" ADD COLUMN "theme" JSONB NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Typebot" ADD COLUMN "theme" JSONB NOT NULL;
|
@ -89,6 +89,7 @@ model Typebot {
|
||||
folder DashboardFolder? @relation(fields: [folderId], references: [id])
|
||||
blocks Json[]
|
||||
startBlock Json
|
||||
theme Json
|
||||
}
|
||||
|
||||
model PublicTypebot {
|
||||
@ -98,14 +99,15 @@ model PublicTypebot {
|
||||
name String
|
||||
blocks Json[]
|
||||
startBlock Json
|
||||
theme Json
|
||||
}
|
||||
|
||||
model Result {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
typebotId String
|
||||
typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade)
|
||||
answers Json[]
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
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