CREATE TABLE `slab_memories` ( `id` text PRIMARY KEY NOT NULL, `user_id` text NOT NULL, `content` text NOT NULL, `memory_type` text NOT NULL, `tags` text, `importance` real DEFAULT 0.7 NOT NULL, `pinned` integer DEFAULT false NOT NULL, `access_count` integer DEFAULT 0 NOT NULL, `last_accessed_at` text, `created_at` text NOT NULL, FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade );