feat: user-managed templates

This commit is contained in:
2026-02-27 20:00:53 +01:00
parent e25a0d85a5
commit f3364999ee
47 changed files with 3664 additions and 40 deletions

View File

@@ -0,0 +1,16 @@
CREATE TABLE `templates` (
`id` text PRIMARY KEY NOT NULL,
`project_id` text NOT NULL,
`slug` text NOT NULL,
`title` text NOT NULL,
`kind` text DEFAULT 'post' 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 `templates_project_slug_idx` ON `templates` (`project_id`,`slug`);--> statement-breakpoint
ALTER TABLE `posts` ADD `template_slug` text;--> statement-breakpoint
ALTER TABLE `tags` ADD `post_template_slug` text;

File diff suppressed because it is too large Load Diff

View File

@@ -43,6 +43,13 @@
"when": 1771792324840,
"tag": "0005_short_sally_floyd",
"breakpoints": true
},
{
"idx": 6,
"version": "6",
"when": 1772213213016,
"tag": "0006_yummy_scorpion",
"breakpoints": true
}
]
}