feat: phase 1 of python scripting

This commit is contained in:
2026-02-22 22:12:30 +01:00
parent ce050f98c3
commit 3ec8819d6d
43 changed files with 2329 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE `scripts` (
`id` text PRIMARY KEY NOT NULL,
`project_id` text NOT NULL,
`slug` text NOT NULL,
`title` text NOT NULL,
`kind` text DEFAULT 'utility' NOT NULL,
`entrypoint` text DEFAULT 'render' NOT NULL,
`enabled` integer DEFAULT true NOT NULL,
`version` integer DEFAULT 1 NOT NULL,
`file_path` text NOT NULL,
`created_at` integer NOT NULL,
`updated_at` integer NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `scripts_project_slug_idx` ON `scripts` (`project_id`,`slug`);