🚸 (dashboard) Add unpublish menu item in dashboard

Also remove the useless publishedTypebotId field in Typebot

Closes #232
This commit is contained in:
Baptiste Arnaud
2023-01-27 17:11:26 +01:00
parent a842f57297
commit f93bc2fcb2
59 changed files with 212 additions and 90 deletions

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `publishedTypebotId` on the `Typebot` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Typebot" DROP COLUMN "publishedTypebotId";

View File

@@ -155,7 +155,6 @@ model Typebot {
updatedAt DateTime @default(now()) @updatedAt
icon String?
name String
publishedTypebotId String?
folderId String?
groups Json
variables Json[]

View File

@@ -52,7 +52,6 @@ export const typebotSchema = schemaForType<TypebotPrisma>()(
createdAt: z.date(),
updatedAt: z.date(),
icon: z.string().nullable(),
publishedTypebotId: z.string().nullable(),
folderId: z.string().nullable(),
publicId: z.string().nullable(),
customDomain: z.string().nullable(),

View File

@@ -24,7 +24,6 @@ export const parseTestTypebot = (
publicId: null,
updatedAt: new Date(),
createdAt: new Date(),
publishedTypebotId: null,
customDomain: null,
icon: null,
isArchived: false,