CREATE TABLE `xf_xa_ubs_comment` (
`comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`blog_entry_id` int(10) unsigned NOT NULL DEFAULT 0,
`user_id` int(10) unsigned NOT NULL DEFAULT 0,
`username` varchar(50) NOT NULL DEFAULT '',
`comment_date` int(10) unsigned NOT NULL DEFAULT 0,
`comment_state` enum('visible','moderated','deleted') NOT NULL DEFAULT 'visible',
`message` mediumtext NOT NULL,
`reaction_score` int(11) NOT NULL DEFAULT 0,
`reactions` blob DEFAULT NULL,
`reaction_users` blob NOT NULL,
`warning_id` int(10) unsigned NOT NULL DEFAULT 0,
`warning_message` varchar(255) NOT NULL DEFAULT '',
`attach_count` int(10) unsigned NOT NULL DEFAULT 0,
`ip_id` int(10) unsigned NOT NULL DEFAULT 0,
`last_edit_date` int(10) unsigned NOT NULL DEFAULT 0,
`last_edit_user_id` int(10) unsigned NOT NULL DEFAULT 0,
`edit_count` int(10) unsigned NOT NULL DEFAULT 0,
`embed_metadata` blob DEFAULT NULL,
PRIMARY KEY (`comment_id`),
KEY `comment_date` (`comment_date`),
KEY `comment_id_comment_date` (`comment_id`,`comment_date`),
KEY `user_id` (`user_id`)
)