✨ (theme) Add theme templates
Allows you to save your themes and select a theme from Typebot's gallery Closes #275
This commit is contained in:
@ -95,6 +95,7 @@ model Workspace {
|
||||
customChatsLimit Int?
|
||||
customStorageLimit Int?
|
||||
customSeatsLimit Int?
|
||||
themeTemplates ThemeTemplate[]
|
||||
}
|
||||
|
||||
model MemberInWorkspace {
|
||||
@ -180,6 +181,7 @@ model Typebot {
|
||||
variables Json
|
||||
edges Json
|
||||
theme Json
|
||||
selectedThemeTemplateId String?
|
||||
settings Json
|
||||
publicId String? @unique
|
||||
customDomain String? @unique
|
||||
@ -325,6 +327,18 @@ model ChatSession {
|
||||
state Json
|
||||
}
|
||||
|
||||
model ThemeTemplate {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
name String
|
||||
theme Json
|
||||
workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)
|
||||
workspaceId String
|
||||
|
||||
@@index([workspaceId])
|
||||
}
|
||||
|
||||
enum WorkspaceRole {
|
||||
ADMIN
|
||||
MEMBER
|
||||
|
Reference in New Issue
Block a user