CREATE TABLE `antibb_attachment` (
`attachmentid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`dateline` int(10) unsigned NOT NULL DEFAULT '0',
`thumbnail_dateline` int(10) unsigned NOT NULL DEFAULT '0',
`filename` varchar(100) NOT NULL DEFAULT '',
`filedata` mediumtext NOT NULL,
`visible` smallint(5) unsigned NOT NULL DEFAULT '0',
`counter` smallint(5) unsigned NOT NULL DEFAULT '0',
`filesize` int(10) unsigned NOT NULL DEFAULT '0',
`postid` int(10) unsigned NOT NULL DEFAULT '0',
`filehash` varchar(32) NOT NULL DEFAULT '',
`posthash` varchar(32) NOT NULL DEFAULT '',
`thumbnail` mediumtext NOT NULL,
`thumbnail_filesize` int(10) unsigned NOT NULL DEFAULT '0',
`importattachmentid` bigint(20) NOT NULL DEFAULT '0',
`description` varchar(150) NOT NULL DEFAULT '',
PRIMARY KEY (`attachmentid`),
KEY `filesize` (`filesize`),
KEY `filehash` (`filehash`),
KEY `userid` (`userid`),
KEY `posthash` (`posthash`,`userid`),
KEY `postid` (`postid`)
) ENGINE=MyISAM AUTO_INCREMENT=1639 DEFAULT CHARSET=cp1251;
CREATE TABLE `antibb_post` (
`postid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`threadid` int(10) unsigned NOT NULL DEFAULT '0',
`parentid` int(10) unsigned NOT NULL DEFAULT '0',
`username` varchar(50) NOT NULL DEFAULT '',
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`title` varchar(250) NOT NULL DEFAULT '',
`dateline` int(10) unsigned NOT NULL DEFAULT '0',
`pagetext` mediumtext NOT NULL,
`allowsmilie` smallint(6) NOT NULL DEFAULT '0',
`showsignature` smallint(6) NOT NULL DEFAULT '0',
`ipaddress` varchar(15) NOT NULL DEFAULT '',
`proxyip` varchar(50) NOT NULL DEFAULT '',
`iconid` smallint(5) unsigned NOT NULL DEFAULT '0',
`visible` smallint(6) NOT NULL DEFAULT '0',
`attach` smallint(5) unsigned NOT NULL DEFAULT '0',
`importthreadid` bigint(20) NOT NULL DEFAULT '0',
`importpostid` bigint(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`postid`),
KEY `iconid` (`iconid`),
KEY `userid` (`userid`),
KEY `threadid` (`threadid`,`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2210477 DEFAULT CHARSET=cp1251;
CREATE TABLE `antibb_postindex` (
`wordid` int(10) unsigned NOT NULL DEFAULT '0',
`postid` int(10) unsigned NOT NULL DEFAULT '0',
`intitle` smallint(5) unsigned NOT NULL DEFAULT '0',
`score` smallint(5) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `wordid` (`wordid`,`postid`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251;