CREATE TABLE `channel` ( `id` text PRIMARY KEY NOT NULL, `name` text NOT NULL, `server_id` text NOT NULL, `messages` text DEFAULT '[]' NOT NULL, FOREIGN KEY (`server_id`) REFERENCES `server`(`id`) ON UPDATE no action ON DELETE no action );