ALTER TABLE  `site_plugin_clients_items` ADD  `item_cat` INT NOT NULL;

DROP TABLE IF EXISTS `site_plugin_clients_cats`;
CREATE TABLE `site_plugin_clients_cats` (
  `cat_id` int(11) NOT NULL AUTO_INCREMENT,
  `module_id` int(11) NOT NULL,
  `cat_order` int(11) NOT NULL,
  `cat_status` int(11) NOT NULL,
  `cat_size` int(2) NOT NULL,
  `cat_size_desktop` int(2) NOT NULL,
  `cat_size_tablet` int(2) NOT NULL,
  `cat_size_phone` int(2) NOT NULL,
  PRIMARY KEY (`cat_id`),
  KEY `module_id` (`module_id`,`cat_order`,`cat_status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `site_plugin_clients_cats_lang`;
CREATE TABLE `site_plugin_clients_cats_lang` (
  `cat_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  `cat_title` varchar(255) NOT NULL,
  `cat_description` text NOT NULL,
  KEY `cat_id` (`cat_id`,`module_id`,`lang_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
