-- phpMyAdmin SQL Dump
-- version 4.0.10.10
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1:3306
-- Generation Time: Nov 26, 2015 at 01:28 PM
-- Server version: 5.5.45
-- PHP Version: 5.5.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `artbox_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `attribute`
--
CREATE TABLE IF NOT EXISTS `attribute` (
`attribute_id` int(6) unsigned NOT NULL AUTO_INCREMENT,
`attribute_group_id` int(6) unsigned NOT NULL,
`color` varchar(32) DEFAULT NULL,
`sortorder` int(6) unsigned NOT NULL,
PRIMARY KEY (`attribute_id`),
KEY `attribute_group` (`attribute_group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=60 ;
-- --------------------------------------------------------
--
-- Table structure for table `attribute_group`
--
CREATE TABLE IF NOT EXISTS `attribute_group` (
`attribute_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`is_color_group` tinyint(1) NOT NULL DEFAULT '0',
`group_type` enum('select','radio','color') NOT NULL DEFAULT 'select',
`sortorder` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`attribute_group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `attribute_group_lang`
--
CREATE TABLE IF NOT EXISTS `attribute_group_lang` (
`attribute_group_id` int(10) unsigned NOT NULL,
`lang_id` int(2) NOT NULL,
`attribute_group_title` varchar(128) NOT NULL,
`attribute_group_url` varchar(50) DEFAULT NULL,
PRIMARY KEY (`attribute_group_id`,`lang_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `attribute_lang`
--
CREATE TABLE IF NOT EXISTS `attribute_lang` (
`attribute_id` int(6) NOT NULL,
`lang_id` int(2) NOT NULL,
`attribute_title` varchar(128) NOT NULL,
`attribute_url` varchar(50) DEFAULT NULL,
PRIMARY KEY (`attribute_id`,`lang_id`),
KEY `id_lang` (`lang_id`,`attribute_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `feature`
--
CREATE TABLE IF NOT EXISTS `feature` (
`feature_id` int(6) NOT NULL AUTO_INCREMENT,
`feature_group_id` int(6) NOT NULL,
`custom` tinyint(3) DEFAULT NULL,
`extra` varchar(20) DEFAULT NULL,
PRIMARY KEY (`feature_id`),
KEY `feature` (`feature_group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=51 ;
-- --------------------------------------------------------
--
-- Table structure for table `feature_group`
--
CREATE TABLE IF NOT EXISTS `feature_group` (
`feature_group_id` int(6) NOT NULL AUTO_INCREMENT,
`sortorder` int(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`feature_group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC AUTO_INCREMENT=12 ;
-- --------------------------------------------------------
--
-- Table structure for table `feature_group_lang`
--
CREATE TABLE IF NOT EXISTS `feature_group_lang` (
`feature_group_id` int(6) NOT NULL,
`lang_id` int(2) NOT NULL,
`feature_group_title` varchar(50) DEFAULT NULL,
`feature_group_url` varchar(50) DEFAULT NULL,
PRIMARY KEY (`feature_group_id`,`lang_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `feature_lang`
--
CREATE TABLE IF NOT EXISTS `feature_lang` (
`feature_id` int(6) NOT NULL,
`lang_id` int(2) NOT NULL,
`feature_title` varchar(255) DEFAULT NULL,
`feature_url` varchar(50) DEFAULT NULL,
`extra` varchar(20) DEFAULT NULL,
PRIMARY KEY (`feature_id`,`lang_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `image`
--
CREATE TABLE IF NOT EXISTS `image` (
`image_id` int(6) NOT NULL AUTO_INCREMENT,
`image_name` int(11) NOT NULL,
`image_md5` int(11) NOT NULL,
PRIMARY KEY (`image_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `language`
--
CREATE TABLE IF NOT EXISTS `language` (
`language_id` int(2) NOT NULL AUTO_INCREMENT,
`lang_code` varchar(4) NOT NULL,
`is_default` bit(1) NOT NULL DEFAULT b'0',
`language_name` varchar(255) NOT NULL,
`active` bit(1) NOT NULL DEFAULT b'0',
PRIMARY KEY (`language_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `language`
--
INSERT INTO `language` (`language_id`, `lang_code`, `is_default`, `language_name`, `active`) VALUES
(1, 'ua', b'0', 'Українська', b'1'),
(2, 'ru', b'1', 'Русский', b'1'),
(3, 'us', b'0', 'English', b'0'),
(4, 'fr', b'0', 'Français', b'0'),
(5, 'lt', b'0', 'Lietùvių', b'0'),
(6, 'lv', b'0', 'Latviešu', b'0'),
(7, 'de', b'0', 'Deutsch', b'0');
-- --------------------------------------------------------
--
-- Table structure for table `language_lang`
--
CREATE TABLE IF NOT EXISTS `language_lang` (
`language_id` int(2) NOT NULL,
`lang_title` varchar(256) NOT NULL,
`lang_id` int(2) NOT NULL,
UNIQUE KEY `language_id` (`language_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `language_lang`
--
INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES
(1, 'Українська мова', 1),
(2, 'Русский язык', 2);
-- --------------------------------------------------------
--
-- Table structure for table `menu`
--
CREATE TABLE IF NOT EXISTS `menu` (
`menu_id` int(6) NOT NULL AUTO_INCREMENT,
`menu_pid` int(6) NOT NULL,
`level` int(6) NOT NULL,
`termin_id` int(6) NOT NULL,
`show` tinyint(1) NOT NULL,
`is_open` tinyint(1) NOT NULL,
`menu_location_id` int(6) NOT NULL,
`sortorder` int(6) NOT NULL,
`name` varchar(50) DEFAULT NULL,
`url` varchar(256) DEFAULT NULL,
PRIMARY KEY (`menu_id`),
KEY `show` (`show`),
KEY `sortorder` (`sortorder`),
KEY `termin_id` (`termin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
--
-- Dumping data for table `menu`
--
INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_open`, `menu_location_id`, `sortorder`, `name`, `url`) VALUES
(1, 0, 0, 2, 1, 0, 1, 12, NULL, NULL),
(2, 1, 1, 3, 1, 0, 1, 1, NULL, NULL),
(3, 1, 1, 4, 1, 0, 1, 1, NULL, NULL),
(4, 0, 0, 5, 1, 0, 1, 1, NULL, NULL),
(5, 1, 1, 6, 1, 0, 1, 1, NULL, NULL),
(6, 1, 1, 7, 1, 0, 1, 1, NULL, NULL),
(7, 0, 0, 8, 1, 0, 1, 1, NULL, NULL),
(8, 0, 0, 9, 1, 0, 1, 1, NULL, NULL),
(9, 0, 0, 10, 1, 0, 1, 1, NULL, NULL),
(10, 0, 0, 11, 1, 0, 1, 1, NULL, NULL),
(11, 0, 0, 12, 1, 0, 1, 1, NULL, NULL),
(12, 0, 0, 13, 1, 0, 1, 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `menu_location`
--
CREATE TABLE IF NOT EXISTS `menu_location` (
`menu_location_id` int(2) NOT NULL AUTO_INCREMENT,
`menu_location_name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`menu_location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `menu_location`
--
INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES
(1, 'TOP'),
(2, 'CENTER'),
(3, 'BOTTOM');
-- --------------------------------------------------------
--
-- Table structure for table `menu_location_lang`
--
CREATE TABLE IF NOT EXISTS `menu_location_lang` (
`menu_location_id` int(2) NOT NULL,
`menu_location_title` varchar(50) NOT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`menu_location_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `menu_location_lang`
--
INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `lang_id`) VALUES
(1, 'Верхнее', 2),
(2, 'Центр', 2),
(3, 'Низ', 2);
-- --------------------------------------------------------
--
-- Table structure for table `migration`
--
CREATE TABLE IF NOT EXISTS `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1446045946),
('m130524_201442_init', 1446045953),
('m140506_102106_rbac_init', 1446131385);
-- --------------------------------------------------------
--
-- Table structure for table `module`
--
CREATE TABLE IF NOT EXISTS `module` (
`module_id` int(6) NOT NULL AUTO_INCREMENT,
`module_name` varchar(50) DEFAULT NULL,
`module_version` varchar(10) DEFAULT NULL,
PRIMARY KEY (`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `module`
--
INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES
(1, 'Menu', '1.0');
-- --------------------------------------------------------
--
-- Table structure for table `module_function`
--
CREATE TABLE IF NOT EXISTS `module_function` (
`module_function_id` int(6) NOT NULL AUTO_INCREMENT,
`module_function_name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`module_function_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `module_function`
--
INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VALUES
(1, 'display');
-- --------------------------------------------------------
--
-- Table structure for table `module_function_lang`
--
CREATE TABLE IF NOT EXISTS `module_function_lang` (
`module_function_id` int(6) NOT NULL,
`module_function_title` varchar(50) NOT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`module_function_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `module_function_lang`
--
INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title`, `lang_id`) VALUES
(1, 'Показать меню', 2);
-- --------------------------------------------------------
--
-- Table structure for table `module_lang`
--
CREATE TABLE IF NOT EXISTS `module_lang` (
`module_id` int(6) NOT NULL,
`module_title` varchar(50) NOT NULL,
`lang_id` int(1) NOT NULL,
PRIMARY KEY (`module_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `module_lang`
--
INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES
(1, 'Меню', 1);
-- --------------------------------------------------------
--
-- Table structure for table `option`
--
CREATE TABLE IF NOT EXISTS `option` (
`option_id` int(11) NOT NULL AUTO_INCREMENT,
`model` varchar(200) NOT NULL,
`model_id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`template` varchar(200) NOT NULL,
`parent_id` int(11) DEFAULT NULL,
PRIMARY KEY (`option_id`),
KEY `FK_option_option` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;
--
-- Dumping data for table `option`
--
INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES
(20, 'user', 10, 'phone', 'input', NULL),
(21, 'user', 10, 'adres', 'input', 20),
(22, 'user', 10, 'phone', 'input', NULL),
(23, 'user', 10, 'adres', 'input', 22),
(24, 'user', 10, 'phone', 'input', NULL),
(25, 'user', 10, 'adres', 'input', 24);
-- --------------------------------------------------------
--
-- Table structure for table `option_lang`
--
CREATE TABLE IF NOT EXISTS `option_lang` (
`primary` int(11) NOT NULL AUTO_INCREMENT,
`id` int(11) NOT NULL,
`lang_id` int(11) NOT NULL,
`value` text NOT NULL,
PRIMARY KEY (`primary`),
KEY `Индекс 1` (`id`),
KEY `Индекс 2` (`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ;
--
-- Dumping data for table `option_lang`
--
INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES
(20, 20, 0, 'phone'),
(21, 20, 1, 'phone111ukr'),
(22, 20, 2, 'phone111ru'),
(23, 21, 0, 'adres111'),
(24, 21, 1, 'adres111'),
(25, 21, 2, 'adres222'),
(26, 22, 0, 'phone222'),
(27, 22, 1, 'phone222uk'),
(28, 23, 0, 'adres111'),
(29, 23, 1, 'adres111'),
(30, 23, 2, 'adres111'),
(31, 24, 0, 'phone333'),
(32, 24, 2, 'phone333ru'),
(33, 25, 0, 'adres111'),
(34, 25, 1, 'adres111'),
(35, 25, 2, 'adres111');
-- --------------------------------------------------------
--
-- Table structure for table `page`
--
CREATE TABLE IF NOT EXISTS `page` (
`page_id` int(6) NOT NULL AUTO_INCREMENT,
`date_add` datetime NOT NULL,
`show` tinyint(1) NOT NULL,
PRIMARY KEY (`page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
--
-- Dumping data for table `page`
--
INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES
(1, '2015-11-09 00:00:00', 1),
(2, '2015-11-09 00:00:00', 1),
(3, '2015-11-09 00:00:00', 1),
(4, '2015-11-09 00:00:00', 1),
(5, '2015-11-09 00:00:00', 1),
(6, '2015-11-09 00:00:00', 1),
(7, '2015-11-09 00:00:00', 1),
(8, '2015-11-09 00:00:00', 1),
(9, '2015-11-09 00:00:00', 1),
(10, '2015-11-09 00:00:00', 1),
(11, '2015-11-09 00:00:00', 1),
(12, '2015-11-09 00:00:00', 1),
(13, '2015-11-09 00:00:00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `page_lang`
--
CREATE TABLE IF NOT EXISTS `page_lang` (
`page_id` int(6) NOT NULL,
`meta_title` varchar(512) NOT NULL,
`meta_description` varchar(512) NOT NULL,
`text` text NOT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`page_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `page_lang`
--
INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `lang_id`) VALUES
(1, 'Главная страница | ukrseeds.net.ua', '', '', 2),
(2, 'О компании | ukrseeds.net.ua', '', 'На протяжении уже нескольких лет, наша компания производит заготовку и выращивание на договорной основе семян овощных и цветочных культур в Украине, а также ведет тесное сотрудничество с ведущими европейскими семенными компаниями. Перед тем как поступить в продажу, продукция проходит проверку в нашей лаборатории и Государственной семенной инспекции, что подтверждается сертификатом и гарантирует качество семян согласно ГОСТу Украины. ', 2),
(3, 'Условия использования | ukrseeds.net.ua', '', '', 2),
(4, 'Условия сотрудничества | ukrseeds.net.ua', '', '', 2),
(5, 'Контакты | ukrseeds.net.ua', '', 'Головной офис:
\r\nг. Киев-04128, ул. Стеценка, 35,
\r\nт/ф: /044/ 503-7827, e-mail: ukrseeds@gmail.com
\r\nFacebook
\r\n
\r\nМелкооптовая продажа:
\r\nг. Киев, бульвар Академика Вернадского, 14А,
\r\nтел.: /044/ 450-7932, факс: /044/ 452-6497,
\r\ne-mail: 4507932@gmail.com
', 2),
(6, 'Магазины | ukrseeds.net.ua', '', '', 2),
(7, 'Поставщики | ukrseeds.net.ua', '', 'На сегодняшний день, благодаря динамическому развитию дилерской сети, наша продукция представлена во многих регионах Украины, и уже многие имели возможность удостовериться в качестве наших семян.\nС уважением,\nдиректор ТМ "Семена Украины"', 2),
(8, 'Каталог товаров | ukrseeds.net.ua', '', '', 2),
(9, 'Оплата | ukrseeds.net.ua', '', '', 2),
(10, 'Доставка | ukrseeds.net.ua', '', '', 2),
(11, 'Гарантия | ukrseeds.net.ua', '', '', 2),
(12, 'Акции | ukrseeds.net.ua', '', '', 2),
(13, 'Новости | ukrseeds.net.ua', '', '', 2);
-- --------------------------------------------------------
--
-- Table structure for table `parsel`
--
CREATE TABLE IF NOT EXISTS `parsel` (
`parsel_id` int(3) NOT NULL AUTO_INCREMENT,
`parcel_folder` varchar(200) NOT NULL,
`sortorder` int(3) NOT NULL,
PRIMARY KEY (`parsel_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `parsel`
--
INSERT INTO `parsel` (`parsel_id`, `parcel_folder`, `sortorder`) VALUES
(1, 'import/goods', 1);
-- --------------------------------------------------------
--
-- Table structure for table `parsel_field`
--
CREATE TABLE IF NOT EXISTS `parsel_field` (
`parsel_field_id` int(6) NOT NULL AUTO_INCREMENT,
`parsel_template_id` int(6) NOT NULL,
`table` varchar(30) NOT NULL,
`key` varchar(30) NOT NULL,
`title` varchar(30) NOT NULL,
`default_value` varchar(50) DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`is_primary` tinyint(1) NOT NULL,
`if_not_exists` enum('show','add') NOT NULL DEFAULT 'show',
PRIMARY KEY (`parsel_field_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `parsel_field`
--
INSERT INTO `parsel_field` (`parsel_field_id`, `parsel_template_id`, `table`, `key`, `title`, `default_value`, `is_active`, `is_primary`, `if_not_exists`) VALUES
(1, 1, 'product', 'aricle', 'aricle', NULL, 1, 0, 'add');
-- --------------------------------------------------------
--
-- Table structure for table `parsel_lang`
--
CREATE TABLE IF NOT EXISTS `parsel_lang` (
`parsel_id` int(3) NOT NULL,
`parsel_title` varchar(50) NOT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`parsel_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `parsel_lang`
--
INSERT INTO `parsel_lang` (`parsel_id`, `parsel_title`, `lang_id`) VALUES
(1, 'Импорт товаров', 2);
-- --------------------------------------------------------
--
-- Table structure for table `parsel_template`
--
CREATE TABLE IF NOT EXISTS `parsel_template` (
`parsel_template_id` int(3) NOT NULL AUTO_INCREMENT,
`parsel_template_name` varchar(50) NOT NULL,
`parsel_template_file` varchar(50) NOT NULL,
PRIMARY KEY (`parsel_template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `parsel_template`
--
INSERT INTO `parsel_template` (`parsel_template_id`, `parsel_template_name`, `parsel_template_file`) VALUES
(1, 'gryby', 'gryby.csv');
-- --------------------------------------------------------
--
-- Table structure for table `parsel_template_lang`
--
CREATE TABLE IF NOT EXISTS `parsel_template_lang` (
`parsel_template_id` int(3) NOT NULL,
`parsel_template_title` varchar(50) NOT NULL,
`lang_id` int(3) NOT NULL,
PRIMARY KEY (`parsel_template_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `parsel_template_lang`
--
INSERT INTO `parsel_template_lang` (`parsel_template_id`, `parsel_template_title`, `lang_id`) VALUES
(1, 'Импорт товаров: Грибы', 2);
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
CREATE TABLE IF NOT EXISTS `product` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`termin_id` int(11) NOT NULL,
`date_add` datetime NOT NULL,
`date_edit` datetime NOT NULL,
`article` varchar(20) NOT NULL,
`bar_code` varchar(40) DEFAULT NULL,
`price` decimal(20,2) NOT NULL,
`currency_id` int(2) NOT NULL,
`weight` int(6) NOT NULL,
`default_image_id` int(6) NOT NULL,
`show` tinyint(1) NOT NULL,
`sortorder` int(11) NOT NULL,
PRIMARY KEY (`product_id`),
KEY `sortorder` (`sortorder`),
KEY `show` (`show`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `product_attribute`
--
CREATE TABLE IF NOT EXISTS `product_attribute` (
`product_attribute_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(10) unsigned NOT NULL,
`reference` varchar(32) DEFAULT NULL,
`supplier_reference` varchar(32) DEFAULT NULL,
`location` varchar(64) DEFAULT NULL,
`ean13` varchar(13) DEFAULT NULL,
`upc` varchar(12) DEFAULT NULL,
`reduction` decimal(20,6) NOT NULL DEFAULT '0.000000',
`ecotax` decimal(17,6) NOT NULL DEFAULT '0.000000',
`quantity` int(10) NOT NULL DEFAULT '0',
`weight` int(6) NOT NULL,
`default_on` tinyint(1) unsigned NOT NULL DEFAULT '0',
`minimal_quantity` int(10) unsigned NOT NULL DEFAULT '1',
`date_available` date NOT NULL,
`sortorder` int(6) NOT NULL,
PRIMARY KEY (`product_attribute_id`),
KEY `product_attribute_product` (`product_id`),
KEY `reference` (`reference`),
KEY `supplier_reference` (`supplier_reference`),
KEY `product_default` (`product_id`,`default_on`),
KEY `id_product_id_product_attribute` (`product_attribute_id`,`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1463 ;
-- --------------------------------------------------------
--
-- Table structure for table `product_attribute_combination`
--
CREATE TABLE IF NOT EXISTS `product_attribute_combination` (
`attribute_id` int(10) unsigned NOT NULL,
`product_attribute_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`attribute_id`,`product_attribute_id`),
KEY `product_attribute_id` (`product_attribute_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- --------------------------------------------------------
--
-- Table structure for table `product_feature`
--
CREATE TABLE IF NOT EXISTS `product_feature` (
`feature_group_id` int(6) NOT NULL,
`feature_id` int(6) NOT NULL,
`product_id` int(6) NOT NULL,
PRIMARY KEY (`feature_group_id`,`product_id`),
KEY `feature_id` (`feature_id`),
KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- --------------------------------------------------------
--
-- Table structure for table `product_image`
--
CREATE TABLE IF NOT EXISTS `product_image` (
`image_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`product_id`,`image_id`),
KEY `product_id` (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `template`
--
CREATE TABLE IF NOT EXISTS `template` (
`template_id` int(3) NOT NULL AUTO_INCREMENT,
`template_alias` varchar(50) NOT NULL,
`template_file` varchar(50) NOT NULL,
PRIMARY KEY (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `template`
--
INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES
(1, 'page', 'page/page'),
(2, 'home', 'page/home'),
(3, 'catalog', 'shop/catalog'),
(4, 'filter', 'shop/filter'),
(5, 'news', 'news/all');
-- --------------------------------------------------------
--
-- Table structure for table `template_lang`
--
CREATE TABLE IF NOT EXISTS `template_lang` (
`template_id` int(3) NOT NULL,
`template_title` varchar(50) NOT NULL,
`lang_id` int(3) NOT NULL,
PRIMARY KEY (`template_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `template_lang`
--
INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES
(1, 'Страница', 2),
(2, 'Главная', 2),
(3, 'Каталог', 2),
(4, 'Фильтр', 2),
(5, 'Новости', 2);
-- --------------------------------------------------------
--
-- Table structure for table `termin`
--
CREATE TABLE IF NOT EXISTS `termin` (
`termin_id` int(6) NOT NULL AUTO_INCREMENT,
`termin_pid` int(11) NOT NULL,
`TYPE` enum('A','F','H','') NOT NULL DEFAULT 'H',
`is_default` int(1) NOT NULL,
`page_id` int(6) NOT NULL,
PRIMARY KEY (`termin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=215 ;
--
-- Dumping data for table `termin`
--
INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`) VALUES
(1, 0, 'H', 1, 1),
(2, 0, 'H', 1, 2),
(3, 0, 'H', 1, 3),
(4, 0, 'H', 1, 4),
(5, 0, 'H', 1, 5),
(6, 0, 'H', 1, 6),
(7, 0, 'H', 1, 7),
(8, 0, 'H', 1, 8),
(9, 0, 'H', 1, 9),
(10, 0, 'H', 1, 10),
(11, 0, 'H', 1, 11),
(12, 0, 'H', 1, 12),
(13, 0, 'H', 1, 13),
(17, 0, 'H', 1, 0),
(18, 0, 'H', 1, 0),
(19, 0, 'H', 1, 0),
(20, 8, 'H', 1, 0),
(21, 8, 'H', 1, 0),
(22, 190, 'H', 1, 0),
(23, 190, 'H', 1, 0),
(24, 190, 'H', 1, 0),
(25, 23, 'H', 1, 0),
(26, 22, 'H', 1, 0),
(27, 22, 'H', 1, 0),
(28, 22, 'H', 1, 0),
(29, 22, 'H', 1, 0),
(30, 22, 'H', 1, 0),
(31, 22, 'H', 1, 0),
(32, 22, 'H', 1, 0),
(33, 22, 'H', 1, 0),
(34, 22, 'H', 1, 0),
(35, 22, 'H', 1, 0),
(36, 23, 'H', 1, 0),
(37, 22, 'H', 1, 0),
(38, 22, 'H', 1, 0),
(39, 23, 'H', 1, 0),
(40, 22, 'H', 1, 0),
(41, 22, 'H', 1, 0),
(42, 22, 'H', 1, 0),
(43, 22, 'H', 1, 0),
(44, 22, 'H', 1, 0),
(45, 22, 'H', 1, 0),
(46, 22, 'H', 1, 0),
(47, 22, 'H', 1, 0),
(48, 22, 'H', 1, 0),
(49, 23, 'H', 1, 0),
(50, 22, 'H', 1, 0),
(51, 22, 'H', 1, 0),
(52, 22, 'H', 1, 0),
(53, 22, 'H', 1, 0),
(54, 22, 'H', 1, 0),
(55, 22, 'H', 1, 0),
(56, 22, 'H', 1, 0),
(57, 22, 'H', 1, 0),
(58, 22, 'H', 1, 0),
(59, 22, 'H', 1, 0),
(60, 22, 'H', 1, 0),
(61, 22, 'H', 1, 0),
(62, 22, 'H', 1, 0),
(63, 22, 'H', 1, 0),
(64, 22, 'H', 1, 0),
(65, 22, 'H', 1, 0),
(66, 22, 'H', 1, 0),
(67, 22, 'H', 1, 0),
(68, 22, 'H', 1, 0),
(69, 23, 'H', 1, 0),
(70, 22, 'H', 1, 0),
(71, 22, 'H', 1, 0),
(72, 22, 'H', 1, 0),
(73, 22, 'H', 1, 0),
(74, 22, 'H', 1, 0),
(75, 24, 'H', 1, 0),
(76, 22, 'H', 1, 0),
(77, 22, 'H', 1, 0),
(78, 22, 'H', 1, 0),
(79, 22, 'H', 1, 0),
(80, 22, 'H', 1, 0),
(81, 24, 'H', 1, 0),
(82, 22, 'H', 1, 0),
(83, 22, 'H', 1, 0),
(84, 24, 'H', 1, 0),
(85, 22, 'H', 1, 0),
(86, 22, 'H', 1, 0),
(87, 24, 'H', 1, 0),
(88, 24, 'H', 1, 0),
(89, 22, 'H', 1, 0),
(90, 23, 'H', 1, 0),
(91, 22, 'H', 1, 0),
(92, 22, 'H', 1, 0),
(93, 22, 'H', 1, 0),
(94, 23, 'H', 1, 0),
(95, 24, 'H', 1, 0),
(96, 22, 'H', 1, 0),
(97, 22, 'H', 1, 0),
(98, 22, 'H', 1, 0),
(99, 22, 'H', 1, 0),
(100, 22, 'H', 1, 0),
(101, 22, 'H', 1, 0),
(102, 22, 'H', 1, 0),
(103, 22, 'H', 1, 0),
(104, 22, 'H', 1, 0),
(105, 22, 'H', 1, 0),
(106, 22, 'H', 1, 0),
(107, 22, 'H', 1, 0),
(108, 22, 'H', 1, 0),
(109, 22, 'H', 1, 0),
(110, 22, 'H', 1, 0),
(111, 22, 'H', 1, 0),
(112, 22, 'H', 1, 0),
(113, 22, 'H', 1, 0),
(114, 22, 'H', 1, 0),
(115, 22, 'H', 1, 0),
(116, 23, 'H', 1, 0),
(117, 22, 'H', 1, 0),
(118, 22, 'H', 1, 0),
(119, 22, 'H', 1, 0),
(120, 22, 'H', 1, 0),
(121, 22, 'H', 1, 0),
(122, 22, 'H', 1, 0),
(123, 22, 'H', 1, 0),
(124, 22, 'H', 1, 0),
(125, 22, 'H', 1, 0),
(126, 22, 'H', 1, 0),
(127, 22, 'H', 1, 0),
(128, 22, 'H', 1, 0),
(129, 23, 'H', 1, 0),
(130, 22, 'H', 1, 0),
(131, 22, 'H', 1, 0),
(132, 24, 'H', 1, 0),
(133, 23, 'H', 1, 0),
(134, 24, 'H', 1, 0),
(135, 23, 'H', 1, 0),
(136, 22, 'H', 1, 0),
(137, 22, 'H', 1, 0),
(138, 22, 'H', 1, 0),
(139, 23, 'H', 1, 0),
(140, 22, 'H', 1, 0),
(141, 22, 'H', 1, 0),
(142, 22, 'H', 1, 0),
(143, 22, 'H', 1, 0),
(144, 22, 'H', 1, 0),
(145, 22, 'H', 1, 0),
(146, 22, 'H', 1, 0),
(147, 22, 'H', 1, 0),
(148, 22, 'H', 1, 0),
(149, 22, 'H', 1, 0),
(150, 22, 'H', 1, 0),
(151, 22, 'H', 1, 0),
(152, 22, 'H', 1, 0),
(153, 22, 'H', 1, 0),
(154, 22, 'H', 1, 0),
(155, 22, 'H', 1, 0),
(156, 22, 'H', 1, 0),
(157, 22, 'H', 1, 0),
(158, 22, 'H', 1, 0),
(159, 22, 'H', 1, 0),
(160, 22, 'H', 1, 0),
(161, 22, 'H', 1, 0),
(162, 22, 'H', 1, 0),
(163, 24, 'H', 1, 0),
(164, 22, 'H', 1, 0),
(165, 22, 'H', 1, 0),
(166, 24, 'H', 1, 0),
(167, 22, 'H', 1, 0),
(168, 22, 'H', 1, 0),
(169, 22, 'H', 1, 0),
(170, 23, 'H', 1, 0),
(171, 24, 'H', 1, 0),
(172, 22, 'H', 1, 0),
(173, 22, 'H', 1, 0),
(174, 23, 'H', 1, 0),
(175, 22, 'H', 1, 0),
(176, 22, 'H', 1, 0),
(177, 22, 'H', 1, 0),
(178, 22, 'H', 1, 0),
(179, 23, 'H', 1, 0),
(180, 22, 'H', 1, 0),
(181, 22, 'H', 1, 0),
(182, 22, 'H', 1, 0),
(183, 22, 'H', 1, 0),
(184, 22, 'H', 1, 0),
(185, 22, 'H', 1, 0),
(186, 23, 'H', 1, 0),
(187, 22, 'H', 1, 0),
(188, 8, 'H', 1, 0),
(189, 8, 'H', 1, 0),
(190, 8, 'H', 1, 0),
(191, 21, 'H', 1, 0),
(192, 21, 'H', 1, 0),
(193, 21, 'H', 1, 0),
(194, 21, 'H', 1, 0),
(195, 21, 'H', 1, 0),
(196, 21, 'H', 1, 0),
(197, 20, 'H', 1, 0),
(198, 20, 'H', 1, 0),
(199, 20, 'H', 1, 0),
(200, 197, 'H', 1, 0),
(201, 197, 'H', 1, 0),
(202, 197, 'H', 1, 0),
(203, 197, 'H', 1, 0),
(204, 197, 'H', 1, 0),
(205, 197, 'H', 1, 0),
(206, 197, 'H', 1, 0),
(207, 20, 'H', 1, 0),
(208, 207, 'H', 1, 0),
(209, 207, 'H', 1, 0),
(210, 207, 'H', 1, 0),
(211, 207, 'H', 1, 0),
(212, 207, 'H', 1, 0),
(213, 207, 'H', 1, 0),
(214, 207, 'H', 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `termin_lang`
--
CREATE TABLE IF NOT EXISTS `termin_lang` (
`termin_id` int(6) NOT NULL,
`template_id` int(6) NOT NULL,
`termin_alias` varchar(50) NOT NULL,
`termin_title` varchar(250) DEFAULT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`termin_id`,`lang_id`),
UNIQUE KEY `termin_id` (`termin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `termin_lang`
--
INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_title`, `lang_id`) VALUES
(1, 2, '/', 'Главная страница', 2),
(2, 1, 'about', 'О компании', 2),
(3, 1, 'use', 'Условия использования', 2),
(4, 1, 'corporation', 'Условия сотрудничества', 2),
(5, 1, 'contacts', 'Контакты', 2),
(6, 1, 'shops', 'Магазины', 2),
(7, 1, 'vendors', 'Поставщики', 2),
(8, 3, 'catalog', 'Каталог товаров', 2),
(9, 1, 'payment', 'Оплата', 2),
(10, 1, 'delivery', 'Доставка', 2),
(11, 1, 'warranty', 'Гарантия', 2),
(12, 1, 'promotion', 'Акции ', 2),
(13, 1, 'news', 'Материалы/блог', 2),
(17, 1, 'login', 'Авторизация', 2),
(18, 1, 'logout', 'Выход', 2),
(19, 1, 'signup', 'Регистрация', 2),
(20, 1, 'semena', 'Семена', 2),
(21, 3, 'metseliy-gribov', 'Мицелий грибов', 2),
(22, 3, 'tsvetochnye', 'Цветочные\n', 2),
(23, 3, 'komnatnye', 'Комнатные', 2),
(24, 3, 'decorativnye', 'Декоративные', 2),
(25, 3, 'abutilon', 'Абутилон', 2),
(26, 3, 'ageratum', 'Агератум', 2),
(27, 3, 'agrostemma', 'Агростемма', 2),
(28, 3, 'adonis', 'Адонис', 2),
(29, 3, 'akvilegija', 'Аквилегия', 2),
(30, 3, 'alissum', 'Алиссум', 2),
(31, 3, 'alstromerija', 'Альстромерия', 2),
(32, 3, 'amarant', 'Амарант', 2),
(33, 3, 'ammobium', 'Аммобиум', 2),
(34, 3, 'anagallis', 'Анагаллис', 2),
(35, 3, 'arktotis', 'Арктотис', 2),
(36, 3, 'asparagus', 'Аспарагус', 2),
(37, 3, 'astra', 'Астра', 2),
(38, 3, 'balzamin', 'Бальзамин', 2),
(39, 3, 'banan', 'Банан', 2),
(40, 3, 'barvinok', 'Барвинок', 2),
(41, 3, 'bartonija', 'Бартония', 2),
(42, 3, 'barhatcy', 'Бархатцы', 2),
(43, 3, 'begonija', 'Бегония', 2),
(44, 3, 'brahikoma', 'Брахикома', 2),
(45, 3, 'brovalija', 'Бровалия', 2),
(46, 3, 'buddleja', 'Буддлея', 2),
(47, 3, 'vasilek', 'Василек', 2),
(48, 3, 'vatochnik', 'Ваточник', 2),
(49, 3, 'vashingtonija', 'Вашингтония', 2),
(50, 3, 'venidium', 'Венидиум', 2),
(51, 3, 'verbena', 'Вербена', 2),
(52, 3, 'veronika', 'Вероника', 2),
(53, 3, 'viola', 'Виола', 2),
(54, 3, 'vjunok', 'Вьюнок', 2),
(55, 3, 'vjazel', 'Вязель', 2),
(56, 3, 'gazanija', 'Газания', 2),
(57, 3, 'gajlardija', 'Гайлардия', 2),
(58, 3, 'gvozdika', 'Гвоздика', 2),
(59, 3, 'gelipterum', 'Гелиптерум', 2),
(60, 3, 'gelihrizum', 'Гелихризум', 2),
(61, 3, 'georgina', 'Георгина', 2),
(62, 3, 'giacintovye boby', 'Гиацинтовые бобы', 2),
(63, 3, 'gibiskus', 'Гибискус', 2),
(64, 3, 'gipsofila', 'Гипсофила', 2),
(65, 3, 'godecija', 'Годеция', 2),
(66, 3, 'gomfrena', 'Гомфрена', 2),
(67, 3, 'delfinium', 'Дельфиниум', 2),
(68, 3, 'dimorfoteka', 'Диморфотека', 2),
(69, 3, 'dracena', 'Драцена', 2),
(70, 3, 'durman', 'Дурман', 2),
(71, 3, 'dushistyj goroshek', 'Душистый горошек', 2),
(72, 3, 'dushistyj tabak', 'Душистый табак', 2),
(73, 3, 'djusheneja', 'Дюшенея', 2),
(74, 3, 'zajcehvostnik', 'Зайцехвостник', 2),
(75, 3, 'zemljanichnyj shpinat', 'Земляничный шпинат', 2),
(76, 3, 'iberis', 'Иберис', 2),
(77, 3, 'inkarvilleja', 'Инкарвиллея', 2),
(78, 3, 'ipomeja', 'Ипомея', 2),
(79, 3, 'kaktus', 'Кактус', 2),
(80, 3, 'kalendula', 'Календула', 2),
(81, 3, 'kapusta dekorativnaja', 'Капуста декоративная', 2),
(82, 3, 'kvamoklit', 'Квамоклит', 2),
(83, 3, 'klarkija', 'Кларкия', 2),
(84, 3, 'klever', 'Клевер', 2),
(85, 3, 'klematis', 'Клематис', 2),
(86, 3, 'kleoma', 'Клеома', 2),
(87, 3, 'kleshhevina', 'Клещевина', 2),
(88, 3, 'knifofija (tritoma)', 'Книфофия (Тритома)', 2),
(89, 3, 'kobeja', 'Кобея', 2),
(90, 3, 'koleus', 'Колеус', 2),
(91, 3, 'kolokolchik', 'Колокольчик', 2),
(92, 3, 'koreopsis', 'Кореопсис', 2),
(93, 3, 'kosmeja', 'Космея', 2),
(94, 3, 'kofejnoe derevo', 'Кофейное дерево', 2),
(95, 3, 'kohija', 'Кохия', 2),
(96, 3, 'lavatera', 'Лаватера', 2),
(97, 3, 'lagerstrjomija', 'Лагерстрёмия', 2),
(98, 3, 'lapchatka', 'Лапчатка', 2),
(99, 3, 'levkoj', 'Левкой', 2),
(100, 3, 'len', 'Лен', 2),
(101, 3, 'liatris', 'Лиатрис', 2),
(102, 3, 'lilejnik', 'Лилейник', 2),
(103, 3, 'limonium', 'Лимониум', 2),
(104, 3, 'lihnis', 'Лихнис', 2),
(105, 3, 'lobelija', 'Лобелия', 2),
(106, 3, 'lunnik', 'Лунник', 2),
(107, 3, 'lvinyj zev', 'Львиный зев', 2),
(108, 3, 'lnjanka', 'Льнянка', 2),
(109, 3, 'ljupin', 'Люпин', 2),
(110, 3, 'mak', 'Мак', 2),
(111, 3, 'malopa', 'Малопа', 2),
(112, 3, 'malva', 'Мальва', 2),
(113, 3, 'margaritka', 'Маргаритка', 2),
(114, 3, 'mattiola', 'Маттиола', 2),
(115, 3, 'mezembriantemum', 'Мезембриантемум', 2),
(116, 3, 'mimoza', 'Мимоза', 2),
(117, 3, 'mimuljus', 'Мимулюс', 2),
(118, 3, 'mirabilis', 'Мирабилис', 2),
(119, 3, 'molochaj', 'Молочай', 2),
(120, 3, 'moljucella', 'Молюцелла', 2),
(121, 3, 'mylnjanka', 'Мыльнянка', 2),
(122, 3, 'naperstjanka', 'Наперстянка', 2),
(123, 3, 'nasturcija', 'Настурция', 2),
(124, 3, 'nezabudka', 'Незабудка', 2),
(125, 3, 'nemezija', 'Немезия', 2),
(126, 3, 'nemofila', 'Немофила', 2),
(127, 3, 'nigella', 'Нигелла', 2),
(128, 3, 'nolana', 'Нолана', 2),
(129, 3, 'nolina', 'Нолина', 2),
(130, 3, 'nochnaja fialka', 'Ночная фиалка', 2),
(131, 3, 'obrieta', 'Обриета', 2),
(132, 3, 'ovsjanica', 'Овсяница', 2),
(133, 3, 'palma', 'Пальма', 2),
(134, 3, 'pampasnaja trava', 'Пампасная трава', 2),
(135, 3, 'paslen', 'Паслен', 2),
(136, 3, 'passiflora', 'Пассифлора', 2),
(137, 3, 'pelargonija', 'Пеларгония', 2),
(138, 3, 'penstemon', 'Пенстемон', 2),
(139, 3, 'perec dekorativnyj', 'Перец декоративный', 2),
(140, 3, 'petunija', 'Петуния', 2),
(141, 3, 'piretrum', 'Пиретрум', 2),
(142, 3, 'podsolnuh', 'Подсолнух', 2),
(143, 3, 'portulak', 'Портулак', 2),
(144, 3, 'primula', 'Примула', 2),
(145, 3, 'ratibida', 'Ратибида', 2),
(146, 3, 'rezeda', 'Резеда', 2),
(147, 3, 'rezuha', 'Резуха', 2),
(148, 3, 'romashka', 'Ромашка', 2),
(149, 3, 'rudbekija', 'Рудбекия', 2),
(150, 3, 'salvija', 'Сальвия', 2),
(151, 3, 'salpiglossis', 'Сальпиглоссис', 2),
(152, 3, 'simfiandra', 'Симфиандра', 2),
(153, 3, 'skabioza', 'Скабиоза', 2),
(154, 3, 'smes', 'Смесь', 2),
(155, 3, 'smolevka', 'Смолевка', 2),
(156, 3, 'smolka', 'Смолка', 2),
(157, 3, 'solncecvet', 'Солнцецвет', 2),
(158, 3, 'statica', 'Статица', 2),
(159, 3, 'strelitcija', 'Стрелитция', 2),
(160, 3, 'surfinija', 'Сурфиния', 2),
(161, 3, 'suhocvetnik', 'Сухоцветник', 2),
(162, 3, 'shizantus', 'Схизантус', 2),
(163, 3, 'trava gazonnaja', 'Трава газонная', 2),
(164, 3, 'trjasunka', 'Трясунка', 2),
(165, 3, 'tunbergija', 'Тунбергия', 2),
(166, 3, 'tykva dekorativnaja', 'Тыква декоративная', 2),
(167, 3, 'tysjachelistnik', 'Тысячелистник', 2),
(168, 3, 'floks', 'Флокс', 2),
(169, 3, 'hejrantus', 'Хейрантус', 2),
(170, 3, 'hlopchatnik', 'Хлопчатник', 2),
(171, 3, 'hosta', 'Хоста', 2),
(172, 3, 'hrizantema', 'Хризантема', 2),
(173, 3, 'celozija', 'Целозия', 2),
(174, 3, 'ciklamen', 'Цикламен', 2),
(175, 3, 'cinerarija', 'Цинерария', 2),
(176, 3, 'cinnija', 'Цинния', 2),
(177, 3, 'chernogolovka', 'Черноголовка', 2),
(178, 3, 'china', 'Чина', 2),
(179, 3, 'shefflera', 'Шеффлера', 2),
(180, 3, 'jedelvejs', 'Эдельвейс', 2),
(181, 3, 'jenotera', 'Энотера', 2),
(182, 3, 'jerigeron', 'Эригерон', 2),
(183, 3, 'jehinaceja', 'Эхинацея', 2),
(184, 3, 'jehium', 'Эхиум', 2),
(185, 3, 'jeshsholcija', 'Эшшольция', 2),
(186, 3, 'jukka', 'Юкка', 2),
(187, 3, 'jaskolka', 'Ясколка', 2),
(188, 3, 'sredstvo-zashchity-rasteniy', 'Средства защиты растений', 2),
(189, 3, 'udobreniya', 'Удобрения', 2),
(190, 3, 'lukavichnye', 'Лукавичные', 2),
(191, 3, 'belyy', 'Белый', 2),
(192, 3, 'vishenka', 'Вёшенка', 2),
(193, 3, 'openok', 'Опёнок', 2),
(194, 3, 'ezhovik', 'Ежовик', 2),
(195, 3, 'trutovnik', 'Трутовик', 2),
(196, 3, 'shitake', 'Шиитаке', 2),
(197, 3, 'ovoshnie', 'Овощные', 2),
(198, 3, 'pryanye', 'Пряные', 2),
(199, 3, 'zelenye', 'Зеленые', 2),
(200, 3, 'arbuz', 'Арбуз', 2),
(201, 3, 'baklazhan', 'Баклажан', 2),
(202, 3, 'morkov', 'Морковь', 2),
(203, 3, 'ogurets', 'Огурец', 2),
(204, 3, 'parets', 'Перец', 2),
(205, 3, 'redis', 'Редис', 2),
(206, 3, 'repa', 'Репа', 2),
(207, 3, 'lekarstvennye', 'Лекарственные', 2),
(208, 3, 'altey', 'Алтей', 2),
(209, 3, 'valeryana', 'Валериана', 2),
(210, 3, 'zveroboy', 'Зверобой', 2),
(211, 3, 'lyubystok', 'Любисток', 2),
(212, 3, 'rostotopsha', 'Расторопша', 2),
(213, 3, 'romashka', 'Ромашка', 2),
(214, 3, 'lavanda', 'Лаванда', 2);
-- --------------------------------------------------------
--
-- Table structure for table `termin_relation`
--
CREATE TABLE IF NOT EXISTS `termin_relation` (
`termin_id_1` int(6) NOT NULL,
`termin_id_2` int(6) NOT NULL,
PRIMARY KEY (`termin_id_1`,`termin_id_2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `termin_relation`
--
INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
(1, 0),
(2, 0),
(3, 0),
(4, 0),
(5, 0),
(6, 0),
(7, 0),
(8, 0),
(9, 0),
(10, 0),
(11, 0),
(12, 0),
(13, 0),
(17, 0),
(18, 0),
(19, 0),
(20, 8),
(21, 8),
(22, 190),
(23, 190),
(24, 190),
(25, 22),
(25, 23),
(26, 22),
(27, 22),
(28, 22),
(29, 22),
(30, 22),
(31, 22),
(32, 22),
(33, 22),
(34, 22),
(35, 22),
(36, 23),
(36, 24),
(37, 22),
(38, 22),
(39, 23),
(39, 24),
(40, 22),
(41, 22),
(42, 22),
(43, 22),
(44, 22),
(45, 22),
(46, 22),
(47, 22),
(48, 22),
(49, 23),
(49, 24),
(50, 22),
(51, 22),
(52, 22),
(53, 22),
(54, 22),
(55, 22),
(56, 22),
(57, 22),
(58, 22),
(59, 22),
(60, 22),
(61, 22),
(62, 22),
(63, 22),
(64, 22),
(65, 22),
(66, 22),
(67, 22),
(68, 22),
(69, 23),
(69, 24),
(70, 22),
(71, 22),
(72, 22),
(73, 22),
(74, 22),
(75, 24),
(76, 22),
(77, 22),
(78, 22),
(79, 22),
(80, 22),
(81, 24),
(82, 22),
(83, 22),
(84, 24),
(85, 22),
(86, 22),
(87, 24),
(88, 24),
(89, 22),
(90, 23),
(90, 24),
(91, 22),
(92, 22),
(93, 22),
(94, 23),
(94, 24),
(95, 24),
(96, 22),
(97, 22),
(98, 22),
(99, 22),
(100, 22),
(101, 22),
(102, 22),
(103, 22),
(104, 22),
(105, 22),
(106, 22),
(107, 22),
(108, 22),
(109, 22),
(110, 22),
(111, 22),
(112, 22),
(113, 22),
(114, 22),
(115, 22),
(116, 22),
(116, 23),
(117, 22),
(118, 22),
(119, 22),
(120, 22),
(121, 22),
(122, 22),
(123, 22),
(124, 22),
(125, 22),
(126, 22),
(127, 22),
(128, 22),
(129, 23),
(129, 24),
(130, 22),
(131, 22),
(132, 24),
(133, 23),
(133, 24),
(134, 24),
(135, 23),
(135, 24),
(136, 22),
(137, 22),
(138, 22),
(139, 23),
(139, 24),
(140, 22),
(141, 22),
(142, 22),
(143, 22),
(144, 22),
(145, 22),
(146, 22),
(147, 22),
(148, 22),
(148, 207),
(149, 22),
(150, 22),
(151, 22),
(152, 22),
(153, 22),
(154, 22),
(155, 22),
(156, 22),
(157, 22),
(158, 22),
(159, 22),
(160, 22),
(161, 22),
(162, 22),
(163, 24),
(164, 22),
(165, 22),
(166, 24),
(167, 22),
(168, 22),
(169, 22),
(170, 22),
(170, 23),
(171, 24),
(172, 22),
(173, 22),
(174, 22),
(174, 23),
(175, 22),
(176, 22),
(177, 22),
(178, 22),
(179, 23),
(179, 24),
(180, 22),
(181, 22),
(182, 22),
(183, 22),
(184, 22),
(185, 22),
(186, 23),
(186, 24),
(187, 22),
(188, 8),
(189, 8),
(190, 8),
(191, 21),
(192, 21),
(193, 21),
(194, 21),
(195, 21),
(196, 21),
(197, 20),
(198, 20),
(199, 20),
(200, 197),
(201, 197),
(202, 197),
(203, 197),
(204, 197),
(205, 197),
(206, 197),
(207, 20),
(208, 207),
(209, 207),
(210, 207),
(211, 207),
(212, 207),
(213, 207),
(214, 207);
-- --------------------------------------------------------
--
-- Table structure for table `termin_type`
--
CREATE TABLE IF NOT EXISTS `termin_type` (
`termin_type_id` int(2) NOT NULL AUTO_INCREMENT,
`termin_type_name` varchar(50) NOT NULL,
PRIMARY KEY (`termin_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `termin_type`
--
INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES
(1, 'tag'),
(2, 'news'),
(3, 'article'),
(4, 'category'),
(5, 'page');
-- --------------------------------------------------------
--
-- Table structure for table `termin_type_lang`
--
CREATE TABLE IF NOT EXISTS `termin_type_lang` (
`termin_type_id` int(2) NOT NULL,
`termin_type_title` varchar(50) NOT NULL,
`lang_id` int(2) NOT NULL,
PRIMARY KEY (`termin_type_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `termin_type_lang`
--
INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`) VALUES
(1, 'Тег', 1),
(1, 'Тег', 2),
(2, 'Новини', 1),
(2, 'Новости', 2),
(3, 'Статья', 1),
(3, 'Статья', 2),
(4, 'Категорія', 1),
(4, 'Категория', 2),
(5, 'Сторінка', 1),
(5, 'Страница', 2);
-- --------------------------------------------------------
--
-- Table structure for table `translation`
--
CREATE TABLE IF NOT EXISTS `translation` (
`translation_id` int(6) NOT NULL AUTO_INCREMENT,
`translation_pid` int(6) DEFAULT NULL,
`translation_key` varchar(200) NOT NULL,
`is_translation` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`translation_id`),
KEY `Индекс 2` (`translation_pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `translation`
--
INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key`, `is_translation`) VALUES
(1, 0, 'telephone', 0),
(2, 0, 'address', 1),
(3, 2, 'address_location', 1);
-- --------------------------------------------------------
--
-- Table structure for table `translation_lang`
--
CREATE TABLE IF NOT EXISTS `translation_lang` (
`translation_id` int(6) NOT NULL,
`translation_value` text NOT NULL,
`lang_id` int(2) NOT NULL DEFAULT '0',
PRIMARY KEY (`translation_id`,`lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `translation_lang`
--
INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`) VALUES
(1, '(093) 603-27-32', 0),
(2, 'Адреса', 1),
(2, 'Адрес', 2),
(3, 'вул. Срібнокільська 1а', 1),
(3, 'ул. Срибнокильская 1а', 2);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`lastname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`firstname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`middlename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `password_reset_token` (`password_reset_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `lastname`, `firstname`, `middlename`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'Андреев', 'Владимир', 'Сергійович', 'VgTs2skfY1Uf3YERn1OR3E2V_Hm0KZwF', '$2y$13$jOtOdIQUU2.ZyEkxN9TJjuhfS7Q3p2K/KqGWNyBab07OaQUsJ5nSi', NULL, 'volodymyr.andryeyev@gmail.com', 10, 1446046164, 1446538181);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `option`
--
ALTER TABLE `option`
ADD CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`);
--
-- Constraints for table `translation_lang`
--
ALTER TABLE `translation_lang`
ADD CONSTRAINT `translation_id` FOREIGN KEY (`translation_id`) REFERENCES `translation` (`translation_id`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;