DROP TABLE IF EXISTS `history_pages`;
CREATE TABLE `history_pages` (
                                 `id` int NOT NULL AUTO_INCREMENT,
                                 `history_id` int NOT NULL,
                                 `ip` varchar(16) NOT NULL,
                                 `page` varchar(255) NOT NULL,
                                 `session_id` varchar(255) NOT NULL,
                                 `date_added` datetime NOT NULL,
                                 UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb3;