2018-06-15 18:13:59 -04:00
|
|
|
CREATE TABLE `users` (
|
2018-06-20 13:07:11 -04:00
|
|
|
`user_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
2018-06-15 18:13:59 -04:00
|
|
|
`username` VARCHAR(20) NOT NULL,
|
|
|
|
`password_hash` CHAR(73) NOT NULL,
|
2018-06-20 13:07:11 -04:00
|
|
|
PRIMARY KEY (`user_id`)
|
2018-06-15 18:13:59 -04:00
|
|
|
) ENGINE=InnoDB CHARSET utf8mb4;
|
|
|
|
|
2018-06-20 13:07:11 -04:00
|
|
|
CREATE TABLE `quest_meta` (
|
|
|
|
`quest_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
2018-06-15 18:13:59 -04:00
|
|
|
`canon_title` VARCHAR(300) DEFAULT NULL,
|
|
|
|
`ident_title` VARCHAR(300) DEFAULT NULL,
|
|
|
|
`owner_id` SMALLINT UNSIGNED DEFAULT NULL,
|
2018-06-20 13:07:11 -04:00
|
|
|
PRIMARY KEY (`quest_id`)
|
|
|
|
) ENGINE=InnoDB CHARSET utf8mb4;
|
|
|
|
|
|
|
|
CREATE TABLE `quest_data` (
|
|
|
|
`quest_id` SMALLINT UNSIGNED NOT NULL,
|
|
|
|
`post` MEDIUMTEXT NOT NULL,
|
|
|
|
`timestamp` INT UNSIGNED NOT NULL
|
2018-06-15 18:13:59 -04:00
|
|
|
) ENGINE=InnoDB CHARSET utf8mb4;
|
|
|
|
|
|
|
|
CREATE TABLE `chat_messages` (
|
|
|
|
`room_id` SMALLINT UNSIGNED NOT NULL,
|
|
|
|
`name` VARCHAR(20) NOT NULL,
|
|
|
|
`name_id` SMALLINT UNSIGNED DEFAULT NULL,
|
|
|
|
`date` INT UNSIGNED NOT NULL,
|
|
|
|
`message` TEXT NOT NULL
|
|
|
|
) ENGINE=InnoDB CHARSET utf8mb4;
|