CREATE TABLE `daily_completions` ( `id` text PRIMARY KEY NOT NULL, `anonymous_id` text NOT NULL, `date` text NOT NULL, `guess_count` integer NOT NULL, `completed_at` integer NOT NULL ); --> statement-breakpoint CREATE INDEX `date_idx` ON `daily_completions` (`date`);--> statement-breakpoint CREATE INDEX `date_guess_idx` ON `daily_completions` (`date`,`guess_count`);--> statement-breakpoint CREATE UNIQUE INDEX `daily_completions_anonymous_id_date_unique` ON `daily_completions` (`anonymous_id`,`date`);--> statement-breakpoint CREATE TABLE `daily_verses` ( `id` text PRIMARY KEY NOT NULL, `date` text NOT NULL, `book_id` text NOT NULL, `verse_text` text NOT NULL, `reference` text NOT NULL, `created_at` integer ); --> statement-breakpoint CREATE UNIQUE INDEX `daily_verses_date_unique` ON `daily_verses` (`date`);--> statement-breakpoint CREATE TABLE `session` ( `id` text PRIMARY KEY NOT NULL, `user_id` text NOT NULL, `expires_at` integer NOT NULL, FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE no action ON DELETE no action ); --> statement-breakpoint CREATE TABLE `user` ( `id` text PRIMARY KEY NOT NULL, `age` integer );