CREATE TABLE `_sys_cat` (
  `id` int(12) NOT NULL,
  `cat_id` varchar(255) NOT NULL,
  `cat_name` varchar(255) NOT NULL,
  `access_group` varchar(255) NOT NULL,
  `module` varchar(255) NOT NULL,
  `data` text NOT NULL,
  `parent_cat` varchar(255) NOT NULL,
  `xml` varchar(255) NOT NULL,
  `_sys_deleted` int(1) NOT NULL,
  `_sys_unvisible` int(1) NOT NULL,
  `_sys_order` int(12) NOT NULL,
  `img` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


INSERT INTO `_sys_cat` (`id`, `cat_id`, `cat_name`, `access_group`, `module`, `data`, `parent_cat`, `xml`, `_sys_deleted`, `_sys_unvisible`, `_sys_order`, `img`) VALUES
(1, 'index', 'Название сайта', '', 'site_index.php', '$id=1;', '', 'index.xml', 0, 0, 0, ''),
(2, '404', '404', '', 'static_page.php', '$id=2;', 'index', '', 0, 1, 0, ''),
(3, 'sitemap.xml', 'СайтМэп', '', 'site_sitemap.php', '', 'index', 'sitemap.xml', 0, 1, 0, '');


CREATE TABLE `_sys_cat_admin` (
  `id` int(12) NOT NULL,
  `cat_id` varchar(255) NOT NULL,
  `cat_name` varchar(255) NOT NULL,
  `access_group` varchar(255) NOT NULL,
  `module` varchar(255) NOT NULL,
  `data` text NOT NULL,
  `parent_cat` varchar(255) NOT NULL,
  `xml` varchar(255) NOT NULL,
  `_sys_deleted` int(1) NOT NULL,
  `_sys_unvisible` int(1) NOT NULL,
  `_sys_order` int(12) NOT NULL,
  `icon` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


INSERT INTO `_sys_cat_admin` (`id`, `cat_id`, `cat_name`, `access_group`, `module`, `data`, `parent_cat`, `xml`, `_sys_deleted`, `_sys_unvisible`, `_sys_order`, `icon`) VALUES
(2, 'index', 'Админка', '', 'loginbox.php', '', '', 'admin.xml', 0, 0, 0, ''),
(3, 'core_cats', 'Категории сайта', '1', 'admin_cats.php', '', 'core_programmer', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAATlJREFUeNrsltERgyAMhqXXgToCG9QVugEb4QpOYDewmzACDT3w0hgBFepdz9zloUDJlz8QFNba5kgTRwNcJxIhUiSiqgInwAlwAuQC5PYN2G9fIwpAML8p8/8FKH1WqgBwezpF3PhMGTfIuZva6OPCmGKTrQAQcwPe1i7BE7wHf/nfN/A7uERrHuDdJ3ZKgRXKGBKE/k/6NWF9WxLA+ExnwX39NVIjQJiSADISPKwJEBKNqdUAzObDguTcbQgQQ7gdlx3vSJC8Zw7wSEtCrJ/2KFACmZE5zv6rDJfmN9b5q1elESn0TOvI4cOmpvkCAAMCsARCLygyHUIcMKpI6hqSOR0pB38NdwKYxKlvko0oZltbMZP5rBXjb8IoQI3HiLbNXAU4a0l22c9xFkAOmN9DpT5IaLy3AAMAEEzA2rYo6FcAAAAASUVORK5CYII='),
(9, 'core_objects', 'Объекты', '1', 'admin_schema.php', '', 'core_programmer', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAgAAAAIACH+pydAAAG2klEQVRYw+2Wa4xV1RXHf3ufx71z586LdnjOwAyMlRBGKVCpj0aNYGwbglKjTUU7NITYpKmJhCYktU1rG0hLa6pJa2y0EfulIbQmisRqSYiGAgUdBsEHMDMMwzzuzJ17L/dxnnvvfuASgcwILR/aD/6TnZzknLPWb//XOmcv+Fyf638scb0BOh7dfyGQMQIpzMkdt/1H79vXk/y+p46xeF6KSJlOY2hun5Hcu7O5m/2/WXLNMeT1ACxur2WiopLzZ9VsaZuZ3HaktzRrUVvtf+/AW/fcQ3lkRLTcfXeTnUrNVWGYjvL5bPHUqYGV77xT3mbbbFEKgK5nT7KsI81QLlrT3O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2VSZWFkeXHJZTwAAAAASUVORK5CYII='),
(10, 'core_data', 'Управление', '2', 'line_menu.php', '$templ=admin_content_menu.htm;\r\n$root=core_data;', 'core_shopadmin', '', 0, 1, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9kBCRUYBVERjDAAAAdBSURBVFjDzZdNbFxXFcd/5943M47Hses4iRMnbdUodWkMtEUs2lJVQFErvoW6YwHtEtQNSLBiwxKx6QoJIVEJsQFFQUgUkBBSUqmiiI+qpWnAykfjxHXjJK6/Zjzv3XvOYfGe3TTUI3bwpKv75s5ozv/+z9f/wP/4kdsP5u6/Pzz7zDP77picbLm7dmU93js7rnv2Hgy9/nqeGN8fl99dzocOHJKFpbf16KEZzi8s24njx3R+YSG0pEiVagyeKyn2tq68dXHw01Mv2csv/tr/GwDxU4899o2Pzs39IIiEkXabmUN7efqz97mICCKOgwTBHSREdzchRANEiEoIAUKWINFdUoxFROJVLbrfP3TPY7+8HUBx2+dOr9f7cK/XG8WM1OmwMSZ4HuAi/4FdRN67gwhIaNZ776YB4EQebP7whZ/96FfPfu2baRgAySlFzRnMyCEwGAzIuazNNCAEAdkGEHbeXcItZ+8H4zlPXbl0cQK4cavBcDsAEYmqSs6ZnDOpHGB5gGqJpQGWKzSXzV5hljBNmGVMm2X1csuYKaYZxEa/9e3vvfT888/fNYwBNGdRVSxngghl6Wgq61siyC23khDAFJGAWGxYECREnFD/TCKI4B6k027Nzs7OTgMLuwIA4jaADFSlktMACbUBkbgDQisneaS9Z4oQ26hWaLnOSLsgFq3GHYZIwBzcVVqt1tjQGDCzkHPGVAHIGVQTwbUxbhiChgn2HX2IVmFUm8uYVoQ947Sn76Xf32Tr5jwj7WKHKVPDNUm32x0d6gIzC6qKplQHYhIsJYgFiGEOnak5pmfuY+Xyy2i50QRhQCT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FrPa3u4M5mnMt9XZkmTeqiFtkmdWyTUC01gguIO61LnCnKvuIENvt9uiwNIzecG3uGI47aPOntS6VxscC7kioxYoHQdxxQIIjYmBOLAKmSjXo+9k3/nHh4sWLG8PasewUoib6NWdCDOCKhwCNEWjcYo0j3JAQEGhSr76Sp4SESNXbKJ/69Ce+s3Szf2X3NBTB3dmuBdtertPQ0ax1oDal2swbtVMz5Q478JwGbB3AmlP/6U/efRqohimiuJ2GbkZuWNgeC6jJRwSyGyEWoIaHgOC4WiPZjCABqwU0ZkqvX/ZfuWD9oc1oq6p834EDTE1NYapM7m2xWhyo/R9CXdmamWBbcIoEHAgS6luHsB0lSIiYCxnnd6+c/vHC4rIOA+D9waB84qmnePChh1BVRjotOu1Qu0TrwcdMMXOc+kyaLikCOWUccKtbOQ45Z9bWVry/NXh1+fq7Q0ezPSGEh/dPTT2OiItImBzv2PjYSARXkCiCunmQIG5mxBhRNY8xiKpZiCFiro5HEVE3DyGEqj+oLvzr/NXfllXaHDqcNqy0b/ne36vSyAfMlj5k8PWdIgEJyPy/Pf8G8SnnlfU3yrkAAAAASUVORK5CYII='),
(12, 'core_user', 'Пользователи', '1', 'object_admin.php', '$obj_name=_sys_users;\r\n$templ=object_admin.htm;', 'core_programmer', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAwRSURBVHjaYpwdxMuADH79ZmD49oeV4etfJj4GJo4IXhEJb1EZOT1m5v/sr589v3/vwZMjG84+W/r40/9L/xn+o+jdwcTEIM7IyPD4718GJiCfDYi7gXg3A24AEEAs2AR///qhJamoPdsmPNNKVteYgZebnYHhzxeGHx+fSb59cMPKYcf2xLkbTnZvvfFtAkg5AwUAIIDQHPCf4e/vP+qaZnabXAv6lbnFNIFC3xgYfrwFOuAnAweXAIO0lhZDoKK4qKyscNf/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/gapsTGCog33MAxYFpC+wAZihmYmRgYIS1ssElI9ByUDRAQwFE/wYq+vQFVEH9YwUIIBZoi/QDw+uX9d/evNl24xS32w02VlVgdSfKwsPMy8zOzAEMbeZ/wCY657/bUm/c/vBxCbEAyw2IA0CWszIjLGdmRDS3/kEd8Bsa/CD6B6jNAqwLH9x6BixTvv8CCCDkjgmwCfT3IMOPT6eALAFgwcgHVMsNxBzQXtaPX6wnw+5delEopCYD7q+wQ0MA5gBwFDBAand4FEBD4A8sKoBy34E1+L0TF4G11PvXAAGErWv2HYqfo0v8/3P9yaX1OzwFlMM0JLX4wH0UkAGsSMHPxIiWBsA1JSQn/GeBOOL8ymsML66sBNYL764ABBAzaR2pT59+fnh658kZBse///n52CWEGf6yMTL8BRr8mxEUt1CaEdLq/Ank/wQHLbD+BTJe3PvCcHLWIYYbGyc9+f9nw0qgk7YCBBAjeV1KfisGBttCbnFLGwEFeSF+GVk2LhFBBlZuTmAuYIFGAbAd+OsPMEY/M3x+9vzfx8ePf76/d/nD358HLjMwXN8DVLEFiG8CBBAjBR1bYWA5Zw5MCcC2Gbs4MDJ4gJgdVC5CysB/0GII1DT+DerhAtvfn58A9d0GYmDwM7wGORMgwAAa6D7Uo5815AAAAABJRU5ErkJggg=='),
(11, 'core_static', 'Статические страницы', '2', 'object_admin.php', '$obj_name=_sys_static;\r\n$templ=object_admin.htm;\r\n$del=0;\r\n$add=0;\r\n', 'core_shopadmin', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAABpZJREFUWIXll1tsHFcZx38zs96r1157fY3jOEnrXeeCG6PaTtoQNRIXiQoZIREQTwFFAmHE5aXiAaHAC7yAREVAiBb80IKESqqQNpT0QtJgklrYTRzbkS/JOrEdZ+211zszO7O7c+Mh3s3aXrtOJZ74pKM558zZ8/3m/33nsvD/bsL6jjNnznzJ5XL1AUFJkhBFEdu2sSyrUEzTLDyL61v1A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XF21FaSFoMOthPeVIG8HTlyhGw2W1AAx+HOA53puEy4DHxZG00T0MsbSLokRMC0bAKZ9Jo5HcfBNA0aw0FeuzRGpK298G7TEOTrxWGoqAqysKyQlmpYUFS+czyKJElcuDTAsqcF23EwDItMxs/8m5dJrGh89flncLskdF2nqjKAZkioKc1EFJIlQ7D+OC62nU0hRsfuUe6RqPKaSNLDfezzz3URDa6gLN1nRdFZ0UzG5Gpi2Tom7sygqirpdJrXL14jGKpnZm5RBP5VEiCfA6VOuS88f5hbH45T6ZeYjqsYxqNYdxyMYqTmSSoaK4pOStWR0xk+HJ9FlmUURSGxkqYxHGB65HYGy/rTpgqUOjQAKiocUvEH3BqfIRyu5VevvIUsy2iaRjabJbYMy7K+CpBBTmcwcxlSqRQzs/cJVdcxH1f0pbkH8atXa89tGYJSEAcO7Of73+3h/XPvUekRyHqbWFxcJJFI8Ou+syRyPpKyRrIIYuRukmQySXwpRUVNMzfe/bejKfEfwml7yxBsZu3tu/lk+w7OvXqBHZVlZLI5YtP3uHLHJqlmSco6SUUjqeikVYW4IrK4LKPaIfr/3k/iQezc8PCfbwJlsHEVBEVRlB3HqQiFQgVFysrKCoqYpslXTjyL+oeLnH3pr2R7nsZbGWJ/ZDdzCZW0lsXjGHgDAvWV5TSEGxm+rzL8z2usLI2bw9dfex3w8HDTXPPXLAjUdnd3n2hpafkx4NtMhVwuh67raJobw95JQ8sudkafpK4hhD/gw7YdFFllIZ5ibnyKxOwsjhWz5uZG/zI7O3seGASmALsYwA3UA2EgtEq54b6wbnyVKHqqm5oOdYaq9x7yekM7XZLoBTAtO6Pryw+SS7dH5+eHB207JwN3gUlgGlDXK5A3D+BddbCdi764Oj4A+Fd/JwEWkAE0QFl1mAGyFN2I/gvS/HoYn59lpwAAAABJRU5ErkJggg=='),
(18, 'admin_exit', 'Выход', '', 'loginbox.php', '', 'index', '', 0, 1, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdB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Jggg=='),
(19, 'admin_news', 'Новости', '1,2', 'object_admin.php', '$obj_name=all_news;', 'core_data', '', 0, 1, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABsBJREFUeNq0V3tMlWUY/30XQHCat1atvCcTOCpKKkcoS5trhiGmJJZXdGLTtprl5lqtf1ym/WUqExARdAsVbOWNKKdDM0ubTTSNTXFKpcJBOHqEc77v7Xne7wLiwdv0O/vOd7738jy/5/dc3ucoAPTNRSW7VUV50zBNQOCRLkVRoGmqfAaDLTsDgZatS99fvIemzPvt7VawpUQ8jqv6zFmRV1AkLly4KN8Li3eWsYH3Us6TXQzDkC8+XyNUVQWxwSY9JAPAwP79YQoTe/dXIicnG1mZUzJMUVqaPSdzBi0xOgOgCNOaU0j5nn0V0CN0KI/gBnbhzBnTcOhQFUwy6s+/zmNq2qQMtXjHjvmzZ4QFofKXEIrrRyE4Dh4+EIhxmATgduCW3M5gevbsjguXL2PihNSMwpKdO2iZFo4BSZt80qbA7dsIhUISzMMCMAwTTX6/VG4Sq1F6JHoQiOs+H7zJozKKtpftmjtr2nRaHroDgLAtDhFt0zLSZRzcG4BwSXKW8TvL6flUd3BMaYqGqMhIaIYGvbeOpiY/RiR60letXpu+csXycic7XADMAjPAvzVNCwuAhxxFvFb6UFUt9lwjQhiX4kVpGekQilyrqOxrFU8/9yxiYqLn0rIf6G5pA0AfI2TKJwvcf6DCFWyrpnfFBRUKGZg0aaJcn7v+G3iGD0PqK+Oxcd06LF+xAiM8CUgc5rECmfZwVp06XY1jx35FdHTMFBqNugMAbAaE3KLI71GJIyBsKzk7LtZegp/8K5erplzHRi9Z9oEbPzlLl6HZf0sCc3zEDPCvAQP6SQOOH/+NhyPviAGDFoUMK/otegVag0EJQNg0s185yFgIzwvLF9i0YT3iEzwSQAqxkJ+7AfGeYW5c8bg3JQVBeiYO9+DI0WNu9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AAFRB8LSaSNrd3wSrKm34HjNabQ24RANRehOYDX6mqm4hB68Daf4v00SWUKrfgVRXcMAEDKmQVXbCjhKyYuXgZ8P4vDh1eBGIsgAhL+5+ciJE8dTnDbrwQCoiFC6YoA+Cl9t/Z2O7HCNKndPwNws63dtLSn/SSr/kKY5HQIMuhvd/ejuc79/MY9wRbzxJfbNmU2+/5uU7yHla6TyS+x1JwsC9sBV4JH+j9zr6qkx7ST9aBXqSflH7ZU7dYAd32zfj/1iAFWH0VTxKbgZvdxeOZ6AxXcxwP2obegVuq9x4HWslk/y4u43xik1HZXz9b8AAwCPqh4VfKC+gAAAAABJRU5ErkJggg=='),
(21, 'core_object_admin', 'Редактирование', '1', 'admin_objects_all.php', '', 'core_objects', '', 0, 1, 0, ''),
(22, '404', '404', '', 'static_page.php', '$id=1;', 'index', '', 0, 1, 0, ''),
(24, 'core_programmer', 'Программист', '1', 'line_menu.php', '$templ=admin_content_menu.htm;\r\n$root=core_programmer;', 'index', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAACDVJREFUWIWtl2mMXlUZx3/Pufe+28x0ti7TBUoXWgsRZTPa1pCqkVg+FIxg5INQxGBAMSgmiAEx4YOJEE2IH5BEKCQgTUBDYoJEWbqhrJVaaWmpTKFD22lnpu96l3PO44d7ZzoDxRT1JOd9z3vee+7zO8/yP/cKH6PteITlitkYmGi993ap975LJGiLMWMi8pZNk9/ZMk+tu5pjp3tPOZ2LnnuQvnIQvRhWBhYvWnV12DNvTVSqLsRE/ahPcdk4SXOYiUPPdd7f/2TVpSc2rL2Wp/4vAK/cT5TUoj8uufD2dXOXXRNqdhjvRkHbqG+AAiZCpAsJBlGZw64/Xd5OGgeuWHMtz/xPANsfZq6R6InFF/zg4nkrby3b1nOgGYIUKz2oQzXLu09I4hJR7Vze2nZjpzWx9xeVjr37ohvIPhbAjs1Uic2PJCj9cMmFt9fmLL0ul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7nssa9XHtu7eyy0338ubTEnmRwNMttJ5y+j79lV8dm4/F9dqnFstsywQekxUrpZKtaqRqCwixmMQgtj6NLFZ3LFZYzyO9e1Wm9cOHubpW+/l74A9lZHTeTktAVWgDOTJkHfDzPPIk9ebBTLyLO8Ucx/ZTuvteNq1wTSAoIDw03pWAPiPuMeH2r8BFSWyRUdlGNMAAAAASUVORK5CYII='),
(25, 'core_shopadmin', 'Администратор', '2', 'line_menu.php', '$templ=admin_content_menu.htm;\r\n$root=core_shopadmin;', 'index', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAAEEfUpiAAAACXBIWXMAAFxGAABcRgEUlENBAAAACXRFWHRDb21tZW50AACJKo0GAAACwklEQVR4nMWWz0uUQRjHXTVaNRa8VISnDhKx5aHokKAEJfgHSBB2kRWCfmBmQWgq2MWNTnnxKILgSTDKAjssUl0yiQgh2ENEhYKBSJaS+/Z9dp/Xnp2dnZn39Y0OHxnnfeaZ7zzzPM9shed5FZL8n1Qq5WUwBIP+xARP/DUlK4IGwyU+2HwFJPyJY0U+/PV5HzwRA0lV065PRVsRRdYwasdkBiyDNZ3BPLgpdCRoMACu6PbPa8DH/WRd1oDdvcN+MSHuCWhTT3HWeArrMdlgDiyCz2BLNeiWIfaFq3Hw1DEN+tRVQSjZAczsxcEFX4UuItZkECpe4ONEWAeHgqjQngsONsEbEDcQK4mBxlFcM1cHmkCD0QHlPcfjhDI/J6/bj/wwGKLUD5wHSvpNhXGwD1SCb3vKRCy+HFUqn8L9riv3nQNLYBx0geMmB09h8MgxlftUB8+58I84OrinOjgZsJjuliumc6GOwA5y4CU+zjg46NE5SHMckoDK+jWgvpvNFB6dDbDDDq5qC4iPYarEuPYalTjYuGYtZ43janAGHKSytpVzSZfG/808/9t4BOFgU5mr5Pm0rMbTfHW6c3YELa4w7YAa0i+x6Y4Yr/i9858JKBO+SSHixv8QcFhcy3dQRfNI/DEwD6bBQypFcAm0gKMgeEs3JNEDEYXbLOCV64ttgSp6gardJKCG31cSsEFPBxZcjEiAz5CtcG+JKAxwFLIRCui3CaCf0F9ZwE/qYVjUHaGAO9YkwaadIgojmcKv4dWIBPQ6ZSo2XmIB2+AALYxIwHVXAedFFNIua8qBTatBLUhQ2TovxMbPHJ8pG+9BvbUPaATUglnwFiyDLPgEvnDLXgPr4AfYMrwvxP3AAoSQJPjIGzymfmGpomnelOz7nTuhwekH5TSjBttWxTYnwx9KgEjKHtDoYFuVKvyQaNJ9/wN+gmjz6zdWwwAAAABJRU5ErkJggg=='),
(45, 'ajax-city', 'AJAX город', '', 'ajax_city.php', '', 'index', '', 0, 1, 0, ''),
(87, 'core_cats_admin', 'Категории адмики', '1', 'admin_core_cats.php', '', 'core_programmer', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAATlJREFUeNrsltERgyAMhqXXgToCG9QVugEb4QpOYDewmzACDT3w0hgBFepdz9zloUDJlz8QFNba5kgTRwNcJxIhUiSiqgInwAlwAuQC5PYN2G9fIwpAML8p8/8FKH1WqgBwezpF3PhMGTfIuZva6OPCmGKTrQAQcwPe1i7BE7wHf/nfN/A7uERrHuDdJ3ZKgRXKGBKE/k/6NWF9WxLA+ExnwX39NVIjQJiSADISPKwJEBKNqdUAzObDguTcbQgQQ7gdlx3vSJC8Zw7wSEtCrJ/2KFACmZE5zv6rDJfmN9b5q1elESn0TOvI4cOmpvkCAAMCsARCLygyHUIcMKpI6hqSOR0pB38NdwKYxKlvko0oZltbMZP5rBXjb8IoQI3HiLbNXAU4a0l22c9xFkAOmN9DpT5IaLy3AAMAEEzA2rYo6FcAAAAASUVORK5CYII='),
(100, 'core_seo_static', 'Статические страницы', '3', '', '$obj_name=_sys_static;\r\n$add=0;\r\n$del=0;', 'core_seo', '', 0, 0, 0, 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB/ElEQVR4Xs2WzWryQBSGT2LUuoi0LgKfC0FxoQi6kA+7cdet0AvoPegV9EJ6E+EDERQRPqR4Ad0o6K4UFyIBKdr4k84MJCdNf0YyjvSFQ34Wvo/nnTMZBQKaTCZvh8NhA+Gkrlar12azeT8ajR7gCH0AGI/HTj6fh7Da7/fsOp/PrWq1ertYLP5ziUFYaL7b7cCyLFgul5fD4dDUdf36DAAoEh3Ytg2qqkImk7kaDAb/ksnk3/MAIASreDwOhULB6PV6bYQ4A8B2u2VRUCUSCSiVSka320UISQC07bRoDAyCyIMol8tGp9Npk/tPEBqcSIqiMIBUKgWz2Qz6/b73nhlpmmGaZrvRaNwQwCcJETATln2tVoNKpQLFYhFyuRxks1m6KKFerxvk3Z2EDmAXYrFY8NmNhMFFo9ELCQCoSCRCTf1rgl79U+JwARzHEV2QFIJG4o2kX1yAE0+G+89dOIExFNug8MqJgNLK2B0FdkIJ5rwOyDLHZ8kdoN8D+onmTJicDqAxGkqOAM048LwpQOpQWYeR9l1+MiR/HxDvAC4iWeKPoXwJLEKxs4LYFIgLf/f3R4CnWmyfoNzDyXFbcTqd5sUSzJPz0cHjmkL0I0Cr1XpZr9cbaugndp+/NmaAtPz3/nH2jKfT6SP4FOytTuoPSBHzskk9k/Iyfge2ZiJQCsHAKgAAAABJRU5ErkJggg==');


CREATE TABLE `_sys_datatypes` (
  `obj_name` varchar(255) NOT NULL,
  `attr_name` varchar(255) NOT NULL,
  `attr_type` varchar(255) NOT NULL,
  `attr_templ` varchar(255) NOT NULL,
  `attr_desc` varchar(255) NOT NULL,
  `attr_hide` int(1) NOT NULL,
  `attr_mand` int(1) NOT NULL,
  `attr_order` int(12) NOT NULL,
  `_sys_deleted` int(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


INSERT INTO `_sys_datatypes` (`obj_name`, `attr_name`, `attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`) VALUES
('_sys_users', 'name', 'input', '', 'Имя', 0, 1, 100, 0),
('_sys_cat', 'cat_id', 'url', '', 'URL', 0, 1, 0, 0),
('_sys_cat', 'cat_name', 'input', '', 'Title', 0, 1, 0, 0),
('_sys_cat', 'access_group', 'MLINK|_sys_groups', '[title]', 'Доступ', 0, 0, 0, 0),
('_sys_cat', 'module', 'modulelist', 'www/modules;.php', 'Модуль', 0, 0, 0, 0),
('_sys_cat', 'data', 'textarea', '', 'Данные модуля', 0, 0, 0, 0),
('_sys_cat', 'parent_cat', 'input', '[cat_name]', 'Родительский элемент', 0, 1, 0, 0),
('_sys_cat', 'xml', 'modulelist', 'www/xml;.xml', 'XML', 0, 0, 50, 0),
('_sys_users', 'login', 'input', '', 'Логин', 0, 1, 50, 0),
('_sys_users', 'passwd', 'passwd', '', 'Пароль', 0, 1, 60, 0),
('_sys_groups', 'title', 'input', '', 'Название группы', 0, 1, 100, 0),
('_sys_users', 'group', 'MLINK|_sys_groups', '[title]', 'Доступ', 0, 1, 120, 0),
('_sys_static', 'description', 'textarea_html', '', 'Текстовый блок', 0, 0, 100, 0),
('_sys_users', '_sys_deleted', 'checkbox', '', 'Удален', 0, 0, 999, 0),
('_sys_files', 'filename', 'input', '', 'Имя файла', 0, 1, 100, 0),
('_sys_files', 'ext', 'input', '', 'Content-Type', 0, 1, 100, 0),
('_sys_files', 'realname', 'input', '', 'Реальное имя', 0, 1, 100, 0),
('_sys_cat', '_sys_deleted', 'checkbox', '', 'Удален', 0, 0, 999, 0),
('_sys_cat', '_sys_unvisible', 'checkbox', '', 'Невидимый', 0, 0, 990, 0),
('_sys_cat', '_sys_order', 'int12', '', 'Порядок', 0, 0, 900, 0),
('_sys_cat', 'img', 'image', '', 'Картинка', 0, 0, 100, 0),
('_sys_users', 'regtime', 'datetime', '', 'Дата регистрации', 0, 1, 200, 0),
('_sys_obj_log', 'datetime', 'datetime', '', 'Дата и время', 1, 0, 100, 0),
('_sys_obj_log', 'user_id', 'LINK|_sys_users', '[name]', 'Пользователь', 1, 0, 100, 0),
('_sys_obj_log', 'obj_name', 'input', '', 'Объект', 1, 0, 100, 0),
('_sys_obj_log', 'obj_id', 'int12', '', 'ID в объекте', 1, 0, 100, 0),
('_sys_obj_log', 'old_data', 'textarea', '', 'Старые данные', 1, 0, 100, 0),
('_sys_obj_log', 'user_ip', 'input', '', 'IP', 1, 0, 100, 0),
('_sys_obj_log', 'new_data', 'textarea', '', 'Новые данные', 1, 0, 100, 0),
('_sys_users', 'session_data', 'textarea', '', 'Сессия', 1, 0, 900, 0),
('_sys_sitemap', 'url', 'input', '', 'Урл для сайтмэпа', 0, 0, 100, 0),
('_sys_static', 'title', 'input', '', 'Название', 0, 1, 50, 0),
('_sys_users', 'email', 'input', '', 'Почта', 0, 0, 100, 0),
('_sys_users', 'phone', 'mobile_phone', '', 'Телефон', 0, 0, 100, 0),
('_sys_users', 'user_photo', 'image', '310x310', 'Фото', 0, 0, 100, 0),
('_sys_cat_admin', 'access_group', 'MLINK|_sys_groups', '[title]', 'Доступ', 0, 1, 0, 0),
('_sys_cat_admin', 'cat_id', 'url', '', 'URL', 0, 1, 0, 0),
('_sys_cat_admin', 'cat_name', 'input', '', 'Title', 0, 1, 0, 0),
('_sys_cat_admin', 'data', 'textarea', '', 'Данные модуля', 0, 0, 0, 0),
('_sys_cat_admin', 'icon', 'icon', '', 'Icon', 0, 0, 100, 0),
('_sys_cat_admin', 'module', 'modulelist', 'admin/modules;.php', 'Модуль', 0, 0, 0, 0),
('_sys_cat_admin', 'parent_cat', 'input', '[cat_name]', 'Родительский элемент', 0, 1, 0, 0),
('_sys_cat_admin', 'xml', 'modulelist', 'admin/xml;.xml', 'XML', 0, 0, 50, 0),
('_sys_cat_admin', '_sys_deleted', 'checkbox', '', 'Удален', 0, 0, 999, 0),
('_sys_cat_admin', '_sys_order', 'int12', '', 'Порядок', 0, 0, 900, 0),
('_sys_cat_admin', '_sys_unvisible', 'checkbox', '', 'Невидимый', 0, 0, 990, 0),
('_sys_static', 'page_description', 'input', '', 'seo description', 0, 0, 504, 0),
('_sys_static', 'page_h1', 'input', '', 'seo H1', 0, 0, 502, 0),
('_sys_static', 'page_keywords', 'input', '', 'seo keywords', 0, 0, 503, 0),
('_sys_static', 'page_title', 'input', '', 'seo title', 0, 0, 501, 0),
('_sys_static', '_sys_deleted', 'checkbox', '', 'Удалённый', 1, 0, 1000, 0),
('_sys_static', '_sys_order', 'int12', '', 'Порядок сортировки', 0, 0, 800, 0),
('_sys_static', '_sys_unvisible', 'checkbox', '', 'Невидимый', 0, 0, 999, 0),
('_sys_static', '_sys_lastchange', 'datetime_modify', '', 'Последнее изменение', 1, 0, 999, 0),
('_sys_files', 'filesize', 'int12', '', 'Размер файла', 0, 1, 100, 0),
('_sys_user_sessions', 'session_id', 'input', '', 'Сессия', 0, 0, 100, 0),
('_sys_user_sessions', 'user_id', 'int12', '', 'Пользователь', 0, 0, 100, 0),
('_sys_users', 'user_photo_preview', 'image', 'x150', 'Фото Пре', 0, 0, 100, 0);


CREATE TABLE `_sys_files` (
  `id` int(12) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `ext` varchar(255) NOT NULL,
  `realname` varchar(255) NOT NULL,
  `filesize` int(12) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE `_sys_groups` (
  `id` int(12) NOT NULL,
  `title` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


INSERT INTO `_sys_groups` (`id`, `title`) VALUES
(1, 'Программист'),
(2, 'Администратор'),
(3, 'SEO');


CREATE TABLE `_sys_obj_log` (
  `id` int(12) NOT NULL,
  `datetime` int(12) NOT NULL,
  `user_id` int(12) NOT NULL,
  `obj_name` varchar(255) NOT NULL,
  `obj_id` int(12) NOT NULL,
  `old_data` text NOT NULL,
  `user_ip` varchar(255) NOT NULL,
  `new_data` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE `_sys_static` (
  `id` int(12) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `page_description` varchar(255) NOT NULL,
  `page_h1` varchar(255) NOT NULL,
  `page_keywords` varchar(255) NOT NULL,
  `page_title` varchar(255) NOT NULL,
  `_sys_deleted` int(1) NOT NULL,
  `_sys_order` int(12) NOT NULL,
  `_sys_unvisible` int(1) NOT NULL,
  `_sys_lastchange` int(12) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


INSERT INTO `_sys_static` (`id`, `title`, `description`, `page_description`, `page_h1`, `page_keywords`, `page_title`, `_sys_deleted`, `_sys_order`, `_sys_unvisible`, `_sys_lastchange`) VALUES
(1, 'Главная страница', '&lt;p&gt;Текст главной страниц&lt;/p&gt;', 'Дискрипшн', 'Н1 заголовок', 'кейворды', 'Заголовок', 0, 0, 0, 1455117710),
(2, '404', '&lt;p&gt;Ошибочка вышла&lt;/p&gt;', 'Страница не найдена 404', 'Страница не найдена 404', 'Страница не найдена 404', 'Страница не найдена 404', 0, 0, 0, 1453821473);

CREATE TABLE `_sys_users` (
  `id` int(12) NOT NULL,
  `name` varchar(255) NOT NULL,
  `login` varchar(255) NOT NULL,
  `passwd` varchar(255) NOT NULL,
  `group` varchar(255) NOT NULL,
  `_sys_deleted` varchar(255) NOT NULL,
  `regtime` int(12) NOT NULL,
  `session_data` text NOT NULL,
  `email` varchar(255) NOT NULL,
  `phone` bigint(10) NOT NULL,
  `user_photo` int(12) NOT NULL,
  `user_photo_preview` int(12) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


CREATE TABLE `_sys_user_sessions` (
  `id` int(12) NOT NULL,
  `session_id` varchar(255) NOT NULL,
  `user_id` int(12) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

ALTER TABLE `_sys_cat`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cat_id` (`cat_id`);

ALTER TABLE `_sys_cat_admin`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cat_id` (`cat_id`);


ALTER TABLE `_sys_datatypes`
  ADD PRIMARY KEY (`obj_name`(50),`attr_name`(50));

ALTER TABLE `_sys_files`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `_sys_groups`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `_sys_obj_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_id` (`user_id`);

ALTER TABLE `_sys_static`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `_sys_users`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `_sys_user_sessions`
  ADD PRIMARY KEY (`id`);


ALTER TABLE `_sys_cat`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;

ALTER TABLE `_sys_cat_admin`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;


ALTER TABLE `_sys_files`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;


ALTER TABLE `_sys_groups`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;


ALTER TABLE `_sys_obj_log`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;


ALTER TABLE `_sys_static`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;


ALTER TABLE `_sys_users`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;

ALTER TABLE `_sys_user_sessions`
  MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;
COMMIT;


CREATE TABLE `_sys_db_migrations` ( `id` int(12) NOT NULL, `filename` varchar(255) NOT NULL, `apply_datetime` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `_sys_db_migrations` ADD PRIMARY KEY (`id`);
ALTER TABLE `_sys_db_migrations` MODIFY `id` int(12) NOT NULL AUTO_INCREMENT;

ALTER TABLE `_sys_files` ADD `private` int(1) NOT NULL;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("checkbox" , "" , "Приватный файл" , "0" , "0" , "100" , "0" , "_sys_files" , "private");


UPDATE `_sys_cat` SET  `_sys_cat`.`cat_name` = "Система" , `_sys_cat`.`module` = "loginbox.php"  WHERE `_sys_cat`.`cat_id` = "index";
ALTER TABLE `_sys_users` ADD `favorite_menu` text NOT NULL;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("json" , "" , "Избранное меню" , "0" , "0" , "100" , "0" , "_sys_users" , "favorite_menu");

-- [2024-10-14 16:29:46] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `user_office` int(12) NOT NULL;
ALTER TABLE `_sys_users` ADD INDEX ( `user_office` );
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","user_office","LINK|_sys_users_offices","","","100");

-- [2024-10-14 16:30:44] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `default_work_tarif` int(12) NOT NULL;
ALTER TABLE `_sys_users` ADD INDEX ( `default_work_tarif` );
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","default_work_tarif","LINK|crm_workers_tarif","","","100");

-- [2024-10-14 16:31:08] Изменение атрибута user_office;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("LINK|_sys_users_offices" , "" , "Отдел" , "0" , "0" , "100" , "0" , "_sys_users" , "user_office");
-- [2024-10-14 16:31:08] Изменение атрибута default_work_tarif;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("LINK|crm_workers_tarif" , "" , "Тариф ЗП по умолчанию" , "0" , "0" , "100" , "0" , "_sys_users" , "default_work_tarif");

REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("icon" , "" , "Картинка" , "0" , "0" , "100" , "0" , "_sys_cat" , "img");

INSERT INTO `_sys_cat` (`cat_id`, `cat_name`, `parent_cat`) VALUES ( "-no-auth-links-", "Ссылки без авторизации", "index");

UPDATE `_sys_cat` SET  `_sys_cat`.`_sys_unvisible` = "1"  WHERE `_sys_cat`.`cat_id` = "-no-auth-links-";
INSERT INTO `_sys_cat` (`cat_id`, `cat_name`, `module`, `parent_cat`) VALUES ( "core-menuconfig", "Конфигуратор меню", "core_menuconfig.php", "-no-auth-links-");
UPDATE `_sys_cat` SET  `_sys_cat`.`_sys_unvisible` = "1"  WHERE `_sys_cat`.`cat_id` = "core-menuconfig";

-- [2024-10-14 20:03:20] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `full_name` varchar(255) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","full_name","input","","","100");
-- [2024-10-14 20:05:06] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `long_session` int(1) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","long_session","checkbox","","","100");
-- [2024-10-14 20:05:34] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `money_agent_admin` varchar(255) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","money_agent_admin","input","","","100");
-- [2024-10-14 20:05:55] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `user_description` text NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","user_description","textarea","","","100");

-- [2024-10-14 20:06:17] Изменение атрибута full_name;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("input" , "" , "Полное имя" , "0" , "0" , "100" , "0" , "_sys_users" , "full_name");
-- [2024-10-14 20:06:17] Изменение атрибута long_session;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("checkbox" , "" , "Длинная сессия" , "0" , "0" , "100" , "0" , "_sys_users" , "long_session");
-- [2024-10-14 20:06:17] Изменение атрибута money_agent_admin;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("input" , "" , "ID агента выдачи денег" , "0" , "0" , "100" , "0" , "_sys_users" , "money_agent_admin");
-- [2024-10-14 20:06:17] Изменение атрибута user_description;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("textarea" , "" , "Комментарий" , "0" , "0" , "100" , "0" , "_sys_users" , "user_description");

-- [2024-10-14 20:08:28] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `login_ip` varchar(255) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","login_ip","input","","","100");
-- [2024-10-14 20:08:40] Создание атрибута;
CREATE TABLE IF NOT EXISTS `_sys_users` ( `id` INT(12) NOT NULL AUTO_INCREMENT PRIMARY KEY )  ENGINE = InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `_sys_users` ADD `login_time` int(12) NOT NULL;
REPLACE INTO `_sys_datatypes` (`obj_name`, `attr_name`,`attr_type`,`attr_desc`,`attr_templ`,`attr_order`) VALUES ("_sys_users","login_time","datetime","","","100");
-- [2024-10-14 20:08:52] Изменение атрибута login_ip;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("input" , "" , "Последний вход" , "0" , "0" , "100" , "0" , "_sys_users" , "login_ip");
-- [2024-10-14 20:08:52] Изменение атрибута login_time;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("datetime" , "" , "Время последнего входа" , "0" , "0" , "100" , "0" , "_sys_users" , "login_time");

-- [2024-10-14 20:10:28] Изменение атрибута user_office;
REPLACE INTO `_sys_datatypes` (`attr_type`, `attr_templ`, `attr_desc`, `attr_hide`, `attr_mand`, `attr_order`, `_sys_deleted`, `obj_name`, `attr_name`) VALUES ("LINK|_sys_users_offices" , "[title]" , "Отдел" , "0" , "0" , "100" , "0" , "_sys_users" , "user_office");
