CREATE TABLE `meals` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `date` text NOT NULL, `location` text DEFAULT '' NOT NULL, `line` text DEFAULT '' NOT NULL, `title` text NOT NULL, `description` text DEFAULT '' NOT NULL, `allergens` text DEFAULT '[]' NOT NULL, `labels` text DEFAULT '[]' NOT NULL, `price` text DEFAULT '' NOT NULL, `position` integer DEFAULT 0 NOT NULL, `created_at` integer DEFAULT (unixepoch()) NOT NULL, `updated_at` integer DEFAULT (unixepoch()) NOT NULL ); --> statement-breakpoint CREATE INDEX `meals_date_idx` ON `meals` (`date`);--> statement-breakpoint CREATE TABLE `page_views` ( `day` text NOT NULL, `path` text NOT NULL, `client` text DEFAULT 'web' NOT NULL, `variant` text DEFAULT 'normal' NOT NULL, `views` integer DEFAULT 0 NOT NULL ); --> statement-breakpoint CREATE UNIQUE INDEX `page_views_key_idx` ON `page_views` (`day`,`path`,`client`,`variant`);--> statement-breakpoint CREATE INDEX `page_views_day_idx` ON `page_views` (`day`);--> statement-breakpoint CREATE TABLE `translations` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `kind` text NOT NULL, `ref_id` integer NOT NULL, `lang` text NOT NULL, `hash` text NOT NULL, `title` text NOT NULL, `teaser` text DEFAULT '' NOT NULL, `html` text NOT NULL, `model` text DEFAULT '' NOT NULL, `created_at` integer DEFAULT (unixepoch()) NOT NULL ); --> statement-breakpoint CREATE UNIQUE INDEX `translations_ref_lang_idx` ON `translations` (`kind`,`ref_id`,`lang`);