Commit 46bf80cf966f39f021457bf50cf7e6c50c2fbe54

Authored by Dmitryi
1 parent b2a15e0c

db migrate role

db-migration/artbox_db.sql renamed to db-migration/artbox_db (1).sql
1 -- phpMyAdmin SQL Dump 1 -- phpMyAdmin SQL Dump
2 --- version 4.0.10.10 2 +-- version 4.0.10
3 -- http://www.phpmyadmin.net 3 -- http://www.phpmyadmin.net
4 -- 4 --
5 -- Хост: 127.0.0.1:3306 5 -- Хост: 127.0.0.1:3306
6 --- Час створення: Лис 18 2015 р., 13:28  
7 --- Версія сервера: 5.5.45  
8 --- Версія PHP: 5.3.29 6 +-- Время создания: Ноя 19 2015 г., 13:53
  7 +-- Версия сервера: 5.5.38-log
  8 +-- Версия PHP: 5.5.13
9 9
10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00"; 11 SET time_zone = "+00:00";
@@ -17,13 +17,13 @@ SET time_zone = "+00:00"; @@ -17,13 +17,13 @@ SET time_zone = "+00:00";
17 /*!40101 SET NAMES utf8 */; 17 /*!40101 SET NAMES utf8 */;
18 18
19 -- 19 --
20 --- База даних: `artbox_db` 20 +-- База данных: `artbox_db`
21 -- 21 --
22 22
23 -- -------------------------------------------------------- 23 -- --------------------------------------------------------
24 24
25 -- 25 --
26 --- Структура таблиці `attribute` 26 +-- Структура таблицы `attribute`
27 -- 27 --
28 28
29 CREATE TABLE IF NOT EXISTS `attribute` ( 29 CREATE TABLE IF NOT EXISTS `attribute` (
@@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `attribute` ( @@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `attribute` (
38 -- -------------------------------------------------------- 38 -- --------------------------------------------------------
39 39
40 -- 40 --
41 --- Структура таблиці `attribute_group` 41 +-- Структура таблицы `attribute_group`
42 -- 42 --
43 43
44 CREATE TABLE IF NOT EXISTS `attribute_group` ( 44 CREATE TABLE IF NOT EXISTS `attribute_group` (
@@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group` ( @@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group` (
52 -- -------------------------------------------------------- 52 -- --------------------------------------------------------
53 53
54 -- 54 --
55 --- Структура таблиці `attribute_group_lang` 55 +-- Структура таблицы `attribute_group_lang`
56 -- 56 --
57 57
58 CREATE TABLE IF NOT EXISTS `attribute_group_lang` ( 58 CREATE TABLE IF NOT EXISTS `attribute_group_lang` (
@@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group_lang` ( @@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `attribute_group_lang` (
66 -- -------------------------------------------------------- 66 -- --------------------------------------------------------
67 67
68 -- 68 --
69 --- Структура таблиці `attribute_lang` 69 +-- Структура таблицы `attribute_lang`
70 -- 70 --
71 71
72 CREATE TABLE IF NOT EXISTS `attribute_lang` ( 72 CREATE TABLE IF NOT EXISTS `attribute_lang` (
@@ -81,7 +81,66 @@ CREATE TABLE IF NOT EXISTS `attribute_lang` ( @@ -81,7 +81,66 @@ CREATE TABLE IF NOT EXISTS `attribute_lang` (
81 -- -------------------------------------------------------- 81 -- --------------------------------------------------------
82 82
83 -- 83 --
84 --- Структура таблиці `feature` 84 +-- Структура таблицы `auth_assignment`
  85 +--
  86 +
  87 +CREATE TABLE IF NOT EXISTS `auth_assignment` (
  88 + `item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  89 + `user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  90 + `created_at` int(11) DEFAULT NULL,
  91 + PRIMARY KEY (`item_name`,`user_id`)
  92 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  93 +
  94 +-- --------------------------------------------------------
  95 +
  96 +--
  97 +-- Структура таблицы `auth_item`
  98 +--
  99 +
  100 +CREATE TABLE IF NOT EXISTS `auth_item` (
  101 + `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  102 + `type` int(11) NOT NULL,
  103 + `description` text COLLATE utf8_unicode_ci,
  104 + `rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  105 + `data` text COLLATE utf8_unicode_ci,
  106 + `created_at` int(11) DEFAULT NULL,
  107 + `updated_at` int(11) DEFAULT NULL,
  108 + PRIMARY KEY (`name`),
  109 + KEY `rule_name` (`rule_name`),
  110 + KEY `idx-auth_item-type` (`type`)
  111 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  112 +
  113 +-- --------------------------------------------------------
  114 +
  115 +--
  116 +-- Структура таблицы `auth_item_child`
  117 +--
  118 +
  119 +CREATE TABLE IF NOT EXISTS `auth_item_child` (
  120 + `parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  121 + `child` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  122 + PRIMARY KEY (`parent`,`child`),
  123 + KEY `child` (`child`)
  124 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  125 +
  126 +-- --------------------------------------------------------
  127 +
  128 +--
  129 +-- Структура таблицы `auth_rule`
  130 +--
  131 +
  132 +CREATE TABLE IF NOT EXISTS `auth_rule` (
  133 + `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  134 + `data` text COLLATE utf8_unicode_ci,
  135 + `created_at` int(11) DEFAULT NULL,
  136 + `updated_at` int(11) DEFAULT NULL,
  137 + PRIMARY KEY (`name`)
  138 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  139 +
  140 +-- --------------------------------------------------------
  141 +
  142 +--
  143 +-- Структура таблицы `feature`
85 -- 144 --
86 145
87 CREATE TABLE IF NOT EXISTS `feature` ( 146 CREATE TABLE IF NOT EXISTS `feature` (
@@ -96,7 +155,7 @@ CREATE TABLE IF NOT EXISTS `feature` ( @@ -96,7 +155,7 @@ CREATE TABLE IF NOT EXISTS `feature` (
96 -- -------------------------------------------------------- 155 -- --------------------------------------------------------
97 156
98 -- 157 --
99 --- Структура таблиці `feature_group` 158 +-- Структура таблицы `feature_group`
100 -- 159 --
101 160
102 CREATE TABLE IF NOT EXISTS `feature_group` ( 161 CREATE TABLE IF NOT EXISTS `feature_group` (
@@ -108,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `feature_group` ( @@ -108,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `feature_group` (
108 -- -------------------------------------------------------- 167 -- --------------------------------------------------------
109 168
110 -- 169 --
111 --- Структура таблиці `feature_group_lang` 170 +-- Структура таблицы `feature_group_lang`
112 -- 171 --
113 172
114 CREATE TABLE IF NOT EXISTS `feature_group_lang` ( 173 CREATE TABLE IF NOT EXISTS `feature_group_lang` (
@@ -122,7 +181,7 @@ CREATE TABLE IF NOT EXISTS `feature_group_lang` ( @@ -122,7 +181,7 @@ CREATE TABLE IF NOT EXISTS `feature_group_lang` (
122 -- -------------------------------------------------------- 181 -- --------------------------------------------------------
123 182
124 -- 183 --
125 --- Структура таблиці `feature_lang` 184 +-- Структура таблицы `feature_lang`
126 -- 185 --
127 186
128 CREATE TABLE IF NOT EXISTS `feature_lang` ( 187 CREATE TABLE IF NOT EXISTS `feature_lang` (
@@ -137,7 +196,7 @@ CREATE TABLE IF NOT EXISTS `feature_lang` ( @@ -137,7 +196,7 @@ CREATE TABLE IF NOT EXISTS `feature_lang` (
137 -- -------------------------------------------------------- 196 -- --------------------------------------------------------
138 197
139 -- 198 --
140 --- Структура таблиці `image` 199 +-- Структура таблицы `image`
141 -- 200 --
142 201
143 CREATE TABLE IF NOT EXISTS `image` ( 202 CREATE TABLE IF NOT EXISTS `image` (
@@ -150,7 +209,7 @@ CREATE TABLE IF NOT EXISTS `image` ( @@ -150,7 +209,7 @@ CREATE TABLE IF NOT EXISTS `image` (
150 -- -------------------------------------------------------- 209 -- --------------------------------------------------------
151 210
152 -- 211 --
153 --- Структура таблиці `language` 212 +-- Структура таблицы `language`
154 -- 213 --
155 214
156 CREATE TABLE IF NOT EXISTS `language` ( 215 CREATE TABLE IF NOT EXISTS `language` (
@@ -161,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `language` ( @@ -161,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `language` (
161 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; 220 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
162 221
163 -- 222 --
164 --- Дамп даних таблиці `language` 223 +-- Дамп данных таблицы `language`
165 -- 224 --
166 225
167 INSERT INTO `language` (`language_id`, `lang_code`, `is_default`) VALUES 226 INSERT INTO `language` (`language_id`, `lang_code`, `is_default`) VALUES
@@ -171,7 +230,7 @@ INSERT INTO `language` (`language_id`, `lang_code`, `is_default`) VALUES @@ -171,7 +230,7 @@ INSERT INTO `language` (`language_id`, `lang_code`, `is_default`) VALUES
171 -- -------------------------------------------------------- 230 -- --------------------------------------------------------
172 231
173 -- 232 --
174 --- Структура таблиці `language_lang` 233 +-- Структура таблицы `language_lang`
175 -- 234 --
176 235
177 CREATE TABLE IF NOT EXISTS `language_lang` ( 236 CREATE TABLE IF NOT EXISTS `language_lang` (
@@ -182,7 +241,7 @@ CREATE TABLE IF NOT EXISTS `language_lang` ( @@ -182,7 +241,7 @@ CREATE TABLE IF NOT EXISTS `language_lang` (
182 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 241 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
183 242
184 -- 243 --
185 --- Дамп даних таблиці `language_lang` 244 +-- Дамп данных таблицы `language_lang`
186 -- 245 --
187 246
188 INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES 247 INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES
@@ -192,7 +251,7 @@ INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES @@ -192,7 +251,7 @@ INSERT INTO `language_lang` (`language_id`, `lang_title`, `lang_id`) VALUES
192 -- -------------------------------------------------------- 251 -- --------------------------------------------------------
193 252
194 -- 253 --
195 --- Структура таблиці `menu` 254 +-- Структура таблицы `menu`
196 -- 255 --
197 256
198 CREATE TABLE IF NOT EXISTS `menu` ( 257 CREATE TABLE IF NOT EXISTS `menu` (
@@ -213,7 +272,7 @@ CREATE TABLE IF NOT EXISTS `menu` ( @@ -213,7 +272,7 @@ CREATE TABLE IF NOT EXISTS `menu` (
213 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ; 272 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
214 273
215 -- 274 --
216 --- Дамп даних таблиці `menu` 275 +-- Дамп данных таблицы `menu`
217 -- 276 --
218 277
219 INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_open`, `menu_location_id`, `sortorder`, `name`, `url`) VALUES 278 INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_open`, `menu_location_id`, `sortorder`, `name`, `url`) VALUES
@@ -233,7 +292,7 @@ INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_ope @@ -233,7 +292,7 @@ INSERT INTO `menu` (`menu_id`, `menu_pid`, `level`, `termin_id`, `show`, `is_ope
233 -- -------------------------------------------------------- 292 -- --------------------------------------------------------
234 293
235 -- 294 --
236 --- Структура таблиці `menu_location` 295 +-- Структура таблицы `menu_location`
237 -- 296 --
238 297
239 CREATE TABLE IF NOT EXISTS `menu_location` ( 298 CREATE TABLE IF NOT EXISTS `menu_location` (
@@ -243,7 +302,7 @@ CREATE TABLE IF NOT EXISTS `menu_location` ( @@ -243,7 +302,7 @@ CREATE TABLE IF NOT EXISTS `menu_location` (
243 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; 302 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
244 303
245 -- 304 --
246 --- Дамп даних таблиці `menu_location` 305 +-- Дамп данных таблицы `menu_location`
247 -- 306 --
248 307
249 INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES 308 INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES
@@ -254,7 +313,7 @@ INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES @@ -254,7 +313,7 @@ INSERT INTO `menu_location` (`menu_location_id`, `menu_location_name`) VALUES
254 -- -------------------------------------------------------- 313 -- --------------------------------------------------------
255 314
256 -- 315 --
257 --- Структура таблиці `menu_location_lang` 316 +-- Структура таблицы `menu_location_lang`
258 -- 317 --
259 318
260 CREATE TABLE IF NOT EXISTS `menu_location_lang` ( 319 CREATE TABLE IF NOT EXISTS `menu_location_lang` (
@@ -265,7 +324,7 @@ CREATE TABLE IF NOT EXISTS `menu_location_lang` ( @@ -265,7 +324,7 @@ CREATE TABLE IF NOT EXISTS `menu_location_lang` (
265 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 324 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
266 325
267 -- 326 --
268 --- Дамп даних таблиці `menu_location_lang` 327 +-- Дамп данных таблицы `menu_location_lang`
269 -- 328 --
270 329
271 INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `lang_id`) VALUES 330 INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `lang_id`) VALUES
@@ -276,7 +335,7 @@ INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `la @@ -276,7 +335,7 @@ INSERT INTO `menu_location_lang` (`menu_location_id`, `menu_location_title`, `la
276 -- -------------------------------------------------------- 335 -- --------------------------------------------------------
277 336
278 -- 337 --
279 --- Структура таблиці `migration` 338 +-- Структура таблицы `migration`
280 -- 339 --
281 340
282 CREATE TABLE IF NOT EXISTS `migration` ( 341 CREATE TABLE IF NOT EXISTS `migration` (
@@ -286,7 +345,7 @@ CREATE TABLE IF NOT EXISTS `migration` ( @@ -286,7 +345,7 @@ CREATE TABLE IF NOT EXISTS `migration` (
286 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 345 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
287 346
288 -- 347 --
289 --- Дамп даних таблиці `migration` 348 +-- Дамп данных таблицы `migration`
290 -- 349 --
291 350
292 INSERT INTO `migration` (`version`, `apply_time`) VALUES 351 INSERT INTO `migration` (`version`, `apply_time`) VALUES
@@ -297,7 +356,7 @@ INSERT INTO `migration` (`version`, `apply_time`) VALUES @@ -297,7 +356,7 @@ INSERT INTO `migration` (`version`, `apply_time`) VALUES
297 -- -------------------------------------------------------- 356 -- --------------------------------------------------------
298 357
299 -- 358 --
300 --- Структура таблиці `module` 359 +-- Структура таблицы `module`
301 -- 360 --
302 361
303 CREATE TABLE IF NOT EXISTS `module` ( 362 CREATE TABLE IF NOT EXISTS `module` (
@@ -308,7 +367,7 @@ CREATE TABLE IF NOT EXISTS `module` ( @@ -308,7 +367,7 @@ CREATE TABLE IF NOT EXISTS `module` (
308 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 367 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
309 368
310 -- 369 --
311 --- Дамп даних таблиці `module` 370 +-- Дамп данных таблицы `module`
312 -- 371 --
313 372
314 INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES 373 INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES
@@ -317,7 +376,7 @@ INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES @@ -317,7 +376,7 @@ INSERT INTO `module` (`module_id`, `module_name`, `module_version`) VALUES
317 -- -------------------------------------------------------- 376 -- --------------------------------------------------------
318 377
319 -- 378 --
320 --- Структура таблиці `module_function` 379 +-- Структура таблицы `module_function`
321 -- 380 --
322 381
323 CREATE TABLE IF NOT EXISTS `module_function` ( 382 CREATE TABLE IF NOT EXISTS `module_function` (
@@ -327,7 +386,7 @@ CREATE TABLE IF NOT EXISTS `module_function` ( @@ -327,7 +386,7 @@ CREATE TABLE IF NOT EXISTS `module_function` (
327 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; 386 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
328 387
329 -- 388 --
330 --- Дамп даних таблиці `module_function` 389 +-- Дамп данных таблицы `module_function`
331 -- 390 --
332 391
333 INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VALUES 392 INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VALUES
@@ -336,7 +395,7 @@ INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VAL @@ -336,7 +395,7 @@ INSERT INTO `module_function` (`module_function_id`, `module_function_name`) VAL
336 -- -------------------------------------------------------- 395 -- --------------------------------------------------------
337 396
338 -- 397 --
339 --- Структура таблиці `module_function_lang` 398 +-- Структура таблицы `module_function_lang`
340 -- 399 --
341 400
342 CREATE TABLE IF NOT EXISTS `module_function_lang` ( 401 CREATE TABLE IF NOT EXISTS `module_function_lang` (
@@ -347,7 +406,7 @@ CREATE TABLE IF NOT EXISTS `module_function_lang` ( @@ -347,7 +406,7 @@ CREATE TABLE IF NOT EXISTS `module_function_lang` (
347 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 406 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
348 407
349 -- 408 --
350 --- Дамп даних таблиці `module_function_lang` 409 +-- Дамп данных таблицы `module_function_lang`
351 -- 410 --
352 411
353 INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title`, `lang_id`) VALUES 412 INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title`, `lang_id`) VALUES
@@ -356,7 +415,7 @@ INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title @@ -356,7 +415,7 @@ INSERT INTO `module_function_lang` (`module_function_id`, `module_function_title
356 -- -------------------------------------------------------- 415 -- --------------------------------------------------------
357 416
358 -- 417 --
359 --- Структура таблиці `module_lang` 418 +-- Структура таблицы `module_lang`
360 -- 419 --
361 420
362 CREATE TABLE IF NOT EXISTS `module_lang` ( 421 CREATE TABLE IF NOT EXISTS `module_lang` (
@@ -367,7 +426,7 @@ CREATE TABLE IF NOT EXISTS `module_lang` ( @@ -367,7 +426,7 @@ CREATE TABLE IF NOT EXISTS `module_lang` (
367 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 426 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
368 427
369 -- 428 --
370 --- Дамп даних таблиці `module_lang` 429 +-- Дамп данных таблицы `module_lang`
371 -- 430 --
372 431
373 INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES 432 INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES
@@ -376,7 +435,7 @@ INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES @@ -376,7 +435,7 @@ INSERT INTO `module_lang` (`module_id`, `module_title`, `lang_id`) VALUES
376 -- -------------------------------------------------------- 435 -- --------------------------------------------------------
377 436
378 -- 437 --
379 --- Структура таблиці `option` 438 +-- Структура таблицы `option`
380 -- 439 --
381 440
382 CREATE TABLE IF NOT EXISTS `option` ( 441 CREATE TABLE IF NOT EXISTS `option` (
@@ -391,7 +450,7 @@ CREATE TABLE IF NOT EXISTS `option` ( @@ -391,7 +450,7 @@ CREATE TABLE IF NOT EXISTS `option` (
391 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ; 450 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;
392 451
393 -- 452 --
394 --- Дамп даних таблиці `option` 453 +-- Дамп данных таблицы `option`
395 -- 454 --
396 455
397 INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES 456 INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `parent_id`) VALUES
@@ -405,7 +464,7 @@ INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `par @@ -405,7 +464,7 @@ INSERT INTO `option` (`option_id`, `model`, `model_id`, `name`, `template`, `par
405 -- -------------------------------------------------------- 464 -- --------------------------------------------------------
406 465
407 -- 466 --
408 --- Структура таблиці `option_lang` 467 +-- Структура таблицы `option_lang`
409 -- 468 --
410 469
411 CREATE TABLE IF NOT EXISTS `option_lang` ( 470 CREATE TABLE IF NOT EXISTS `option_lang` (
@@ -419,7 +478,7 @@ CREATE TABLE IF NOT EXISTS `option_lang` ( @@ -419,7 +478,7 @@ CREATE TABLE IF NOT EXISTS `option_lang` (
419 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ; 478 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ;
420 479
421 -- 480 --
422 --- Дамп даних таблиці `option_lang` 481 +-- Дамп данных таблицы `option_lang`
423 -- 482 --
424 483
425 INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES 484 INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES
@@ -443,7 +502,7 @@ INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES @@ -443,7 +502,7 @@ INSERT INTO `option_lang` (`primary`, `id`, `lang_id`, `value`) VALUES
443 -- -------------------------------------------------------- 502 -- --------------------------------------------------------
444 503
445 -- 504 --
446 --- Структура таблиці `page` 505 +-- Структура таблицы `page`
447 -- 506 --
448 507
449 CREATE TABLE IF NOT EXISTS `page` ( 508 CREATE TABLE IF NOT EXISTS `page` (
@@ -454,7 +513,7 @@ CREATE TABLE IF NOT EXISTS `page` ( @@ -454,7 +513,7 @@ CREATE TABLE IF NOT EXISTS `page` (
454 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ; 513 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
455 514
456 -- 515 --
457 --- Дамп даних таблиці `page` 516 +-- Дамп данных таблицы `page`
458 -- 517 --
459 518
460 INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES 519 INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES
@@ -475,7 +534,7 @@ INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES @@ -475,7 +534,7 @@ INSERT INTO `page` (`page_id`, `date_add`, `show`) VALUES
475 -- -------------------------------------------------------- 534 -- --------------------------------------------------------
476 535
477 -- 536 --
478 --- Структура таблиці `page_lang` 537 +-- Структура таблицы `page_lang`
479 -- 538 --
480 539
481 CREATE TABLE IF NOT EXISTS `page_lang` ( 540 CREATE TABLE IF NOT EXISTS `page_lang` (
@@ -488,7 +547,7 @@ CREATE TABLE IF NOT EXISTS `page_lang` ( @@ -488,7 +547,7 @@ CREATE TABLE IF NOT EXISTS `page_lang` (
488 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 547 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
489 548
490 -- 549 --
491 --- Дамп даних таблиці `page_lang` 550 +-- Дамп данных таблицы `page_lang`
492 -- 551 --
493 552
494 INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `lang_id`) VALUES 553 INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `lang_id`) VALUES
@@ -509,7 +568,7 @@ INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `l @@ -509,7 +568,7 @@ INSERT INTO `page_lang` (`page_id`, `meta_title`, `meta_description`, `text`, `l
509 -- -------------------------------------------------------- 568 -- --------------------------------------------------------
510 569
511 -- 570 --
512 --- Структура таблиці `product` 571 +-- Структура таблицы `product`
513 -- 572 --
514 573
515 CREATE TABLE IF NOT EXISTS `product` ( 574 CREATE TABLE IF NOT EXISTS `product` (
@@ -533,7 +592,7 @@ CREATE TABLE IF NOT EXISTS `product` ( @@ -533,7 +592,7 @@ CREATE TABLE IF NOT EXISTS `product` (
533 -- -------------------------------------------------------- 592 -- --------------------------------------------------------
534 593
535 -- 594 --
536 --- Структура таблиці `product_attribute` 595 +-- Структура таблицы `product_attribute`
537 -- 596 --
538 597
539 CREATE TABLE IF NOT EXISTS `product_attribute` ( 598 CREATE TABLE IF NOT EXISTS `product_attribute` (
@@ -563,7 +622,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute` ( @@ -563,7 +622,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute` (
563 -- -------------------------------------------------------- 622 -- --------------------------------------------------------
564 623
565 -- 624 --
566 --- Структура таблиці `product_attribute_combination` 625 +-- Структура таблицы `product_attribute_combination`
567 -- 626 --
568 627
569 CREATE TABLE IF NOT EXISTS `product_attribute_combination` ( 628 CREATE TABLE IF NOT EXISTS `product_attribute_combination` (
@@ -576,7 +635,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute_combination` ( @@ -576,7 +635,7 @@ CREATE TABLE IF NOT EXISTS `product_attribute_combination` (
576 -- -------------------------------------------------------- 635 -- --------------------------------------------------------
577 636
578 -- 637 --
579 --- Структура таблиці `product_feature` 638 +-- Структура таблицы `product_feature`
580 -- 639 --
581 640
582 CREATE TABLE IF NOT EXISTS `product_feature` ( 641 CREATE TABLE IF NOT EXISTS `product_feature` (
@@ -591,7 +650,7 @@ CREATE TABLE IF NOT EXISTS `product_feature` ( @@ -591,7 +650,7 @@ CREATE TABLE IF NOT EXISTS `product_feature` (
591 -- -------------------------------------------------------- 650 -- --------------------------------------------------------
592 651
593 -- 652 --
594 --- Структура таблиці `product_image` 653 +-- Структура таблицы `product_image`
595 -- 654 --
596 655
597 CREATE TABLE IF NOT EXISTS `product_image` ( 656 CREATE TABLE IF NOT EXISTS `product_image` (
@@ -604,7 +663,7 @@ CREATE TABLE IF NOT EXISTS `product_image` ( @@ -604,7 +663,7 @@ CREATE TABLE IF NOT EXISTS `product_image` (
604 -- -------------------------------------------------------- 663 -- --------------------------------------------------------
605 664
606 -- 665 --
607 --- Структура таблиці `template` 666 +-- Структура таблицы `template`
608 -- 667 --
609 668
610 CREATE TABLE IF NOT EXISTS `template` ( 669 CREATE TABLE IF NOT EXISTS `template` (
@@ -615,7 +674,7 @@ CREATE TABLE IF NOT EXISTS `template` ( @@ -615,7 +674,7 @@ CREATE TABLE IF NOT EXISTS `template` (
615 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; 674 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
616 675
617 -- 676 --
618 --- Дамп даних таблиці `template` 677 +-- Дамп данных таблицы `template`
619 -- 678 --
620 679
621 INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES 680 INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES
@@ -628,7 +687,7 @@ INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES @@ -628,7 +687,7 @@ INSERT INTO `template` (`template_id`, `template_alias`, `template_file`) VALUES
628 -- -------------------------------------------------------- 687 -- --------------------------------------------------------
629 688
630 -- 689 --
631 --- Структура таблиці `template_lang` 690 +-- Структура таблицы `template_lang`
632 -- 691 --
633 692
634 CREATE TABLE IF NOT EXISTS `template_lang` ( 693 CREATE TABLE IF NOT EXISTS `template_lang` (
@@ -639,7 +698,7 @@ CREATE TABLE IF NOT EXISTS `template_lang` ( @@ -639,7 +698,7 @@ CREATE TABLE IF NOT EXISTS `template_lang` (
639 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 698 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
640 699
641 -- 700 --
642 --- Дамп даних таблиці `template_lang` 701 +-- Дамп данных таблицы `template_lang`
643 -- 702 --
644 703
645 INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES 704 INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES
@@ -652,7 +711,7 @@ INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES @@ -652,7 +711,7 @@ INSERT INTO `template_lang` (`template_id`, `template_title`, `lang_id`) VALUES
652 -- -------------------------------------------------------- 711 -- --------------------------------------------------------
653 712
654 -- 713 --
655 --- Структура таблиці `termin` 714 +-- Структура таблицы `termin`
656 -- 715 --
657 716
658 CREATE TABLE IF NOT EXISTS `termin` ( 717 CREATE TABLE IF NOT EXISTS `termin` (
@@ -665,7 +724,7 @@ CREATE TABLE IF NOT EXISTS `termin` ( @@ -665,7 +724,7 @@ CREATE TABLE IF NOT EXISTS `termin` (
665 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=197 ; 724 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=197 ;
666 725
667 -- 726 --
668 --- Дамп даних таблиці `termin` 727 +-- Дамп данных таблицы `termin`
669 -- 728 --
670 729
671 INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`) VALUES 730 INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`) VALUES
@@ -866,7 +925,7 @@ INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id` @@ -866,7 +925,7 @@ INSERT INTO `termin` (`termin_id`, `termin_pid`, `TYPE`, `is_default`, `page_id`
866 -- -------------------------------------------------------- 925 -- --------------------------------------------------------
867 926
868 -- 927 --
869 --- Структура таблиці `termin_lang` 928 +-- Структура таблицы `termin_lang`
870 -- 929 --
871 930
872 CREATE TABLE IF NOT EXISTS `termin_lang` ( 931 CREATE TABLE IF NOT EXISTS `termin_lang` (
@@ -880,7 +939,7 @@ CREATE TABLE IF NOT EXISTS `termin_lang` ( @@ -880,7 +939,7 @@ CREATE TABLE IF NOT EXISTS `termin_lang` (
880 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 939 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
881 940
882 -- 941 --
883 --- Дамп даних таблиці `termin_lang` 942 +-- Дамп данных таблицы `termin_lang`
884 -- 943 --
885 944
886 INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_title`, `lang_id`) VALUES 945 INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_title`, `lang_id`) VALUES
@@ -1081,7 +1140,7 @@ INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_t @@ -1081,7 +1140,7 @@ INSERT INTO `termin_lang` (`termin_id`, `template_id`, `termin_alias`, `termin_t
1081 -- -------------------------------------------------------- 1140 -- --------------------------------------------------------
1082 1141
1083 -- 1142 --
1084 --- Структура таблиці `termin_relation` 1143 +-- Структура таблицы `termin_relation`
1085 -- 1144 --
1086 1145
1087 CREATE TABLE IF NOT EXISTS `termin_relation` ( 1146 CREATE TABLE IF NOT EXISTS `termin_relation` (
@@ -1091,7 +1150,7 @@ CREATE TABLE IF NOT EXISTS `termin_relation` ( @@ -1091,7 +1150,7 @@ CREATE TABLE IF NOT EXISTS `termin_relation` (
1091 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1150 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1092 1151
1093 -- 1152 --
1094 --- Дамп даних таблиці `termin_relation` 1153 +-- Дамп данных таблицы `termin_relation`
1095 -- 1154 --
1096 1155
1097 INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES 1156 INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
@@ -1308,7 +1367,7 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES @@ -1308,7 +1367,7 @@ INSERT INTO `termin_relation` (`termin_id_1`, `termin_id_2`) VALUES
1308 -- -------------------------------------------------------- 1367 -- --------------------------------------------------------
1309 1368
1310 -- 1369 --
1311 --- Структура таблиці `termin_type` 1370 +-- Структура таблицы `termin_type`
1312 -- 1371 --
1313 1372
1314 CREATE TABLE IF NOT EXISTS `termin_type` ( 1373 CREATE TABLE IF NOT EXISTS `termin_type` (
@@ -1318,7 +1377,7 @@ CREATE TABLE IF NOT EXISTS `termin_type` ( @@ -1318,7 +1377,7 @@ CREATE TABLE IF NOT EXISTS `termin_type` (
1318 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; 1377 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
1319 1378
1320 -- 1379 --
1321 --- Дамп даних таблиці `termin_type` 1380 +-- Дамп данных таблицы `termin_type`
1322 -- 1381 --
1323 1382
1324 INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES 1383 INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES
@@ -1331,7 +1390,7 @@ INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES @@ -1331,7 +1390,7 @@ INSERT INTO `termin_type` (`termin_type_id`, `termin_type_name`) VALUES
1331 -- -------------------------------------------------------- 1390 -- --------------------------------------------------------
1332 1391
1333 -- 1392 --
1334 --- Структура таблиці `termin_type_lang` 1393 +-- Структура таблицы `termin_type_lang`
1335 -- 1394 --
1336 1395
1337 CREATE TABLE IF NOT EXISTS `termin_type_lang` ( 1396 CREATE TABLE IF NOT EXISTS `termin_type_lang` (
@@ -1342,7 +1401,7 @@ CREATE TABLE IF NOT EXISTS `termin_type_lang` ( @@ -1342,7 +1401,7 @@ CREATE TABLE IF NOT EXISTS `termin_type_lang` (
1342 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1401 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1343 1402
1344 -- 1403 --
1345 --- Дамп даних таблиці `termin_type_lang` 1404 +-- Дамп данных таблицы `termin_type_lang`
1346 -- 1405 --
1347 1406
1348 INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`) VALUES 1407 INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`) VALUES
@@ -1360,7 +1419,7 @@ INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id` @@ -1360,7 +1419,7 @@ INSERT INTO `termin_type_lang` (`termin_type_id`, `termin_type_title`, `lang_id`
1360 -- -------------------------------------------------------- 1419 -- --------------------------------------------------------
1361 1420
1362 -- 1421 --
1363 --- Структура таблиці `translation` 1422 +-- Структура таблицы `translation`
1364 -- 1423 --
1365 1424
1366 CREATE TABLE IF NOT EXISTS `translation` ( 1425 CREATE TABLE IF NOT EXISTS `translation` (
@@ -1373,7 +1432,7 @@ CREATE TABLE IF NOT EXISTS `translation` ( @@ -1373,7 +1432,7 @@ CREATE TABLE IF NOT EXISTS `translation` (
1373 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; 1432 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
1374 1433
1375 -- 1434 --
1376 --- Дамп даних таблиці `translation` 1435 +-- Дамп данных таблицы `translation`
1377 -- 1436 --
1378 1437
1379 INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key`, `is_translation`) VALUES 1438 INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key`, `is_translation`) VALUES
@@ -1384,7 +1443,7 @@ INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key @@ -1384,7 +1443,7 @@ INSERT INTO `translation` (`translation_id`, `translation_pid`, `translation_key
1384 -- -------------------------------------------------------- 1443 -- --------------------------------------------------------
1385 1444
1386 -- 1445 --
1387 --- Структура таблиці `translation_lang` 1446 +-- Структура таблицы `translation_lang`
1388 -- 1447 --
1389 1448
1390 CREATE TABLE IF NOT EXISTS `translation_lang` ( 1449 CREATE TABLE IF NOT EXISTS `translation_lang` (
@@ -1395,7 +1454,7 @@ CREATE TABLE IF NOT EXISTS `translation_lang` ( @@ -1395,7 +1454,7 @@ CREATE TABLE IF NOT EXISTS `translation_lang` (
1395 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 1454 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1396 1455
1397 -- 1456 --
1398 --- Дамп даних таблиці `translation_lang` 1457 +-- Дамп данных таблицы `translation_lang`
1399 -- 1458 --
1400 1459
1401 INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`) VALUES 1460 INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`) VALUES
@@ -1408,7 +1467,7 @@ INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id` @@ -1408,7 +1467,7 @@ INSERT INTO `translation_lang` (`translation_id`, `translation_value`, `lang_id`
1408 -- -------------------------------------------------------- 1467 -- --------------------------------------------------------
1409 1468
1410 -- 1469 --
1411 --- Структура таблиці `user` 1470 +-- Структура таблицы `user`
1412 -- 1471 --
1413 1472
1414 CREATE TABLE IF NOT EXISTS `user` ( 1473 CREATE TABLE IF NOT EXISTS `user` (
@@ -1428,27 +1487,48 @@ CREATE TABLE IF NOT EXISTS `user` ( @@ -1428,27 +1487,48 @@ CREATE TABLE IF NOT EXISTS `user` (
1428 UNIQUE KEY `email` (`email`), 1487 UNIQUE KEY `email` (`email`),
1429 UNIQUE KEY `username` (`username`), 1488 UNIQUE KEY `username` (`username`),
1430 UNIQUE KEY `password_reset_token` (`password_reset_token`) 1489 UNIQUE KEY `password_reset_token` (`password_reset_token`)
1431 -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; 1490 +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
1432 1491
1433 -- 1492 --
1434 --- Дамп даних таблиці `user` 1493 +-- Дамп данных таблицы `user`
1435 -- 1494 --
1436 1495
1437 INSERT INTO `user` (`id`, `username`, `lastname`, `firstname`, `middlename`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES 1496 INSERT INTO `user` (`id`, `username`, `lastname`, `firstname`, `middlename`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
1438 -(1, 'zlodeyev', 'Андреев', 'Владимир', 'Сергійович', 'VgTs2skfY1Uf3YERn1OR3E2V_Hm0KZwF', '$2y$13$jOtOdIQUU2.ZyEkxN9TJjuhfS7Q3p2K/KqGWNyBab07OaQUsJ5nSi', NULL, 'volodymyr.andryeyev@gmail.com', 10, 1446046164, 1446538181); 1497 +(1, 'zlodeyev', 'Андреев', 'Владимир', 'Сергійович', 'VgTs2skfY1Uf3YERn1OR3E2V_Hm0KZwF', '$2y$13$jOtOdIQUU2.ZyEkxN9TJjuhfS7Q3p2K/KqGWNyBab07OaQUsJ5nSi', NULL, 'volodymyr.andryeyev@gmail.com', 10, 1446046164, 1446538181),
  1498 +(2, 'admin', 'Dmitryi', '', NULL, '', '$2y$13$fJRWrKuS5ObSXkOccqOo2.okZKxmovfDdq77guMTTxQFooE2.nsA6', NULL, '', 10, 0, 0),
  1499 +(3, '', '', '', NULL, '', '$2y$13$fJRWrKuS5ObSXkOccqOo2.okZKxmovfDdq77guMTTxQFooE2.nsA6', NULL, 'dmitrii8891@gmail.com', 10, 0, 0);
  1500 +
  1501 +--
  1502 +-- Ограничения внешнего ключа сохраненных таблиц
  1503 +--
  1504 +
  1505 +--
  1506 +-- Ограничения внешнего ключа таблицы `auth_assignment`
  1507 +--
  1508 +ALTER TABLE `auth_assignment`
  1509 + ADD CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;
  1510 +
  1511 +--
  1512 +-- Ограничения внешнего ключа таблицы `auth_item`
  1513 +--
  1514 +ALTER TABLE `auth_item`
  1515 + ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE;
1439 1516
1440 -- 1517 --
1441 --- Обмеження зовнішнього ключа збережених таблиць 1518 +-- Ограничения внешнего ключа таблицы `auth_item_child`
1442 -- 1519 --
  1520 +ALTER TABLE `auth_item_child`
  1521 + ADD CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
  1522 + ADD CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;
1443 1523
1444 -- 1524 --
1445 --- Обмеження зовнішнього ключа таблиці `option` 1525 +-- Ограничения внешнего ключа таблицы `option`
1446 -- 1526 --
1447 ALTER TABLE `option` 1527 ALTER TABLE `option`
1448 ADD CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`); 1528 ADD CONSTRAINT `FK_option_option` FOREIGN KEY (`parent_id`) REFERENCES `option` (`option_id`);
1449 1529
1450 -- 1530 --
1451 --- Обмеження зовнішнього ключа таблиці `translation_lang` 1531 +-- Ограничения внешнего ключа таблицы `translation_lang`
1452 -- 1532 --
1453 ALTER TABLE `translation_lang` 1533 ALTER TABLE `translation_lang`
1454 ADD CONSTRAINT `translation_id` FOREIGN KEY (`translation_id`) REFERENCES `translation` (`translation_id`); 1534 ADD CONSTRAINT `translation_id` FOREIGN KEY (`translation_id`) REFERENCES `translation` (`translation_id`);