+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| xf_mg_media_item | CREATE TABLE `xf_mg_media_item` (
`media_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`media_hash` varchar(32) DEFAULT NULL,
`title` text NOT NULL,
`description` text NOT NULL,
`media_date` int(10) unsigned NOT NULL DEFAULT '0',
`last_edit_date` int(10) NOT NULL DEFAULT '0',
`last_comment_date` int(10) unsigned NOT NULL DEFAULT '0',
`last_comment_id` int(10) unsigned NOT NULL DEFAULT '0',
`last_comment_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`last_comment_username` varchar(50) NOT NULL DEFAULT '',
`media_type` varbinary(25) NOT NULL,
`media_tag` text,
`media_embed_url` text,
`media_state` enum('visible','moderated','deleted') NOT NULL DEFAULT 'visible',
`album_id` int(10) NOT NULL DEFAULT '0',
`category_id` int(10) unsigned NOT NULL,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`username` varchar(50) NOT NULL,
`ip_id` int(10) unsigned NOT NULL DEFAULT '0',
`likes` int(10) unsigned NOT NULL DEFAULT '0',
`like_users` blob,
`comment_count` int(10) unsigned NOT NULL DEFAULT '0',
`rating_count` int(10) unsigned NOT NULL DEFAULT '0',
`view_count` int(10) unsigned NOT NULL DEFAULT '0',
`rating_sum` int(10) unsigned NOT NULL DEFAULT '0',
`rating_avg` float unsigned NOT NULL DEFAULT '0',
`custom_fields` mediumblob NOT NULL,
`media_content_tag_cache` blob,
`exif_data` mediumblob NOT NULL,
`watermarked` tinyint(3) unsigned NOT NULL DEFAULT '0',
`warning_id` int(10) unsigned NOT NULL DEFAULT '0',
`warning_message` varchar(255) NOT NULL DEFAULT '',
`position` int(10) unsigned NOT NULL DEFAULT '0',
`imported` int(10) unsigned NOT NULL DEFAULT '0',
`thumbnail_date` int(10) unsigned NOT NULL DEFAULT '0',
`custom_thumbnail_date` int(10) unsigned NOT NULL DEFAULT '0',
`tags` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`media_id`),
UNIQUE KEY `media_hash` (`media_hash`),
KEY `position` (`position`),
KEY `media_date_media_id` (`media_date`,`media_id`),
KEY `media_date` (`media_date`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=380 DEFAULT CHARSET=utf8 |
+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
MariaDB [apistogrammadb]>