--
-- Структура таблицы `f_ads`
--
CREATE TABLE IF NOT EXISTS `f_ads` (
`ADS_ID` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`NAME` tinytext CHARACTER SET utf8 NOT NULL,
`CONTENT` text CHARACTER SET utf8 NOT NULL,
`BOARDS` tinytext CHARACTER SET utf8,
`POSTS` tinytext CHARACTER SET utf8,
`CATEGORY` tinytext CHARACTER SET utf8,
`HITS` mediumint(8) NOT NULL DEFAULT '0',
`TYPE` smallint(4) NOT NULL DEFAULT '0',
`show_index` smallint(4) NOT NULL DEFAULT '0',
`show_board` smallint(4) NOT NULL DEFAULT '0',
`show_threadindex` smallint(4) NOT NULL DEFAULT '0',
`show_lastpost` smallint(4) NOT NULL DEFAULT '0',
`show_thread` smallint(4) NOT NULL DEFAULT '0',
`show_bottom` smallint(4) NOT NULL DEFAULT '0',
`show_welcome` smallint(4) NOT NULL DEFAULT '0',
`show_topofpage` smallint(4) NOT NULL DEFAULT '0',
`show_towerright` smallint(4) NOT NULL DEFAULT '0',
`show_towerleft` smallint(4) NOT NULL DEFAULT '0',
`show_betweencategories` smallint(4) NOT NULL DEFAULT '0',
`show_underchildren` smallint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`ADS_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=3 ;
--
-- Дамп данных таблицы `f_ads`
--
-- --------------------------------------------------------
--
-- Структура таблицы `f_ads_settings`
--
CREATE TABLE IF NOT EXISTS `f_ads_settings` (
`variable` tinytext CHARACTER SET utf8 NOT NULL,
`value` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`variable`(30))
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
--
-- Дамп данных таблицы `f_ads_settings`
--
-- --------------------------------------------------------
--
-- Структура таблицы `f_attachments`
--
CREATE TABLE IF NOT EXISTS `f_attachments` (
`ID_ATTACH` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ID_THUMB` int(10) unsigned NOT NULL DEFAULT '0',
`ID_MSG` int(10) unsigned NOT NULL DEFAULT '0',
`ID_MEMBER` mediumint(8) unsigned NOT NULL DEFAULT '0',
`attachmentType` tinyint(3) unsigned NOT NULL DEFAULT '0',
`filename` tinytext NOT NULL,
`size` int(10) unsigned NOT NULL DEFAULT '0',
`downloads` mediumint(8) unsigned NOT NULL DEFAULT '0',
`width` mediumint(8) unsigned NOT NULL DEFAULT '0',
`height` mediumint(8) unsigned NOT NULL DEFAULT '0',
`watermarked` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`ID_ATTACH`),
UNIQUE KEY `ID_MEMBER` (`ID_MEMBER`,`ID_ATTACH`),
KEY `ID_MSG` (`ID_MSG`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=103 ;