feat: add custom widget flow workbench

This commit is contained in:
ajnart committed 2026-09-12 22:51:46 +02:00
1 parent c32a5317ca
commit a6bdbbb4ea
259 files changed
+23875 -1293

No files matched your search

+24
View File
@@ -630,6 +630,10 @@ export const customWidgetDefinitions = sqliteTable("custom_widget_v2_definition"
requests: text().notNull(),
options: text().notNull(),
template: text().notNull(),
extensions: text(),
editorLayout: text(),
workshopOrigin: text(),
previousPackage: text(),
enabled: int({ mode: "boolean" }).notNull().default(true),
createdAt: int({ mode: "timestamp" })
.notNull()
@@ -663,6 +667,26 @@ export const customWidgetSecrets = sqliteTable(
}),
);
export const customWidgetContent = sqliteTable(
"custom_widget_content",
{
itemId: text()
.notNull()
.references(() => items.id, { onDelete: "cascade" }),
definitionId: text()
.notNull()
.references(() => customWidgetDefinitions.id, { onDelete: "cascade" }),
key: text().notNull(),
name: text().notNull(),
value: text().notNull(),
revision: int().notNull(),
updatedAt: int({ mode: "timestamp" })
.notNull()
.default(sql`(unixepoch())`),
},
(table) => ({ compoundKey: primaryKey({ columns: [table.itemId, table.definitionId, table.key] }) }),
);
export const widgetSecrets = sqliteTable(
"widget_secret",
{