first commit

This commit is contained in:
2026-09-11 15:49:41 +08:00
commit 5b69bc818a
98 changed files with 30551 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
CREATE TABLE `cases` (
`id` text PRIMARY KEY NOT NULL,
`title` text NOT NULL,
`location` text,
`completed_at` text,
`description` text,
`image_url` text,
`sort_order` integer DEFAULT 0 NOT NULL,
`status` text DEFAULT 'published' NOT NULL,
`updated_at` integer NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_cases_status` ON `cases` (`status`,`sort_order`);--> statement-breakpoint
CREATE TABLE `content_items` (
`id` text PRIMARY KEY NOT NULL,
`kind` text NOT NULL,
`title` text NOT NULL,
`description` text DEFAULT '' NOT NULL,
`extra` text,
`sort_order` integer DEFAULT 0 NOT NULL,
`status` text DEFAULT 'published' NOT NULL,
`updated_at` integer NOT NULL
);
--> statement-breakpoint
CREATE INDEX `idx_items_kind` ON `content_items` (`kind`,`status`,`sort_order`);--> statement-breakpoint
CREATE TABLE `site_settings` (
`key` text PRIMARY KEY NOT NULL,
`value` text DEFAULT '' NOT NULL,
`updated_at` integer NOT NULL
);
--> statement-breakpoint
ALTER TABLE `posts` ADD `cover_image` text;--> statement-breakpoint
ALTER TABLE `posts` ADD `tags` text;