-- Time stamp is _not_ in ms CREATE TABLE IF NOT EXISTS `messages`( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `time` BIGINT NOT NULL, `content` VARCHAR(2048) NOT NULL, `author_id` BIGINT UNSIGNED NOT NULL, `channel_id` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`author_id`) REFERENCES members(`id`), FOREIGN KEY (`channel_id`) REFERENCES channels(`id`) );