DROP TABLE IF EXISTS `site_plugin_media`;
CREATE TABLE `site_plugin_media` (
  `item_id` int(11) NOT NULL AUTO_INCREMENT,
  `item_parent` int(11) NOT NULL,
  `item_status` int(1) NOT NULL,
  `item_show` varchar(10) NOT NULL,
  `item_order` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `item_type` int(1) NOT NULL,
  `item_image` int(1) NOT NULL,
  `item_youtube` varchar(100) NOT NULL,
  `item_vimeo` varchar(100) NOT NULL,
  `item_vimeo_cover` varchar(255) NOT NULL,
  `item_video` int(1) NOT NULL,
  `item_video_file` varchar(255) NOT NULL,
  `item_audio` int(1) NOT NULL,
  `item_audio_file` varchar(255) NOT NULL,
  `item_author` varchar(100) NOT NULL,
  `item_author_link` varchar(255) NOT NULL,
  `item_link_type` int(1) NOT NULL,
  `item_link_module` int(11) NOT NULL,
  `item_link_global` int(11) NOT NULL,
  `item_link_target` varchar(20) NOT NULL,
  `item_link_rel` varchar(20) NOT NULL,
  `item_html` text NOT NULL,
  `item_css_list` varchar(255) NOT NULL,
  `item_gif` int(1) NOT NULL,
  `item_gif_file` varchar(255) NOT NULL,
  PRIMARY KEY (`item_id`),
  KEY `item_parent` (`item_parent`,`item_status`,`item_order`,`module_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


DROP TABLE IF EXISTS `site_plugin_media_lang`;
CREATE TABLE `site_plugin_media_lang` (
  `item_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  `item_title` varchar(255) NOT NULL,
  `item_image_alt` varchar(255) NOT NULL,
  `item_link_link` varchar(255) NOT NULL,
  KEY `item_id` (`item_id`,`module_id`,`lang_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
