CREATE TABLE IF NOT EXISTS `cat_advert` (
`id_advert` int(11) NOT NULL,
`email` tinytext,
`site` tinytext,
`name_user` tinytext,
`phone` tinytext,
`key_words` tinytext,
`text` text,
`image` text,
`password` tinytext,
`hide` enum('show','hide') DEFAULT NULL,
`moder` enum('new','view') DEFAULT NULL,
`start_putdate` int(10) unsigned DEFAULT NULL,
`end_putdate` int(10) unsigned DEFAULT NULL,
`redak_putdate` int(10) unsigned DEFAULT NULL,
`n_category` int(11) NOT NULL,
`kolvo_view` int(11) DEFAULT NULL,
`name_adv` tinytext,
`status_adv` enum('usual','vip') DEFAULT NULL,
`time_vip_end` int(10) unsigned DEFAULT '0',
`time_vip_start` int(10) unsigned DEFAULT '0',
`type` enum('sell','buy','give','take','exchange','render','strip') DEFAULT NULL,
`country_adv` int(11) DEFAULT NULL,
`region_adv` int(11) DEFAULT NULL,
`city_adv` int(11) DEFAULT NULL,
`name_country_adv` tinytext,
`name_region_adv` tinytext,
`name_city_adv` tinytext,
`abuse` enum('on','off') DEFAULT NULL,
`abuse_text` text NOT NULL,
`cost` double NOT NULL,
`currency` enum('rub','usd','uah','eur') NOT NULL DEFAULT 'rub',
`type_user` enum('guest','user') DEFAULT NULL,
`num_user` int(11) NOT NULL,
`sort_time` int(10) unsigned DEFAULT '0',
`is_up` enum('yes','no') DEFAULT 'no',
`is_vip` enum('yes','no') DEFAULT 'no',
`pick_out_adv` enum('usual','picked') DEFAULT 'usual',
`time_end_picked` int(10) unsigned DEFAULT '0',
`time_start_picked` int(10) unsigned DEFAULT '0',
`is_picked` enum('yes','no') DEFAULT 'no',
`num_type_display` tinyint(4) DEFAULT '0',
`is_makegood` enum('yes','no') DEFAULT 'no',
`is_auction` enum('yes','no') DEFAULT 'yes',
`is_get_email` enum('yes','no') DEFAULT 'yes',
`not_view_phone` enum('yes','no') NOT NULL DEFAULT 'no',
`add_maps` enum('on','off') NOT NULL DEFAULT 'off',
`longitude` double NOT NULL,
`latitude` double NOT NULL,
`n_object` int(11) NOT NULL,
`ip_adr` tinytext NOT NULL,
`info_user_agent` tinytext NOT NULL,
`on_delete` enum('on','off') NOT NULL DEFAULT 'off',
`notice_end_putdate` enum('yes','no') NOT NULL DEFAULT 'no',
`period_action_time` int(11) NOT NULL DEFAULT '0',
`premium_adv` enum('usual','premium') NOT NULL DEFAULT 'usual',
`time_premium_end` int(10) unsigned NOT NULL DEFAULT '0',
`time_premium_start` int(10) unsigned NOT NULL DEFAULT '0',
`day_premium` int(11) NOT NULL DEFAULT '0',
`is_premium` enum('yes','no') NOT NULL DEFAULT 'no',
`notice_end_premium` enum('yes','no') NOT NULL DEFAULT 'no',
`notice_end_vip` enum('yes','no') NOT NULL DEFAULT 'no',
`notice_end_picked` enum('yes','no') NOT NULL DEFAULT 'no'
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_advert`
--
INSERT INTO `cat_advert` (`id_advert`, `email`, `site`, `name_user`, `phone`, `key_words`, `text`, `image`, `password`, `hide`, `moder`, `start_putdate`, `end_putdate`, `redak_putdate`, `n_category`, `kolvo_view`, `name_adv`, `status_adv`, `time_vip_end`, `time_vip_start`, `type`, `country_adv`, `region_adv`, `city_adv`, `name_country_adv`, `name_region_adv`, `name_city_adv`, `abuse`, `abuse_text`, `cost`, `currency`, `type_user`, `num_user`, `sort_time`, `is_up`, `is_vip`, `pick_out_adv`, `time_end_picked`, `time_start_picked`, `is_picked`, `num_type_display`, `is_makegood`, `is_auction`, `is_get_email`, `not_view_phone`, `add_maps`, `longitude`, `latitude`, `n_object`, `ip_adr`, `info_user_agent`, `on_delete`, `notice_end_putdate`, `period_action_time`, `premium_adv`, `time_premium_end`, `time_premium_start`, `day_premium`, `is_premium`, `notice_end_premium`, `notice_end_vip`, `notice_end_picked`) VALUES
(1, 'alexalex@gmail.com', 'http://www.bar.ru', 'Анатолий', '+78927272621', 'квартира', 'Продаю кошку!', '1a462d693f972c3f9ae1fb8485238c94.jpg', 'tb7318fV', 'show', 'new', 1418563340, 1421241740, 0, 1, 1, 'Комната 100 м² в 4-к, 4/4 эт.', 'usual', 0, 0, 'sell', 3159, 4052, 4079, 'Россия', 'Краснодарский край', 'Краснодар', 'off', '', 5000000, 'rub', 'guest', 0, 1418563340, 'no', 'no', 'usual', 0, 0, 'no', 0, 'no', 'yes', 'yes', 'no', 'off', 0, 0, 0, '37.147.85.207', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0', 'off', 'no', 2678400, 'usual', 0, 0, 0, 'no', 'no', 'no', 'no');
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_data`
--
CREATE TABLE IF NOT EXISTS `cat_board_data` (
`id_data` int(11) NOT NULL,
`n_advert` int(10) unsigned NOT NULL,
`n_category` int(10) unsigned NOT NULL,
`n_properties` int(10) unsigned NOT NULL,
`value_properties` text,
`type_propData` tinytext NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_data`
--
INSERT INTO `cat_board_data` (`id_data`, `n_advert`, `n_category`, `n_properties`, `value_properties`, `type_propData`) VALUES
(1, 1, 1, 2, '6', 'list'),
(2, 1, 1, 3, 'РМЗ', 'text'),
(3, 1, 1, 4, 'Ставропольская, 10', 'text'),
(4, 1, 1, 5, '', 'text'),
(5, 1, 1, 6, '8', 'list_checkbox'),
(6, 1, 1, 7, '11', 'list');
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_link_pc`
--
CREATE TABLE IF NOT EXISTS `cat_board_link_pc` (
`id_link_pc` int(11) NOT NULL,
`num_category` int(11) NOT NULL,
`num_properties` int(11) NOT NULL,
`num_pos` int(11) NOT NULL,
`text_link` tinytext NOT NULL,
`on_light` enum('on','off') NOT NULL DEFAULT 'on'
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_link_pc`
--
INSERT INTO `cat_board_link_pc` (`id_link_pc`, `num_category`, `num_properties`, `num_pos`, `text_link`, `on_light`) VALUES
(1, 1, 6, 1, '', 'on'),
(2, 1, 2, 2, '', 'on'),
(3, 1, 5, 3, '', 'off'),
(4, 1, 3, 4, '', 'on'),
(5, 1, 4, 5, '', 'off'),
(6, 1, 7, 6, '', 'on');
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_listv`
--
CREATE TABLE IF NOT EXISTS `cat_board_listv` (
`id_value` int(11) NOT NULL,
`name_value` tinytext NOT NULL,
`n_properties` int(11) DEFAULT NULL,
`num_value` int(11) NOT NULL DEFAULT '0',
`link_properties` int(11) NOT NULL DEFAULT '0',
`global_link_properties` int(11) NOT NULL DEFAULT '0',
`pos_value` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_listv`
--
INSERT INTO `cat_board_listv` (`id_value`, `name_value`, `n_properties`, `num_value`, `link_properties`, `global_link_properties`, `pos_value`) VALUES
(1, '121', 2, 0, 0, 0, 10),
(2, '330', 2, 0, 0, 0, 20),
(3, '97', 2, 0, 0, 0, 30),
(4, 'ул/пл', 2, 0, 0, 0, 40),
(5, 'инд/пл', 2, 0, 0, 0, 50),
(6, 'хр', 2, 0, 0, 0, 60),
(7, 'Да', 6, 0, 0, 0, 10),
(8, 'Нет', 6, 0, 0, 0, 20),
(9, 'без ремонта', 7, 0, 0, 0, 10),
(10, 'типовой', 7, 0, 0, 0, 20),
(11, 'евроремонт', 7, 0, 0, 0, 30),
(12, 'чистовая отделка', 7, 0, 0, 0, 40),
(13, 'черновая отделка', 7, 0, 0, 0, 50),
(14, 'с отделкой от застройщика', 7, 0, 0, 0, 60);
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_mark_user`
--
CREATE TABLE IF NOT EXISTS `cat_board_mark_user` (
`id_item` int(11) NOT NULL,
`list_num` text NOT NULL,
`num_user` int(11) NOT NULL,
`last_time` int(10) unsigned DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_properties`
--
CREATE TABLE IF NOT EXISTS `cat_board_properties` (
`id_properties` int(11) NOT NULL,
`hide` enum('hide','show') DEFAULT NULL,
`name_properties` tinytext NOT NULL,
`title_properties` tinytext NOT NULL,
`type_properties` enum('text','list','numeric','nested_list','list_checkbox') NOT NULL,
`num_properties` int(11) DEFAULT NULL,
`global_num_properties` int(11) DEFAULT NULL,
`text_help` tinytext,
`max_numeric` int(11) DEFAULT NULL,
`min_numeric` int(11) DEFAULT NULL,
`control_meaning` enum('y','n') NOT NULL DEFAULT 'y',
`surely_fill` enum('yes','no') NOT NULL DEFAULT 'yes',
`on_preview` enum('yes','no') NOT NULL DEFAULT 'no'
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_properties`
--
INSERT INTO `cat_board_properties` (`id_properties`, `hide`, `name_properties`, `title_properties`, `type_properties`, `num_properties`, `global_num_properties`, `text_help`, `max_numeric`, `min_numeric`, `control_meaning`, `surely_fill`, `on_preview`) VALUES
(2, 'show', 'Тип квартиры', 'Тип квартиры', 'list', NULL, NULL, '', 0, 0, 'n', 'no', 'no'),
(3, 'show', 'Район', 'Район', 'text', NULL, NULL, '', 0, 0, 'n', 'no', 'no'),
(4, 'show', 'Улица', 'Улица', 'text', NULL, NULL, '', 0, 0, 'n', 'yes', 'no'),
(5, 'show', 'Квартал', 'Квартал', 'text', NULL, NULL, '', 0, 0, 'n', 'no', 'no'),
(6, 'show', 'Спецразмещение', 'Спецразмещение', 'list_checkbox', NULL, NULL, '', 0, 0, 'n', 'no', 'no'),
(7, 'show', 'Ремонт', 'Ремонт', 'list', NULL, NULL, '', 0, 0, 'n', 'yes', 'no');
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_quantity_advert`
--
CREATE TABLE IF NOT EXISTS `cat_board_quantity_advert` (
`id_item` int(11) NOT NULL,
`country` int(11) NOT NULL DEFAULT '0',
`region` int(11) NOT NULL DEFAULT '0',
`city` int(11) NOT NULL DEFAULT '0',
`n_top_category` int(11) NOT NULL,
`n_category` int(11) NOT NULL,
`quantity` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_quantity_advert`
--
INSERT INTO `cat_board_quantity_advert` (`id_item`, `country`, `region`, `city`, `n_top_category`, `n_category`, `quantity`) VALUES
(2, 0, 0, 0, 0, 1, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `cat_board_series_category`
--
CREATE TABLE IF NOT EXISTS `cat_board_series_category` (
`id_item` int(11) NOT NULL,
`n_category` int(11) NOT NULL DEFAULT '0',
`num_nested` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cat_board_series_category`
--
INSERT INTO `cat_board_series_category` (`id_item`, `n_category`, `num_nested`) VALUES
(1, 1, 1);