-- --------------------------------------------------------
-- Хост:                         127.0.0.1
-- Версия сервера:               5.6.26 - MySQL Community Server (GPL)
-- ОС Сервера:                   Win32
-- HeidiSQL Версия:              9.3.0.4984
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

-- Дамп структуры для таблица artbox_db.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`),
  CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;

-- Дамп данных таблицы artbox_db.option: ~6 rows (приблизительно)
/*!40000 ALTER TABLE `option` DISABLE KEYS */;
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);
/*!40000 ALTER TABLE `option` ENABLE KEYS */;


-- Дамп структуры для таблица artbox_db.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 AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;

-- Дамп данных таблицы artbox_db.option_lang: ~16 rows (приблизительно)
/*!40000 ALTER TABLE `option_lang` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `option_lang` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
