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;