DiscuzX/upload/install/data/install.sql

4095 lines
148 KiB
MySQL
Raw Normal View History

2017-07-17 02:41:00 -04:00
--
-- DiscuzX INSTALL MAKE SQL DUMP V1.0
-- DO NOT modify this file
--
-- Create: 2013-08-27 16:12:45
--
2016-12-15 08:20:54 -05:00
DROP TABLE IF EXISTS pre_common_admincp_cmenu;
CREATE TABLE pre_common_admincp_cmenu (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
title varchar(255) NOT NULL,
url varchar(255) NOT NULL,
sort tinyint(1) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL,
clicks smallint(6) unsigned NOT NULL DEFAULT '1',
uid mediumint(8) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
PRIMARY KEY (id),
KEY uid (uid),
KEY displayorder (displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_admincp_group;
CREATE TABLE pre_common_admincp_group (
cpgroupid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
cpgroupname varchar(255) NOT NULL,
PRIMARY KEY (cpgroupid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_admincp_member;
CREATE TABLE pre_common_admincp_member (
uid int(10) unsigned NOT NULL,
cpgroupid int(10) unsigned NOT NULL,
customperm text NOT NULL,
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_admincp_perm;
CREATE TABLE pre_common_admincp_perm (
cpgroupid smallint(6) unsigned NOT NULL,
perm varchar(255) NOT NULL,
UNIQUE KEY cpgroupperm (cpgroupid,perm)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_admincp_session;
CREATE TABLE pre_common_admincp_session (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
adminid smallint(6) unsigned NOT NULL DEFAULT '0',
panel tinyint(1) NOT NULL DEFAULT '0',
ip varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
errorcount tinyint(1) NOT NULL DEFAULT '0',
`storage` mediumtext NOT NULL,
PRIMARY KEY (uid,panel)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_admingroup;
CREATE TABLE pre_common_admingroup (
admingid smallint(6) unsigned NOT NULL DEFAULT '0',
alloweditpost tinyint(1) NOT NULL DEFAULT '0',
alloweditpoll tinyint(1) NOT NULL DEFAULT '0',
allowstickthread tinyint(1) NOT NULL DEFAULT '0',
allowmodpost tinyint(1) NOT NULL DEFAULT '0',
allowdelpost tinyint(1) NOT NULL DEFAULT '0',
allowmassprune tinyint(1) NOT NULL DEFAULT '0',
allowrefund tinyint(1) NOT NULL DEFAULT '0',
allowcensorword tinyint(1) NOT NULL DEFAULT '0',
allowviewip tinyint(1) NOT NULL DEFAULT '0',
allowbanip tinyint(1) NOT NULL DEFAULT '0',
allowedituser tinyint(1) NOT NULL DEFAULT '0',
allowmoduser tinyint(1) NOT NULL DEFAULT '0',
allowbanuser tinyint(1) NOT NULL DEFAULT '0',
allowbanvisituser tinyint(1) NOT NULL DEFAULT '0',
allowpostannounce tinyint(1) NOT NULL DEFAULT '0',
allowviewlog tinyint(1) NOT NULL DEFAULT '0',
allowbanpost tinyint(1) NOT NULL DEFAULT '0',
supe_allowpushthread tinyint(1) NOT NULL DEFAULT '0',
allowhighlightthread tinyint(1) NOT NULL DEFAULT '0',
allowlivethread tinyint(1) NOT NULL DEFAULT '0',
allowdigestthread tinyint(1) NOT NULL DEFAULT '0',
allowrecommendthread tinyint(1) NOT NULL DEFAULT '0',
allowbumpthread tinyint(1) NOT NULL DEFAULT '0',
allowclosethread tinyint(1) NOT NULL DEFAULT '0',
allowmovethread tinyint(1) NOT NULL DEFAULT '0',
allowedittypethread tinyint(1) NOT NULL DEFAULT '0',
allowstampthread tinyint(1) NOT NULL DEFAULT '0',
allowstamplist tinyint(1) NOT NULL DEFAULT '0',
allowcopythread tinyint(1) NOT NULL DEFAULT '0',
allowmergethread tinyint(1) NOT NULL DEFAULT '0',
allowsplitthread tinyint(1) NOT NULL DEFAULT '0',
allowrepairthread tinyint(1) NOT NULL DEFAULT '0',
allowwarnpost tinyint(1) NOT NULL DEFAULT '0',
allowviewreport tinyint(1) NOT NULL DEFAULT '0',
alloweditforum tinyint(1) NOT NULL DEFAULT '0',
allowremovereward tinyint(1) NOT NULL DEFAULT '0',
allowedittrade tinyint(1) NOT NULL DEFAULT '0',
alloweditactivity tinyint(1) NOT NULL DEFAULT '0',
allowstickreply tinyint(1) NOT NULL DEFAULT '0',
allowmanagearticle tinyint(1) NOT NULL DEFAULT '0',
allowaddtopic tinyint(1) NOT NULL DEFAULT '0',
allowmanagetopic tinyint(1) NOT NULL DEFAULT '0',
allowdiy tinyint(1) NOT NULL DEFAULT '0',
allowclearrecycle tinyint(1) NOT NULL DEFAULT '0',
allowmanagetag tinyint(1) NOT NULL DEFAULT '0',
alloweditusertag tinyint(1) NOT NULL DEFAULT '0',
managefeed tinyint(1) NOT NULL DEFAULT '0',
managedoing tinyint(1) NOT NULL DEFAULT '0',
manageshare tinyint(1) NOT NULL DEFAULT '0',
manageblog tinyint(1) NOT NULL DEFAULT '0',
managealbum tinyint(1) NOT NULL DEFAULT '0',
managecomment tinyint(1) NOT NULL DEFAULT '0',
managemagiclog tinyint(1) NOT NULL DEFAULT '0',
managereport tinyint(1) NOT NULL DEFAULT '0',
managehotuser tinyint(1) NOT NULL DEFAULT '0',
managedefaultuser tinyint(1) NOT NULL DEFAULT '0',
managevideophoto tinyint(1) NOT NULL DEFAULT '0',
managemagic tinyint(1) NOT NULL DEFAULT '0',
manageclick tinyint(1) NOT NULL DEFAULT '0',
allowmanagecollection tinyint(1) NOT NULL DEFAULT '0',
allowmakehtml tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (admingid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_adminnote;
CREATE TABLE pre_common_adminnote (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
admin varchar(15) NOT NULL DEFAULT '',
access tinyint(3) NOT NULL DEFAULT '0',
adminid tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_advertisement;
CREATE TABLE pre_common_advertisement (
advid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
`type` varchar(50) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
targets text NOT NULL,
parameters text NOT NULL,
`code` text NOT NULL,
starttime int(10) unsigned NOT NULL DEFAULT '0',
endtime int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (advid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_advertisement_custom;
CREATE TABLE pre_common_advertisement_custom (
id smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY `name` (`name`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_banned;
CREATE TABLE pre_common_banned (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
ip1 smallint(3) NOT NULL DEFAULT '0',
ip2 smallint(3) NOT NULL DEFAULT '0',
ip3 smallint(3) NOT NULL DEFAULT '0',
ip4 smallint(3) NOT NULL DEFAULT '0',
admin varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block;
CREATE TABLE pre_common_block (
bid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
blockclass varchar(255) NOT NULL DEFAULT '0',
blocktype tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
title text NOT NULL,
classname varchar(255) NOT NULL DEFAULT '',
summary text NOT NULL,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
styleid smallint(6) unsigned NOT NULL DEFAULT '0',
blockstyle text NOT NULL,
picwidth smallint(6) unsigned NOT NULL DEFAULT '0',
picheight smallint(6) unsigned NOT NULL DEFAULT '0',
target varchar(255) NOT NULL DEFAULT '',
dateformat varchar(255) NOT NULL DEFAULT '',
dateuformat tinyint(1) NOT NULL DEFAULT '0',
script varchar(255) NOT NULL DEFAULT '',
param text NOT NULL,
shownum smallint(6) unsigned NOT NULL DEFAULT '0',
cachetime int(10) NOT NULL DEFAULT '0',
cachetimerange char(5) NOT NULL DEFAULT '',
punctualupdate tinyint(1) NOT NULL DEFAULT '0',
hidedisplay tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
notinherited tinyint(1) NOT NULL DEFAULT '0',
isblank tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (bid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_favorite;
CREATE TABLE pre_common_block_favorite (
favid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (favid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_item;
CREATE TABLE pre_common_block_item (
itemid int(10) unsigned NOT NULL AUTO_INCREMENT,
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(255) NOT NULL DEFAULT '',
itemtype tinyint(1) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
pic varchar(255) NOT NULL DEFAULT '',
picflag tinyint(1) NOT NULL DEFAULT '0',
makethumb tinyint(1) NOT NULL DEFAULT '0',
thumbpath varchar(255) NOT NULL DEFAULT '',
summary text NOT NULL,
showstyle text NOT NULL,
related text NOT NULL,
`fields` text NOT NULL,
displayorder smallint(6) NOT NULL DEFAULT '0',
startdate int(10) unsigned NOT NULL DEFAULT '0',
enddate int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (itemid),
KEY bid (bid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_item_data;
CREATE TABLE pre_common_block_item_data (
dataid int(10) unsigned NOT NULL AUTO_INCREMENT,
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(255) NOT NULL DEFAULT '',
itemtype tinyint(1) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
pic varchar(255) NOT NULL DEFAULT '',
picflag tinyint(1) NOT NULL DEFAULT '0',
makethumb tinyint(1) NOT NULL DEFAULT '0',
summary text NOT NULL,
showstyle text NOT NULL,
related text NOT NULL,
`fields` text NOT NULL,
displayorder smallint(6) NOT NULL DEFAULT '0',
startdate int(10) unsigned NOT NULL DEFAULT '0',
enddate int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
isverified tinyint(1) NOT NULL DEFAULT '0',
verifiedtime int(10) unsigned NOT NULL DEFAULT '0',
stickgrade tinyint(2) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (dataid),
KEY bid (bid,stickgrade,displayorder,verifiedtime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_permission;
CREATE TABLE pre_common_block_permission (
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
allowmanage tinyint(1) NOT NULL DEFAULT '0',
allowrecommend tinyint(1) NOT NULL DEFAULT '0',
needverify tinyint(1) NOT NULL DEFAULT '0',
inheritedtplname varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (bid,uid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_pic;
CREATE TABLE pre_common_block_pic (
picid int(10) unsigned NOT NULL AUTO_INCREMENT,
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
itemid int(10) unsigned NOT NULL DEFAULT '0',
pic varchar(255) NOT NULL DEFAULT '',
picflag tinyint(1) NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (picid),
KEY bid (bid,itemid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_style;
CREATE TABLE pre_common_block_style (
styleid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
blockclass varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
template text NOT NULL,
`hash` varchar(255) NOT NULL DEFAULT '',
getpic tinyint(1) NOT NULL DEFAULT '0',
getsummary tinyint(1) NOT NULL DEFAULT '0',
makethumb tinyint(1) NOT NULL DEFAULT '0',
settarget tinyint(1) NOT NULL DEFAULT '0',
`fields` text NOT NULL,
moreurl tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (styleid),
KEY `hash` (`hash`),
KEY blockclass (blockclass)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_block_xml;
CREATE TABLE pre_common_block_xml (
id smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
version varchar(255) NOT NULL,
url varchar(255) NOT NULL,
clientid varchar(255) NOT NULL,
`key` varchar(255) NOT NULL,
signtype varchar(255) NOT NULL,
`data` text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_cache;
CREATE TABLE pre_common_cache (
cachekey varchar(255) NOT NULL DEFAULT '',
cachevalue mediumblob NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cachekey)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_card;
CREATE TABLE pre_common_card (
id char(255) NOT NULL DEFAULT '',
typeid smallint(6) unsigned NOT NULL DEFAULT '1',
maketype tinyint(1) NOT NULL DEFAULT '0',
makeruid mediumint(8) unsigned NOT NULL DEFAULT '0',
price mediumint(8) unsigned NOT NULL DEFAULT '0',
extcreditskey tinyint(1) NOT NULL DEFAULT '0',
extcreditsval int(10) NOT NULL DEFAULT '0',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1',
dateline int(10) unsigned NOT NULL DEFAULT '0',
cleardateline int(10) unsigned NOT NULL DEFAULT '0',
useddateline int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_card_log;
CREATE TABLE pre_common_card_log (
id smallint(6) NOT NULL AUTO_INCREMENT,
uid mediumint(8) NOT NULL DEFAULT '0',
username varchar(20) NOT NULL DEFAULT '',
cardrule varchar(255) NOT NULL DEFAULT '',
info text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
description mediumtext NOT NULL,
operation tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY dateline (dateline),
KEY operation_dateline (operation,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_card_type;
CREATE TABLE pre_common_card_type (
id smallint(6) NOT NULL AUTO_INCREMENT,
typename char(20) NOT NULL DEFAULT '',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_connect_guest;
CREATE TABLE pre_common_connect_guest (
conopenid char(32) NOT NULL DEFAULT '',
conuin char(40) NOT NULL DEFAULT '',
conuinsecret char(16) NOT NULL DEFAULT '',
conqqnick char(100) NOT NULL DEFAULT '',
2017-07-17 02:41:00 -04:00
conuintoken char(32) NOT NULL DEFAULT '',
2016-12-15 08:20:54 -05:00
PRIMARY KEY (conopenid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_credit_log;
CREATE TABLE pre_common_credit_log (
logid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
operation char(3) NOT NULL DEFAULT '',
relatedid int(10) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
extcredits1 int(10) NOT NULL,
extcredits2 int(10) NOT NULL,
extcredits3 int(10) NOT NULL,
extcredits4 int(10) NOT NULL,
extcredits5 int(10) NOT NULL,
extcredits6 int(10) NOT NULL,
extcredits7 int(10) NOT NULL,
extcredits8 int(10) NOT NULL,
PRIMARY KEY (logid),
KEY uid (uid),
KEY operation (operation),
KEY relatedid (relatedid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_credit_log_field;
CREATE TABLE pre_common_credit_log_field (
logid mediumint(8) unsigned NOT NULL,
title varchar(100) NOT NULL,
`text` text NOT NULL,
KEY logid (logid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_credit_rule;
CREATE TABLE pre_common_credit_rule (
rid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
rulename varchar(20) NOT NULL DEFAULT '',
`action` varchar(20) NOT NULL DEFAULT '',
cycletype tinyint(1) NOT NULL DEFAULT '0',
cycletime int(10) NOT NULL DEFAULT '0',
rewardnum tinyint(2) NOT NULL DEFAULT '1',
norepeat tinyint(1) NOT NULL DEFAULT '0',
extcredits1 int(10) NOT NULL DEFAULT '0',
extcredits2 int(10) NOT NULL DEFAULT '0',
extcredits3 int(10) NOT NULL DEFAULT '0',
extcredits4 int(10) NOT NULL DEFAULT '0',
extcredits5 int(10) NOT NULL DEFAULT '0',
extcredits6 int(10) NOT NULL DEFAULT '0',
extcredits7 int(10) NOT NULL DEFAULT '0',
extcredits8 int(10) NOT NULL DEFAULT '0',
fids text NOT NULL,
PRIMARY KEY (rid),
UNIQUE KEY `action` (`action`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_credit_rule_log;
CREATE TABLE pre_common_credit_rule_log (
clid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
rid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
total mediumint(8) unsigned NOT NULL DEFAULT '0',
cyclenum mediumint(8) unsigned NOT NULL DEFAULT '0',
extcredits1 int(10) NOT NULL DEFAULT '0',
extcredits2 int(10) NOT NULL DEFAULT '0',
extcredits3 int(10) NOT NULL DEFAULT '0',
extcredits4 int(10) NOT NULL DEFAULT '0',
extcredits5 int(10) NOT NULL DEFAULT '0',
extcredits6 int(10) NOT NULL DEFAULT '0',
extcredits7 int(10) NOT NULL DEFAULT '0',
extcredits8 int(10) NOT NULL DEFAULT '0',
starttime int(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (clid),
KEY uid (uid,rid,fid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_credit_rule_log_field;
CREATE TABLE pre_common_credit_rule_log_field (
clid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
info text NOT NULL,
`user` text NOT NULL,
app text NOT NULL,
PRIMARY KEY (uid,clid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_cron;
CREATE TABLE pre_common_cron (
cronid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
`type` enum('user','system','plugin') NOT NULL DEFAULT 'user',
`name` char(50) NOT NULL DEFAULT '',
filename char(50) NOT NULL DEFAULT '',
lastrun int(10) unsigned NOT NULL DEFAULT '0',
nextrun int(10) unsigned NOT NULL DEFAULT '0',
weekday tinyint(1) NOT NULL DEFAULT '0',
`day` tinyint(2) NOT NULL DEFAULT '0',
`hour` tinyint(2) NOT NULL DEFAULT '0',
`minute` char(36) NOT NULL DEFAULT '',
PRIMARY KEY (cronid),
KEY nextrun (available,nextrun)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_devicetoken;
CREATE TABLE pre_common_devicetoken (
uid mediumint(8) unsigned NOT NULL,
token char(50) NOT NULL,
PRIMARY KEY (uid),
KEY token (token)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_district;
CREATE TABLE pre_common_district (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`level` tinyint(4) unsigned NOT NULL DEFAULT '0',
usetype tinyint(1) unsigned NOT NULL DEFAULT '0',
upid mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY upid (upid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_diy_data;
CREATE TABLE pre_common_diy_data (
targettplname varchar(100) NOT NULL DEFAULT '',
tpldirectory varchar(80) NOT NULL DEFAULT '',
primaltplname varchar(255) NOT NULL DEFAULT '',
diycontent mediumtext NOT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (targettplname,tpldirectory)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_domain;
CREATE TABLE pre_common_domain (
domain char(30) NOT NULL DEFAULT '',
domainroot char(60) NOT NULL DEFAULT '',
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype char(15) NOT NULL DEFAULT '',
PRIMARY KEY (id,idtype),
KEY domain (domain,domainroot),
KEY idtype (idtype)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_failedip;
CREATE TABLE pre_common_failedip (
ip char(7) NOT NULL DEFAULT '',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
count tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (ip,lastupdate),
KEY lastupdate (lastupdate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_failedlogin;
CREATE TABLE pre_common_failedlogin (
ip char(15) NOT NULL DEFAULT '',
username char(32) NOT NULL DEFAULT '',
count tinyint(1) unsigned NOT NULL DEFAULT '0',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (ip,username)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_friendlink;
CREATE TABLE pre_common_friendlink (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
displayorder tinyint(3) NOT NULL DEFAULT '0',
`name` varchar(100) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
description mediumtext NOT NULL,
logo varchar(255) NOT NULL DEFAULT '',
`type` tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_grouppm;
CREATE TABLE pre_common_grouppm (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
author varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
numbers mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_invite;
CREATE TABLE pre_common_invite (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`code` char(20) NOT NULL DEFAULT '',
fuid mediumint(8) unsigned NOT NULL DEFAULT '0',
fusername char(20) NOT NULL DEFAULT '',
`type` tinyint(1) NOT NULL DEFAULT '0',
email char(40) NOT NULL DEFAULT '',
inviteip char(15) NOT NULL DEFAULT '',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
endtime int(10) unsigned NOT NULL DEFAULT '0',
regdateline int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '1',
orderid char(32) NOT NULL DEFAULT '',
PRIMARY KEY (id),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_magic;
CREATE TABLE pre_common_magic (
magicid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(50) NOT NULL,
identifier varchar(40) NOT NULL,
description varchar(255) NOT NULL,
displayorder tinyint(3) NOT NULL DEFAULT '0',
credit tinyint(1) NOT NULL DEFAULT '0',
price mediumint(8) unsigned NOT NULL DEFAULT '0',
num smallint(6) unsigned NOT NULL DEFAULT '0',
salevolume smallint(6) unsigned NOT NULL DEFAULT '0',
supplytype tinyint(1) NOT NULL DEFAULT '0',
supplynum smallint(6) unsigned NOT NULL DEFAULT '0',
useperoid tinyint(1) NOT NULL DEFAULT '0',
usenum smallint(6) unsigned NOT NULL DEFAULT '0',
weight tinyint(3) unsigned NOT NULL DEFAULT '1',
magicperm text NOT NULL,
useevent tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (magicid),
UNIQUE KEY identifier (identifier),
KEY displayorder (available,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_magiclog;
CREATE TABLE pre_common_magiclog (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
magicid smallint(6) unsigned NOT NULL DEFAULT '0',
`action` tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
amount smallint(6) unsigned NOT NULL DEFAULT '0',
credit tinyint(1) unsigned NOT NULL DEFAULT '0',
price mediumint(8) unsigned NOT NULL DEFAULT '0',
targetid int(10) unsigned NOT NULL DEFAULT '0',
idtype char(6) DEFAULT NULL,
targetuid mediumint(8) unsigned NOT NULL DEFAULT '0',
KEY uid (uid,dateline),
KEY `action` (`action`),
KEY targetuid (targetuid,dateline),
KEY magicid (magicid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_mailcron;
CREATE TABLE pre_common_mailcron (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
touid mediumint(8) unsigned NOT NULL DEFAULT '0',
email varchar(100) NOT NULL DEFAULT '',
sendtime int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY sendtime (sendtime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_mailqueue;
CREATE TABLE pre_common_mailqueue (
qid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
cid mediumint(8) unsigned NOT NULL DEFAULT '0',
`subject` text NOT NULL,
message text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (qid),
KEY mcid (cid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member;
CREATE TABLE pre_common_member (
uid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
email char(40) NOT NULL DEFAULT '',
username char(15) NOT NULL DEFAULT '',
`password` char(32) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT '0',
emailstatus tinyint(1) NOT NULL DEFAULT '0',
avatarstatus tinyint(1) NOT NULL DEFAULT '0',
videophotostatus tinyint(1) NOT NULL DEFAULT '0',
adminid tinyint(1) NOT NULL DEFAULT '0',
groupid smallint(6) unsigned NOT NULL DEFAULT '0',
groupexpiry int(10) unsigned NOT NULL DEFAULT '0',
extgroupids char(20) NOT NULL DEFAULT '',
regdate int(10) unsigned NOT NULL DEFAULT '0',
credits int(10) NOT NULL DEFAULT '0',
notifysound tinyint(1) NOT NULL DEFAULT '0',
timeoffset char(4) NOT NULL DEFAULT '',
newpm smallint(6) unsigned NOT NULL DEFAULT '0',
newprompt smallint(6) unsigned NOT NULL DEFAULT '0',
accessmasks tinyint(1) NOT NULL DEFAULT '0',
allowadmincp tinyint(1) NOT NULL DEFAULT '0',
onlyacceptfriendpm tinyint(1) NOT NULL DEFAULT '0',
conisbind tinyint(1) unsigned NOT NULL DEFAULT '0',
freeze tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
UNIQUE KEY username (username),
KEY email (email),
KEY groupid (groupid),
KEY conisbind (conisbind),
KEY regdate (regdate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_action_log;
CREATE TABLE pre_common_member_action_log (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`action` tinyint(5) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY dateline (dateline,`action`,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_connect;
CREATE TABLE pre_common_member_connect (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
conuin char(40) NOT NULL DEFAULT '',
conuinsecret char(16) NOT NULL DEFAULT '',
conopenid char(32) NOT NULL DEFAULT '',
conisfeed tinyint(1) unsigned NOT NULL DEFAULT '0',
conispublishfeed tinyint(1) unsigned NOT NULL DEFAULT '0',
conispublisht tinyint(1) unsigned NOT NULL DEFAULT '0',
conisregister tinyint(1) unsigned NOT NULL DEFAULT '0',
conisqzoneavatar tinyint(1) unsigned NOT NULL DEFAULT '0',
conisqqshow tinyint(1) unsigned NOT NULL DEFAULT '0',
2017-07-17 02:41:00 -04:00
conuintoken char(32) NOT NULL DEFAULT '',
2016-12-15 08:20:54 -05:00
PRIMARY KEY (uid),
KEY conuin (conuin),
KEY conopenid (conopenid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_count;
CREATE TABLE pre_common_member_count (
uid mediumint(8) unsigned NOT NULL,
extcredits1 int(10) NOT NULL DEFAULT '0',
extcredits2 int(10) NOT NULL DEFAULT '0',
extcredits3 int(10) NOT NULL DEFAULT '0',
extcredits4 int(10) NOT NULL DEFAULT '0',
extcredits5 int(10) NOT NULL DEFAULT '0',
extcredits6 int(10) NOT NULL DEFAULT '0',
extcredits7 int(10) NOT NULL DEFAULT '0',
extcredits8 int(10) NOT NULL DEFAULT '0',
friends smallint(6) unsigned NOT NULL DEFAULT '0',
posts mediumint(8) unsigned NOT NULL DEFAULT '0',
threads mediumint(8) unsigned NOT NULL DEFAULT '0',
digestposts smallint(6) unsigned NOT NULL DEFAULT '0',
doings smallint(6) unsigned NOT NULL DEFAULT '0',
blogs smallint(6) unsigned NOT NULL DEFAULT '0',
albums smallint(6) unsigned NOT NULL DEFAULT '0',
sharings smallint(6) unsigned NOT NULL DEFAULT '0',
attachsize int(10) unsigned NOT NULL DEFAULT '0',
views mediumint(8) unsigned NOT NULL DEFAULT '0',
oltime smallint(6) unsigned NOT NULL DEFAULT '0',
todayattachs smallint(6) unsigned NOT NULL DEFAULT '0',
todayattachsize int(10) unsigned NOT NULL DEFAULT '0',
feeds mediumint(8) unsigned NOT NULL DEFAULT '0',
follower mediumint(8) unsigned NOT NULL DEFAULT '0',
following mediumint(8) unsigned NOT NULL DEFAULT '0',
newfollower mediumint(8) unsigned NOT NULL DEFAULT '0',
blacklist mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY posts (posts)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_crime;
CREATE TABLE pre_common_member_crime (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
operatorid mediumint(8) unsigned NOT NULL DEFAULT '0',
operator varchar(15) NOT NULL,
`action` tinyint(5) NOT NULL,
reason text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY uid (uid,`action`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_field_forum;
CREATE TABLE pre_common_member_field_forum (
uid mediumint(8) unsigned NOT NULL,
publishfeed tinyint(3) NOT NULL DEFAULT '0',
customshow tinyint(1) unsigned NOT NULL DEFAULT '26',
customstatus varchar(30) NOT NULL DEFAULT '',
medals text NOT NULL,
sightml text NOT NULL,
groupterms text NOT NULL,
authstr varchar(20) NOT NULL DEFAULT '',
groups mediumtext NOT NULL,
attentiongroup varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_field_home;
CREATE TABLE pre_common_member_field_home (
uid mediumint(8) unsigned NOT NULL,
videophoto varchar(255) NOT NULL DEFAULT '',
spacename varchar(255) NOT NULL DEFAULT '',
spacedescription varchar(255) NOT NULL DEFAULT '',
domain char(15) NOT NULL DEFAULT '',
addsize int(10) unsigned NOT NULL DEFAULT '0',
addfriend smallint(6) unsigned NOT NULL DEFAULT '0',
menunum smallint(6) unsigned NOT NULL DEFAULT '0',
theme varchar(20) NOT NULL DEFAULT '',
spacecss text NOT NULL,
blockposition text NOT NULL,
recentnote text NOT NULL,
spacenote text NOT NULL,
privacy text NOT NULL,
feedfriend mediumtext NOT NULL,
acceptemail text NOT NULL,
magicgift text NOT NULL,
stickblogs text NOT NULL,
PRIMARY KEY (uid),
KEY domain (domain)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_forum_buylog;
CREATE TABLE pre_common_member_forum_buylog (
uid mediumint(8) unsigned NOT NULL,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
credits int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fid),
KEY fid (fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_grouppm;
CREATE TABLE pre_common_member_grouppm (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
gpmid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`status` tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,gpmid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_log;
CREATE TABLE pre_common_member_log (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`action` char(10) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_magic;
CREATE TABLE pre_common_member_magic (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
magicid smallint(6) unsigned NOT NULL DEFAULT '0',
num smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,magicid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_medal;
CREATE TABLE pre_common_member_medal (
uid mediumint(8) unsigned NOT NULL,
medalid smallint(6) unsigned NOT NULL,
PRIMARY KEY (uid,medalid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_newprompt;
CREATE TABLE pre_common_member_newprompt (
uid mediumint(8) unsigned NOT NULL,
`data` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_profile;
CREATE TABLE pre_common_member_profile (
uid mediumint(8) unsigned NOT NULL,
realname varchar(255) NOT NULL DEFAULT '',
gender tinyint(1) NOT NULL DEFAULT '0',
birthyear smallint(6) unsigned NOT NULL DEFAULT '0',
birthmonth tinyint(3) unsigned NOT NULL DEFAULT '0',
birthday tinyint(3) unsigned NOT NULL DEFAULT '0',
constellation varchar(255) NOT NULL DEFAULT '',
zodiac varchar(255) NOT NULL DEFAULT '',
telephone varchar(255) NOT NULL DEFAULT '',
mobile varchar(255) NOT NULL DEFAULT '',
idcardtype varchar(255) NOT NULL DEFAULT '',
idcard varchar(255) NOT NULL DEFAULT '',
address varchar(255) NOT NULL DEFAULT '',
zipcode varchar(255) NOT NULL DEFAULT '',
nationality varchar(255) NOT NULL DEFAULT '',
birthprovince varchar(255) NOT NULL DEFAULT '',
birthcity varchar(255) NOT NULL DEFAULT '',
birthdist varchar(20) NOT NULL DEFAULT '',
birthcommunity varchar(255) NOT NULL DEFAULT '',
resideprovince varchar(255) NOT NULL DEFAULT '',
residecity varchar(255) NOT NULL DEFAULT '',
residedist varchar(20) NOT NULL DEFAULT '',
residecommunity varchar(255) NOT NULL DEFAULT '',
residesuite varchar(255) NOT NULL DEFAULT '',
graduateschool varchar(255) NOT NULL DEFAULT '',
company varchar(255) NOT NULL DEFAULT '',
education varchar(255) NOT NULL DEFAULT '',
occupation varchar(255) NOT NULL DEFAULT '',
position varchar(255) NOT NULL DEFAULT '',
revenue varchar(255) NOT NULL DEFAULT '',
affectivestatus varchar(255) NOT NULL DEFAULT '',
lookingfor varchar(255) NOT NULL DEFAULT '',
bloodtype varchar(255) NOT NULL DEFAULT '',
height varchar(255) NOT NULL DEFAULT '',
weight varchar(255) NOT NULL DEFAULT '',
alipay varchar(255) NOT NULL DEFAULT '',
icq varchar(255) NOT NULL DEFAULT '',
qq varchar(255) NOT NULL DEFAULT '',
yahoo varchar(255) NOT NULL DEFAULT '',
msn varchar(255) NOT NULL DEFAULT '',
taobao varchar(255) NOT NULL DEFAULT '',
site varchar(255) NOT NULL DEFAULT '',
bio text NOT NULL,
interest text NOT NULL,
field1 text NOT NULL,
field2 text NOT NULL,
field3 text NOT NULL,
field4 text NOT NULL,
field5 text NOT NULL,
field6 text NOT NULL,
field7 text NOT NULL,
field8 text NOT NULL,
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_profile_setting;
CREATE TABLE pre_common_member_profile_setting (
fieldid varchar(255) NOT NULL DEFAULT '',
available tinyint(1) NOT NULL DEFAULT '0',
invisible tinyint(1) NOT NULL DEFAULT '0',
needverify tinyint(1) NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
displayorder smallint(6) unsigned NOT NULL DEFAULT '0',
required tinyint(1) NOT NULL DEFAULT '0',
unchangeable tinyint(1) NOT NULL DEFAULT '0',
showincard tinyint(1) NOT NULL DEFAULT '0',
showinthread tinyint(1) NOT NULL DEFAULT '0',
showinregister tinyint(1) NOT NULL DEFAULT '0',
allowsearch tinyint(1) NOT NULL DEFAULT '0',
formtype varchar(255) NOT NULL,
size smallint(6) unsigned NOT NULL DEFAULT '0',
choices text NOT NULL,
validate text NOT NULL,
PRIMARY KEY (fieldid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_security;
CREATE TABLE pre_common_member_security (
securityid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
fieldid varchar(255) NOT NULL DEFAULT '',
oldvalue text NOT NULL,
newvalue text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (securityid),
KEY uid (uid,fieldid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_secwhite;
CREATE TABLE pre_common_member_secwhite (
uid int(10) NOT NULL,
dateline int(10) NOT NULL,
PRIMARY KEY (uid)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_common_member_stat_field;
CREATE TABLE pre_common_member_stat_field (
optionid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
fieldid varchar(255) NOT NULL DEFAULT '',
fieldvalue varchar(255) NOT NULL DEFAULT '',
`hash` varchar(255) NOT NULL DEFAULT '',
users mediumint(8) unsigned NOT NULL DEFAULT '0',
updatetime int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (optionid),
KEY fieldid (fieldid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_status;
CREATE TABLE pre_common_member_status (
uid mediumint(8) unsigned NOT NULL,
regip char(15) NOT NULL DEFAULT '',
lastip char(15) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
lastvisit int(10) unsigned NOT NULL DEFAULT '0',
lastactivity int(10) unsigned NOT NULL DEFAULT '0',
lastpost int(10) unsigned NOT NULL DEFAULT '0',
lastsendmail int(10) unsigned NOT NULL DEFAULT '0',
invisible tinyint(1) NOT NULL DEFAULT '0',
buyercredit smallint(6) NOT NULL DEFAULT '0',
sellercredit smallint(6) NOT NULL DEFAULT '0',
favtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
sharetimes mediumint(8) unsigned NOT NULL DEFAULT '0',
profileprogress tinyint(2) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY lastactivity (lastactivity,invisible)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_validate;
CREATE TABLE pre_common_member_validate (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
submitdate int(10) unsigned NOT NULL DEFAULT '0',
moddate int(10) unsigned NOT NULL DEFAULT '0',
admin varchar(15) NOT NULL DEFAULT '',
submittimes tinyint(3) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
message text NOT NULL,
remark text NOT NULL,
PRIMARY KEY (uid),
KEY `status` (`status`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_verify;
CREATE TABLE pre_common_member_verify (
uid mediumint(8) unsigned NOT NULL,
verify1 tinyint(1) NOT NULL DEFAULT '0',
verify2 tinyint(1) NOT NULL DEFAULT '0',
verify3 tinyint(1) NOT NULL DEFAULT '0',
verify4 tinyint(1) NOT NULL DEFAULT '0',
verify5 tinyint(1) NOT NULL DEFAULT '0',
verify6 tinyint(1) NOT NULL DEFAULT '0',
verify7 tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY verify1 (verify1),
KEY verify2 (verify2),
KEY verify3 (verify3),
KEY verify4 (verify4),
KEY verify5 (verify5),
KEY verify6 (verify6),
KEY verify7 (verify7)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_member_verify_info;
CREATE TABLE pre_common_member_verify_info (
vid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(30) NOT NULL DEFAULT '',
verifytype tinyint(1) NOT NULL DEFAULT '0',
flag tinyint(1) NOT NULL DEFAULT '0',
field text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (vid),
KEY verifytype (verifytype,flag),
KEY uid (uid,verifytype,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_myapp;
CREATE TABLE pre_common_myapp (
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
appname varchar(60) NOT NULL DEFAULT '',
narrow tinyint(1) NOT NULL DEFAULT '0',
flag tinyint(1) NOT NULL DEFAULT '0',
version mediumint(8) unsigned NOT NULL DEFAULT '0',
userpanelarea tinyint(1) NOT NULL DEFAULT '0',
canvastitle varchar(60) NOT NULL DEFAULT '',
fullscreen tinyint(1) NOT NULL DEFAULT '0',
displayuserpanel tinyint(1) NOT NULL DEFAULT '0',
displaymethod tinyint(1) NOT NULL DEFAULT '0',
displayorder smallint(6) unsigned NOT NULL DEFAULT '0',
appstatus tinyint(2) NOT NULL DEFAULT '0',
iconstatus tinyint(2) NOT NULL DEFAULT '0',
icondowntime int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (appid),
KEY flag (flag,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_myinvite;
CREATE TABLE pre_common_myinvite (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
typename varchar(100) NOT NULL DEFAULT '',
appid mediumint(8) NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
fromuid mediumint(8) unsigned NOT NULL DEFAULT '0',
touid mediumint(8) unsigned NOT NULL DEFAULT '0',
myml text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
`hash` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `hash` (`hash`),
KEY uid (touid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_mytask;
CREATE TABLE pre_common_mytask (
uid mediumint(8) unsigned NOT NULL,
username char(15) NOT NULL DEFAULT '',
taskid smallint(6) unsigned NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
csc char(255) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,taskid),
KEY parter (taskid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_nav;
CREATE TABLE pre_common_nav (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
parentid smallint(6) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL,
title varchar(255) NOT NULL,
url varchar(255) NOT NULL,
identifier varchar(255) NOT NULL,
target tinyint(1) NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
available tinyint(1) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL,
highlight tinyint(1) NOT NULL DEFAULT '0',
`level` tinyint(1) NOT NULL DEFAULT '0',
subtype tinyint(1) NOT NULL DEFAULT '0',
subcols tinyint(1) NOT NULL DEFAULT '0',
icon varchar(255) NOT NULL,
subname varchar(255) NOT NULL,
suburl varchar(255) NOT NULL,
navtype tinyint(1) NOT NULL DEFAULT '0',
logo varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY navtype (navtype)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_onlinetime;
CREATE TABLE pre_common_onlinetime (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
thismonth smallint(6) unsigned NOT NULL DEFAULT '0',
total mediumint(8) unsigned NOT NULL DEFAULT '0',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_optimizer;
CREATE TABLE pre_common_optimizer (
k char(100) NOT NULL DEFAULT '',
v char(255) NOT NULL DEFAULT '',
PRIMARY KEY (k)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_patch;
CREATE TABLE pre_common_patch (
`serial` varchar(10) NOT NULL DEFAULT '',
rule text NOT NULL,
note text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`serial`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_plugin;
CREATE TABLE pre_common_plugin (
pluginid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
adminid tinyint(1) unsigned NOT NULL DEFAULT '0',
`name` varchar(40) NOT NULL DEFAULT '',
identifier varchar(40) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
datatables varchar(255) NOT NULL DEFAULT '',
`directory` varchar(100) NOT NULL DEFAULT '',
copyright varchar(100) NOT NULL DEFAULT '',
modules text NOT NULL,
version varchar(20) NOT NULL DEFAULT '',
PRIMARY KEY (pluginid),
UNIQUE KEY identifier (identifier)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_pluginvar;
CREATE TABLE pre_common_pluginvar (
pluginvarid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
pluginid smallint(6) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
title varchar(100) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
variable varchar(40) NOT NULL DEFAULT '',
`type` varchar(20) NOT NULL DEFAULT 'text',
`value` text NOT NULL,
extra text NOT NULL,
PRIMARY KEY (pluginvarid),
KEY pluginid (pluginid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_process;
CREATE TABLE pre_common_process (
processid char(32) NOT NULL,
expiry int(10) DEFAULT NULL,
extra int(10) DEFAULT NULL,
PRIMARY KEY (processid),
KEY expiry (expiry)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_common_regip;
CREATE TABLE pre_common_regip (
ip char(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
count smallint(6) NOT NULL DEFAULT '0',
KEY ip (ip)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_relatedlink;
CREATE TABLE pre_common_relatedlink (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
extent tinyint(3) NOT NULL DEFAULT '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_remote_port;
CREATE TABLE pre_common_remote_port (
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype char(15) NOT NULL DEFAULT '',
useip char(15) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id,idtype)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_report;
CREATE TABLE pre_common_report (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
urlkey char(32) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
message text NOT NULL,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
num smallint(6) unsigned NOT NULL DEFAULT '1',
opuid mediumint(8) unsigned NOT NULL DEFAULT '0',
opname varchar(15) NOT NULL DEFAULT '',
optime int(10) unsigned NOT NULL DEFAULT '0',
opresult varchar(255) NOT NULL DEFAULT '',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY urlkey (urlkey),
KEY fid (fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_searchindex;
CREATE TABLE pre_common_searchindex (
searchid int(10) unsigned NOT NULL AUTO_INCREMENT,
srchmod tinyint(3) unsigned NOT NULL,
keywords varchar(255) NOT NULL DEFAULT '',
searchstring text NOT NULL,
useip varchar(15) NOT NULL DEFAULT '',
uid mediumint(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
threadsortid smallint(6) unsigned NOT NULL DEFAULT '0',
num smallint(6) unsigned NOT NULL DEFAULT '0',
ids text NOT NULL,
PRIMARY KEY (searchid),
KEY srchmod (srchmod)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_seccheck;
CREATE TABLE pre_common_seccheck (
ssid int(10) NOT NULL AUTO_INCREMENT,
dateline int(10) NOT NULL,
`code` char(6) NOT NULL,
succeed tinyint(1) NOT NULL,
verified tinyint(1) NOT NULL,
PRIMARY KEY (ssid),
KEY dateline (dateline),
KEY succeed (succeed),
KEY verified (verified)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_common_secquestion;
CREATE TABLE pre_common_secquestion (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) unsigned NOT NULL,
question text NOT NULL,
answer varchar(255) NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_session;
CREATE TABLE pre_common_session (
sid char(6) NOT NULL DEFAULT '',
ip1 tinyint(3) unsigned NOT NULL DEFAULT '0',
ip2 tinyint(3) unsigned NOT NULL DEFAULT '0',
ip3 tinyint(3) unsigned NOT NULL DEFAULT '0',
ip4 tinyint(3) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
groupid smallint(6) unsigned NOT NULL DEFAULT '0',
invisible tinyint(1) NOT NULL DEFAULT '0',
`action` tinyint(1) unsigned NOT NULL DEFAULT '0',
lastactivity int(10) unsigned NOT NULL DEFAULT '0',
lastolupdate int(10) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY sid (sid),
KEY uid (uid)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_common_setting;
CREATE TABLE pre_common_setting (
skey varchar(255) NOT NULL DEFAULT '',
svalue text NOT NULL,
PRIMARY KEY (skey)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_smiley;
CREATE TABLE pre_common_smiley (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
typeid smallint(6) unsigned NOT NULL,
displayorder tinyint(1) NOT NULL DEFAULT '0',
`type` enum('smiley','stamp','stamplist') NOT NULL DEFAULT 'smiley',
`code` varchar(30) NOT NULL DEFAULT '',
url varchar(30) NOT NULL DEFAULT '',
PRIMARY KEY (id),
KEY `type` (`type`,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_sphinxcounter;
CREATE TABLE pre_common_sphinxcounter (
indexid tinyint(1) NOT NULL,
maxid int(10) NOT NULL,
PRIMARY KEY (indexid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_stat;
CREATE TABLE pre_common_stat (
daytime int(10) unsigned NOT NULL DEFAULT '0',
login int(10) unsigned NOT NULL DEFAULT '0',
mobilelogin int(10) unsigned NOT NULL DEFAULT '0',
connectlogin int(10) unsigned NOT NULL DEFAULT '0',
register int(10) unsigned NOT NULL DEFAULT '0',
invite int(10) unsigned NOT NULL DEFAULT '0',
appinvite int(10) unsigned NOT NULL DEFAULT '0',
doing int(10) unsigned NOT NULL DEFAULT '0',
blog int(10) unsigned NOT NULL DEFAULT '0',
pic int(10) unsigned NOT NULL DEFAULT '0',
poll int(10) unsigned NOT NULL DEFAULT '0',
activity int(10) unsigned NOT NULL DEFAULT '0',
`share` int(10) unsigned NOT NULL DEFAULT '0',
thread int(10) unsigned NOT NULL DEFAULT '0',
docomment int(10) unsigned NOT NULL DEFAULT '0',
blogcomment int(10) unsigned NOT NULL DEFAULT '0',
piccomment int(10) unsigned NOT NULL DEFAULT '0',
sharecomment int(10) unsigned NOT NULL DEFAULT '0',
reward int(10) unsigned NOT NULL DEFAULT '0',
debate int(10) unsigned NOT NULL DEFAULT '0',
trade int(10) unsigned NOT NULL DEFAULT '0',
`group` int(10) unsigned NOT NULL DEFAULT '0',
groupjoin int(10) unsigned NOT NULL DEFAULT '0',
groupthread int(10) unsigned NOT NULL DEFAULT '0',
grouppost int(10) unsigned NOT NULL DEFAULT '0',
post int(10) unsigned NOT NULL DEFAULT '0',
wall int(10) unsigned NOT NULL DEFAULT '0',
poke int(10) unsigned NOT NULL DEFAULT '0',
click int(10) unsigned NOT NULL DEFAULT '0',
sendpm int(10) unsigned NOT NULL DEFAULT '0',
friend int(10) unsigned NOT NULL DEFAULT '0',
addfriend int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (daytime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_statuser;
CREATE TABLE pre_common_statuser (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
daytime int(10) unsigned NOT NULL DEFAULT '0',
`type` char(20) NOT NULL DEFAULT '',
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_style;
CREATE TABLE pre_common_style (
styleid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL DEFAULT '',
available tinyint(1) NOT NULL DEFAULT '1',
templateid smallint(6) unsigned NOT NULL DEFAULT '0',
extstyle varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (styleid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_stylevar;
CREATE TABLE pre_common_stylevar (
stylevarid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
styleid smallint(6) unsigned NOT NULL DEFAULT '0',
variable text NOT NULL,
substitute text NOT NULL,
PRIMARY KEY (stylevarid),
KEY styleid (styleid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_syscache;
CREATE TABLE pre_common_syscache (
cname varchar(32) NOT NULL,
ctype tinyint(3) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
`data` mediumblob NOT NULL,
PRIMARY KEY (cname)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_tag;
CREATE TABLE pre_common_tag (
tagid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
tagname char(20) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (tagid),
KEY tagname (tagname),
KEY `status` (`status`,tagid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_tagitem;
CREATE TABLE pre_common_tagitem (
tagid mediumint(8) unsigned NOT NULL DEFAULT '0',
itemid mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype char(10) NOT NULL DEFAULT '',
UNIQUE KEY item (tagid,itemid,idtype),
KEY idtype (idtype,itemid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_task;
CREATE TABLE pre_common_task (
taskid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
relatedtaskid smallint(6) unsigned NOT NULL DEFAULT '0',
available tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(50) NOT NULL DEFAULT '',
description text NOT NULL,
icon varchar(150) NOT NULL DEFAULT '',
applicants mediumint(8) unsigned NOT NULL DEFAULT '0',
achievers mediumint(8) unsigned NOT NULL DEFAULT '0',
tasklimits mediumint(8) unsigned NOT NULL DEFAULT '0',
applyperm text NOT NULL,
scriptname varchar(50) NOT NULL DEFAULT '',
starttime int(10) unsigned NOT NULL DEFAULT '0',
endtime int(10) unsigned NOT NULL DEFAULT '0',
period int(10) unsigned NOT NULL DEFAULT '0',
periodtype tinyint(1) NOT NULL DEFAULT '0',
reward enum('credit','magic','medal','invite','group') NOT NULL DEFAULT 'credit',
prize varchar(15) NOT NULL DEFAULT '',
bonus int(10) NOT NULL DEFAULT '0',
displayorder smallint(6) unsigned NOT NULL DEFAULT '0',
version varchar(15) NOT NULL DEFAULT '',
PRIMARY KEY (taskid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_taskvar;
CREATE TABLE pre_common_taskvar (
taskvarid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
taskid smallint(6) unsigned NOT NULL DEFAULT '0',
sort enum('apply','complete') NOT NULL DEFAULT 'complete',
`name` varchar(100) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
variable varchar(40) NOT NULL DEFAULT '',
`type` varchar(20) NOT NULL DEFAULT 'text',
`value` text NOT NULL,
PRIMARY KEY (taskvarid),
KEY taskid (taskid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_template;
CREATE TABLE pre_common_template (
templateid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`directory` varchar(100) NOT NULL DEFAULT '',
copyright varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (templateid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_template_block;
CREATE TABLE pre_common_template_block (
targettplname varchar(100) NOT NULL DEFAULT '',
tpldirectory varchar(80) NOT NULL DEFAULT '',
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (targettplname,tpldirectory,bid),
KEY bid (bid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_template_permission;
CREATE TABLE pre_common_template_permission (
targettplname varchar(100) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
allowmanage tinyint(1) NOT NULL DEFAULT '0',
allowrecommend tinyint(1) NOT NULL DEFAULT '0',
needverify tinyint(1) NOT NULL DEFAULT '0',
inheritedtplname varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (targettplname,uid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_uin_black;
CREATE TABLE pre_common_uin_black (
uin char(40) NOT NULL,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uin),
UNIQUE KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_usergroup;
CREATE TABLE pre_common_usergroup (
groupid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
radminid tinyint(3) NOT NULL DEFAULT '0',
`type` enum('system','special','member') NOT NULL DEFAULT 'member',
system varchar(255) NOT NULL DEFAULT 'private',
grouptitle varchar(255) NOT NULL DEFAULT '',
creditshigher int(10) NOT NULL DEFAULT '0',
creditslower int(10) NOT NULL DEFAULT '0',
stars tinyint(3) NOT NULL DEFAULT '0',
color varchar(255) NOT NULL DEFAULT '',
icon varchar(255) NOT NULL DEFAULT '',
allowvisit tinyint(1) NOT NULL DEFAULT '0',
allowsendpm tinyint(1) NOT NULL DEFAULT '1',
allowinvite tinyint(1) NOT NULL DEFAULT '0',
allowmailinvite tinyint(1) NOT NULL DEFAULT '0',
maxinvitenum tinyint(3) unsigned NOT NULL DEFAULT '0',
inviteprice smallint(6) unsigned NOT NULL DEFAULT '0',
maxinviteday smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (groupid),
KEY creditsrange (creditshigher,creditslower)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_usergroup_field;
CREATE TABLE pre_common_usergroup_field (
groupid smallint(6) unsigned NOT NULL,
readaccess tinyint(3) unsigned NOT NULL DEFAULT '0',
allowpost tinyint(1) NOT NULL DEFAULT '0',
allowreply tinyint(1) NOT NULL DEFAULT '0',
allowpostpoll tinyint(1) NOT NULL DEFAULT '0',
allowpostreward tinyint(1) NOT NULL DEFAULT '0',
allowposttrade tinyint(1) NOT NULL DEFAULT '0',
allowpostactivity tinyint(1) NOT NULL DEFAULT '0',
allowdirectpost tinyint(1) NOT NULL DEFAULT '0',
allowgetattach tinyint(1) NOT NULL DEFAULT '0',
allowgetimage tinyint(1) NOT NULL DEFAULT '0',
allowpostattach tinyint(1) NOT NULL DEFAULT '0',
allowpostimage tinyint(1) NOT NULL DEFAULT '0',
allowvote tinyint(1) NOT NULL DEFAULT '0',
allowsearch tinyint(1) NOT NULL DEFAULT '0',
allowcstatus tinyint(1) NOT NULL DEFAULT '0',
allowinvisible tinyint(1) NOT NULL DEFAULT '0',
allowtransfer tinyint(1) NOT NULL DEFAULT '0',
allowsetreadperm tinyint(1) NOT NULL DEFAULT '0',
allowsetattachperm tinyint(1) NOT NULL DEFAULT '0',
allowposttag tinyint(1) NOT NULL DEFAULT '0',
allowhidecode tinyint(1) NOT NULL DEFAULT '0',
allowhtml tinyint(1) NOT NULL DEFAULT '0',
allowanonymous tinyint(1) NOT NULL DEFAULT '0',
allowsigbbcode tinyint(1) NOT NULL DEFAULT '0',
allowsigimgcode tinyint(1) NOT NULL DEFAULT '0',
allowmagics tinyint(1) unsigned NOT NULL,
disableperiodctrl tinyint(1) NOT NULL DEFAULT '0',
reasonpm tinyint(1) NOT NULL DEFAULT '0',
maxprice smallint(6) unsigned NOT NULL DEFAULT '0',
maxsigsize smallint(6) unsigned NOT NULL DEFAULT '0',
maxattachsize int(10) unsigned NOT NULL DEFAULT '0',
maxsizeperday int(10) unsigned NOT NULL DEFAULT '0',
maxthreadsperhour tinyint(3) unsigned NOT NULL DEFAULT '0',
maxpostsperhour tinyint(3) unsigned NOT NULL DEFAULT '0',
attachextensions char(100) NOT NULL DEFAULT '',
raterange char(150) NOT NULL DEFAULT '',
loginreward char(150) NOT NULL DEFAULT '',
mintradeprice smallint(6) unsigned NOT NULL DEFAULT '1',
maxtradeprice smallint(6) unsigned NOT NULL DEFAULT '0',
minrewardprice smallint(6) unsigned NOT NULL DEFAULT '1',
maxrewardprice smallint(6) unsigned NOT NULL DEFAULT '0',
magicsdiscount tinyint(1) NOT NULL,
maxmagicsweight smallint(6) unsigned NOT NULL,
allowpostdebate tinyint(1) NOT NULL DEFAULT '0',
tradestick tinyint(1) unsigned NOT NULL,
exempt tinyint(1) unsigned NOT NULL,
maxattachnum smallint(6) NOT NULL DEFAULT '0',
allowposturl tinyint(1) NOT NULL DEFAULT '3',
allowrecommend tinyint(1) unsigned NOT NULL DEFAULT '1',
allowpostrushreply tinyint(1) NOT NULL DEFAULT '0',
maxfriendnum smallint(6) unsigned NOT NULL DEFAULT '0',
maxspacesize int(10) unsigned NOT NULL DEFAULT '0',
allowcomment tinyint(1) NOT NULL DEFAULT '0',
allowcommentarticle smallint(6) NOT NULL DEFAULT '0',
searchinterval smallint(6) unsigned NOT NULL DEFAULT '0',
searchignore tinyint(1) NOT NULL DEFAULT '0',
allowblog tinyint(1) NOT NULL DEFAULT '0',
allowdoing tinyint(1) NOT NULL DEFAULT '0',
allowupload tinyint(1) NOT NULL DEFAULT '0',
allowshare tinyint(1) NOT NULL DEFAULT '0',
allowblogmod tinyint(1) unsigned NOT NULL DEFAULT '0',
allowdoingmod tinyint(1) unsigned NOT NULL DEFAULT '0',
allowuploadmod tinyint(1) unsigned NOT NULL DEFAULT '0',
allowsharemod tinyint(1) unsigned NOT NULL DEFAULT '0',
allowcss tinyint(1) NOT NULL DEFAULT '0',
allowpoke tinyint(1) NOT NULL DEFAULT '0',
allowfriend tinyint(1) NOT NULL DEFAULT '0',
allowclick tinyint(1) NOT NULL DEFAULT '0',
allowmagic tinyint(1) NOT NULL DEFAULT '0',
allowstat tinyint(1) NOT NULL DEFAULT '0',
allowstatdata tinyint(1) NOT NULL DEFAULT '0',
videophotoignore tinyint(1) NOT NULL DEFAULT '0',
allowviewvideophoto tinyint(1) NOT NULL DEFAULT '0',
allowmyop tinyint(1) NOT NULL DEFAULT '0',
magicdiscount tinyint(1) NOT NULL DEFAULT '0',
domainlength smallint(6) unsigned NOT NULL DEFAULT '0',
seccode tinyint(1) NOT NULL DEFAULT '1',
disablepostctrl tinyint(1) NOT NULL DEFAULT '0',
allowbuildgroup tinyint(1) unsigned NOT NULL DEFAULT '0',
allowgroupdirectpost tinyint(1) unsigned NOT NULL DEFAULT '0',
allowgroupposturl tinyint(1) unsigned NOT NULL DEFAULT '0',
edittimelimit smallint(6) unsigned NOT NULL DEFAULT '0',
allowpostarticle tinyint(1) NOT NULL DEFAULT '0',
allowdownlocalimg tinyint(1) NOT NULL DEFAULT '0',
allowdownremoteimg tinyint(1) NOT NULL DEFAULT '0',
allowpostarticlemod tinyint(1) unsigned NOT NULL DEFAULT '0',
allowspacediyhtml tinyint(1) NOT NULL DEFAULT '0',
allowspacediybbcode tinyint(1) NOT NULL DEFAULT '0',
allowspacediyimgcode tinyint(1) NOT NULL DEFAULT '0',
allowcommentpost tinyint(1) NOT NULL DEFAULT '2',
allowcommentitem tinyint(1) NOT NULL DEFAULT '0',
allowcommentreply tinyint(1) NOT NULL DEFAULT '0',
allowreplycredit tinyint(1) NOT NULL DEFAULT '0',
ignorecensor tinyint(1) unsigned NOT NULL DEFAULT '0',
allowsendallpm tinyint(1) unsigned NOT NULL DEFAULT '0',
allowsendpmmaxnum smallint(6) unsigned NOT NULL DEFAULT '0',
maximagesize mediumint(8) unsigned NOT NULL DEFAULT '0',
allowmediacode tinyint(1) NOT NULL DEFAULT '0',
allowbegincode tinyint(1) unsigned NOT NULL DEFAULT '0',
allowat smallint(6) unsigned NOT NULL DEFAULT '0',
allowsetpublishdate tinyint(1) unsigned NOT NULL DEFAULT '0',
allowfollowcollection tinyint(1) unsigned NOT NULL DEFAULT '0',
allowcommentcollection tinyint(1) unsigned NOT NULL DEFAULT '0',
allowcreatecollection smallint(6) unsigned NOT NULL DEFAULT '0',
forcesecques tinyint(1) unsigned NOT NULL DEFAULT '0',
forcelogin tinyint(1) unsigned NOT NULL DEFAULT '0',
closead tinyint(1) unsigned NOT NULL DEFAULT '0',
buildgroupcredits smallint(6) unsigned NOT NULL DEFAULT '0',
allowimgcontent tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (groupid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_visit;
CREATE TABLE pre_common_visit (
ip int(10) unsigned NOT NULL DEFAULT '0',
`view` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (ip),
KEY ip (ip,`view`)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_common_word;
CREATE TABLE pre_common_word (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
admin varchar(15) NOT NULL DEFAULT '',
`type` smallint(6) NOT NULL DEFAULT '1',
find varchar(255) NOT NULL DEFAULT '',
replacement varchar(255) NOT NULL DEFAULT '',
extra varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_common_word_type;
CREATE TABLE pre_common_word_type (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
typename varchar(15) NOT NULL DEFAULT '',
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_connect_disktask;
CREATE TABLE pre_connect_disktask (
taskid int(10) unsigned NOT NULL AUTO_INCREMENT,
aid int(10) unsigned NOT NULL DEFAULT '0',
uid int(10) unsigned NOT NULL DEFAULT '0',
openid char(32) NOT NULL DEFAULT '',
filename varchar(255) NOT NULL DEFAULT '',
verifycode char(32) NOT NULL DEFAULT '',
`status` smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
downloadtime int(10) unsigned NOT NULL DEFAULT '0',
extra text,
PRIMARY KEY (taskid),
KEY openid (openid),
KEY `status` (`status`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_connect_feedlog;
CREATE TABLE pre_connect_feedlog (
flid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
publishtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
lastpublished int(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (flid),
UNIQUE KEY tid (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_connect_memberbindlog;
CREATE TABLE pre_connect_memberbindlog (
mblid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
uin char(40) NOT NULL,
`type` tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (mblid),
KEY uid (uid),
KEY uin (uin),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_connect_postfeedlog;
CREATE TABLE pre_connect_postfeedlog (
flid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
publishtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
lastpublished int(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (flid),
UNIQUE KEY pid (pid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_connect_tthreadlog;
CREATE TABLE pre_connect_tthreadlog (
twid char(16) NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
conopenid char(32) NOT NULL,
pagetime int(10) unsigned DEFAULT '0',
lasttwid char(16) DEFAULT NULL,
nexttime int(10) unsigned DEFAULT '0',
updatetime int(10) unsigned DEFAULT '0',
dateline int(10) unsigned DEFAULT '0',
PRIMARY KEY (twid),
KEY nexttime (tid,nexttime),
KEY updatetime (tid,updatetime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_access;
CREATE TABLE pre_forum_access (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
allowview tinyint(1) NOT NULL DEFAULT '0',
allowpost tinyint(1) NOT NULL DEFAULT '0',
allowreply tinyint(1) NOT NULL DEFAULT '0',
allowgetattach tinyint(1) NOT NULL DEFAULT '0',
allowgetimage tinyint(1) NOT NULL DEFAULT '0',
allowpostattach tinyint(1) NOT NULL DEFAULT '0',
allowpostimage tinyint(1) NOT NULL DEFAULT '0',
adminuser mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fid),
KEY listorder (fid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_activity;
CREATE TABLE pre_forum_activity (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
cost mediumint(8) unsigned NOT NULL DEFAULT '0',
starttimefrom int(10) unsigned NOT NULL DEFAULT '0',
starttimeto int(10) unsigned NOT NULL DEFAULT '0',
place varchar(255) NOT NULL DEFAULT '',
class varchar(255) NOT NULL DEFAULT '',
gender tinyint(1) NOT NULL DEFAULT '0',
number smallint(5) unsigned NOT NULL DEFAULT '0',
applynumber smallint(5) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
ufield text NOT NULL,
credit smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid),
KEY uid (uid,starttimefrom),
KEY starttimefrom (starttimefrom),
KEY expiration (expiration),
KEY applynumber (applynumber)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_activityapply;
CREATE TABLE pre_forum_activityapply (
applyid int(10) unsigned NOT NULL AUTO_INCREMENT,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
message varchar(255) NOT NULL DEFAULT '',
verified tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
payment mediumint(8) NOT NULL DEFAULT '0',
ufielddata text NOT NULL,
PRIMARY KEY (applyid),
KEY uid (uid),
KEY tid (tid),
KEY dateline (tid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_announcement;
CREATE TABLE pre_forum_announcement (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
author varchar(15) NOT NULL DEFAULT '',
`subject` varchar(255) NOT NULL DEFAULT '',
`type` tinyint(1) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
starttime int(10) unsigned NOT NULL DEFAULT '0',
endtime int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
groups text NOT NULL,
PRIMARY KEY (id),
KEY timespan (starttime,endtime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment;
CREATE TABLE pre_forum_attachment (
aid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
tableid tinyint(1) unsigned NOT NULL DEFAULT '0',
downloads mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_0;
CREATE TABLE pre_forum_attachment_0 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_1;
CREATE TABLE pre_forum_attachment_1 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_2;
CREATE TABLE pre_forum_attachment_2 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_3;
CREATE TABLE pre_forum_attachment_3 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_4;
CREATE TABLE pre_forum_attachment_4 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_5;
CREATE TABLE pre_forum_attachment_5 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_6;
CREATE TABLE pre_forum_attachment_6 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_7;
CREATE TABLE pre_forum_attachment_7 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_8;
CREATE TABLE pre_forum_attachment_8 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_9;
CREATE TABLE pre_forum_attachment_9 (
aid mediumint(8) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
picid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY tid (tid),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_exif;
CREATE TABLE pre_forum_attachment_exif (
aid mediumint(8) unsigned NOT NULL,
exif text NOT NULL,
PRIMARY KEY (aid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachment_unused;
CREATE TABLE pre_forum_attachment_unused (
aid mediumint(8) unsigned NOT NULL,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_attachtype;
CREATE TABLE pre_forum_attachtype (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
extension char(12) NOT NULL DEFAULT '',
maxsize int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY fid (fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_bbcode;
CREATE TABLE pre_forum_bbcode (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
tag varchar(100) NOT NULL DEFAULT '',
icon varchar(255) NOT NULL,
replacement text NOT NULL,
example varchar(255) NOT NULL DEFAULT '',
explanation text NOT NULL,
params tinyint(1) unsigned NOT NULL DEFAULT '1',
prompt text NOT NULL,
nest tinyint(3) unsigned NOT NULL DEFAULT '1',
displayorder tinyint(3) NOT NULL DEFAULT '0',
perm text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collection;
CREATE TABLE pre_forum_collection (
ctid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
`name` varchar(50) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
follownum mediumint(8) unsigned NOT NULL DEFAULT '0',
threadnum mediumint(8) unsigned NOT NULL DEFAULT '0',
commentnum mediumint(8) unsigned NOT NULL DEFAULT '0',
`desc` varchar(255) NOT NULL DEFAULT '',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
rate float NOT NULL DEFAULT '0',
ratenum mediumint(8) unsigned NOT NULL DEFAULT '0',
lastpost mediumint(8) unsigned NOT NULL DEFAULT '0',
lastsubject varchar(80) NOT NULL DEFAULT '',
lastposttime int(10) unsigned NOT NULL DEFAULT '0',
lastposter varchar(15) NOT NULL DEFAULT '',
lastvisit int(10) unsigned NOT NULL DEFAULT '0',
keyword varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (ctid),
KEY dateline (dateline),
KEY hotcollection (threadnum,lastupdate),
KEY follownum (follownum),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectioncomment;
CREATE TABLE pre_forum_collectioncomment (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
ctid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
message text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
useip varchar(16) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
rate float NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY ctid (ctid,dateline),
KEY userrate (ctid,uid,rate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectionfollow;
CREATE TABLE pre_forum_collectionfollow (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
ctid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
lastvisit int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,ctid),
KEY ctid (ctid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectioninvite;
CREATE TABLE pre_forum_collectioninvite (
ctid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (ctid,uid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectionrelated;
CREATE TABLE pre_forum_collectionrelated (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
collection text NOT NULL,
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectionteamworker;
CREATE TABLE pre_forum_collectionteamworker (
ctid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`name` varchar(50) NOT NULL DEFAULT '',
username varchar(15) NOT NULL DEFAULT '',
lastvisit int(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (ctid,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_collectionthread;
CREATE TABLE pre_forum_collectionthread (
ctid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
reason varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (ctid,tid),
KEY ctid (ctid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_creditslog;
CREATE TABLE pre_forum_creditslog (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fromto char(15) NOT NULL DEFAULT '',
sendcredits tinyint(1) NOT NULL DEFAULT '0',
receivecredits tinyint(1) NOT NULL DEFAULT '0',
send int(10) unsigned NOT NULL DEFAULT '0',
receive int(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
operation char(3) NOT NULL DEFAULT '',
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_debate;
CREATE TABLE pre_forum_debate (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
starttime int(10) unsigned NOT NULL DEFAULT '0',
endtime int(10) unsigned NOT NULL DEFAULT '0',
affirmdebaters mediumint(8) unsigned NOT NULL DEFAULT '0',
negadebaters mediumint(8) unsigned NOT NULL DEFAULT '0',
affirmvotes mediumint(8) unsigned NOT NULL DEFAULT '0',
negavotes mediumint(8) unsigned NOT NULL DEFAULT '0',
umpire varchar(15) NOT NULL DEFAULT '',
winner tinyint(1) NOT NULL DEFAULT '0',
bestdebater varchar(50) NOT NULL DEFAULT '',
affirmpoint text NOT NULL,
negapoint text NOT NULL,
umpirepoint text NOT NULL,
affirmvoterids text NOT NULL,
negavoterids text NOT NULL,
affirmreplies mediumint(8) unsigned NOT NULL,
negareplies mediumint(8) unsigned NOT NULL,
PRIMARY KEY (tid),
KEY uid (uid,starttime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_debatepost;
CREATE TABLE pre_forum_debatepost (
pid int(10) unsigned NOT NULL DEFAULT '0',
stand tinyint(1) NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
voters mediumint(10) unsigned NOT NULL DEFAULT '0',
voterids text NOT NULL,
PRIMARY KEY (pid),
KEY pid (pid,stand),
KEY tid (tid,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_faq;
CREATE TABLE pre_forum_faq (
id smallint(6) NOT NULL AUTO_INCREMENT,
fpid smallint(6) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
identifier varchar(20) NOT NULL,
keyword varchar(50) NOT NULL,
title varchar(50) NOT NULL,
message text NOT NULL,
PRIMARY KEY (id),
KEY displayplay (displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_filter_post;
CREATE TABLE pre_forum_filter_post (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
postlength int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid,pid),
KEY tid (tid,postlength)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_forum;
CREATE TABLE pre_forum_forum (
fid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
fup mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` enum('group','forum','sub') NOT NULL DEFAULT 'forum',
`name` char(50) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
styleid smallint(6) unsigned NOT NULL DEFAULT '0',
threads mediumint(8) unsigned NOT NULL DEFAULT '0',
posts mediumint(8) unsigned NOT NULL DEFAULT '0',
todayposts mediumint(8) unsigned NOT NULL DEFAULT '0',
yesterdayposts mediumint(8) unsigned NOT NULL DEFAULT '0',
rank smallint(6) unsigned NOT NULL DEFAULT '0',
oldrank smallint(6) unsigned NOT NULL DEFAULT '0',
lastpost char(110) NOT NULL DEFAULT '',
domain char(15) NOT NULL DEFAULT '',
allowsmilies tinyint(1) NOT NULL DEFAULT '0',
allowhtml tinyint(1) NOT NULL DEFAULT '0',
allowbbcode tinyint(1) NOT NULL DEFAULT '0',
allowimgcode tinyint(1) NOT NULL DEFAULT '0',
allowmediacode tinyint(1) NOT NULL DEFAULT '0',
allowanonymous tinyint(1) NOT NULL DEFAULT '0',
allowpostspecial smallint(6) unsigned NOT NULL DEFAULT '0',
allowspecialonly tinyint(1) unsigned NOT NULL DEFAULT '0',
allowappend tinyint(1) unsigned NOT NULL DEFAULT '0',
alloweditrules tinyint(1) NOT NULL DEFAULT '0',
allowfeed tinyint(1) NOT NULL DEFAULT '1',
allowside tinyint(1) NOT NULL DEFAULT '0',
recyclebin tinyint(1) NOT NULL DEFAULT '0',
modnewposts tinyint(1) NOT NULL DEFAULT '0',
jammer tinyint(1) NOT NULL DEFAULT '0',
disablewatermark tinyint(1) NOT NULL DEFAULT '0',
inheritedmod tinyint(1) NOT NULL DEFAULT '0',
autoclose smallint(6) NOT NULL DEFAULT '0',
forumcolumns tinyint(3) unsigned NOT NULL DEFAULT '0',
catforumcolumns tinyint(3) unsigned NOT NULL DEFAULT '0',
threadcaches tinyint(1) NOT NULL DEFAULT '0',
alloweditpost tinyint(1) unsigned NOT NULL DEFAULT '1',
`simple` tinyint(1) unsigned NOT NULL DEFAULT '0',
modworks tinyint(1) unsigned NOT NULL DEFAULT '0',
allowglobalstick tinyint(1) NOT NULL DEFAULT '1',
`level` smallint(6) NOT NULL DEFAULT '0',
commoncredits int(10) unsigned NOT NULL DEFAULT '0',
archive tinyint(1) NOT NULL DEFAULT '0',
recommend smallint(6) unsigned NOT NULL DEFAULT '0',
favtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
sharetimes mediumint(8) unsigned NOT NULL DEFAULT '0',
disablethumb tinyint(1) NOT NULL DEFAULT '0',
disablecollect tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (fid),
KEY forum (`status`,`type`,displayorder),
KEY fup_type (fup,`type`,displayorder),
KEY fup (fup)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_forum_threadtable;
CREATE TABLE pre_forum_forum_threadtable (
fid smallint(6) unsigned NOT NULL,
threadtableid smallint(6) unsigned NOT NULL,
threads int(11) unsigned NOT NULL DEFAULT '0',
posts int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (fid,threadtableid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_forumfield;
CREATE TABLE pre_forum_forumfield (
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
description text NOT NULL,
`password` varchar(12) NOT NULL DEFAULT '',
icon varchar(255) NOT NULL DEFAULT '',
redirect varchar(255) NOT NULL DEFAULT '',
attachextensions varchar(255) NOT NULL DEFAULT '',
creditspolicy mediumtext NOT NULL,
formulaperm text NOT NULL,
moderators text NOT NULL,
rules text NOT NULL,
threadtypes text NOT NULL,
threadsorts text NOT NULL,
viewperm text NOT NULL,
postperm text NOT NULL,
replyperm text NOT NULL,
getattachperm text NOT NULL,
postattachperm text NOT NULL,
postimageperm text NOT NULL,
spviewperm text NOT NULL,
seotitle text NOT NULL,
keywords text NOT NULL,
seodescription text NOT NULL,
supe_pushsetting text NOT NULL,
modrecommend text NOT NULL,
threadplugin text NOT NULL,
replybg text NOT NULL,
extra text NOT NULL,
jointype tinyint(1) NOT NULL DEFAULT '0',
gviewperm tinyint(1) unsigned NOT NULL DEFAULT '0',
membernum smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
activity int(10) unsigned NOT NULL DEFAULT '0',
founderuid mediumint(8) unsigned NOT NULL DEFAULT '0',
foundername varchar(255) NOT NULL DEFAULT '',
banner varchar(255) NOT NULL DEFAULT '',
groupnum smallint(6) unsigned NOT NULL DEFAULT '0',
commentitem text NOT NULL,
relatedgroup text NOT NULL,
picstyle tinyint(1) NOT NULL DEFAULT '0',
widthauto tinyint(1) NOT NULL DEFAULT '0',
noantitheft tinyint(1) NOT NULL DEFAULT '0',
noforumhidewater tinyint(1) NOT NULL DEFAULT '0',
noforumrecommend tinyint(1) NOT NULL DEFAULT '0',
livetid mediumint(8) unsigned NOT NULL DEFAULT '0',
price mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (fid),
KEY membernum (membernum),
KEY dateline (dateline),
KEY lastupdate (lastupdate),
KEY activity (activity)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_forumrecommend;
CREATE TABLE pre_forum_forumrecommend (
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL,
typeid smallint(6) NOT NULL,
displayorder tinyint(1) NOT NULL,
`subject` char(80) NOT NULL,
author char(15) NOT NULL,
authorid mediumint(8) NOT NULL,
moderatorid mediumint(8) NOT NULL,
expiration int(10) unsigned NOT NULL,
position tinyint(1) NOT NULL DEFAULT '0',
highlight tinyint(1) NOT NULL DEFAULT '0',
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
filename char(100) NOT NULL DEFAULT '',
PRIMARY KEY (tid),
KEY displayorder (fid,displayorder),
KEY position (position)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_groupcreditslog;
CREATE TABLE pre_forum_groupcreditslog (
fid mediumint(8) unsigned NOT NULL,
uid mediumint(8) unsigned NOT NULL,
logdate int(8) NOT NULL DEFAULT '0',
PRIMARY KEY (fid,uid,logdate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_groupfield;
CREATE TABLE pre_forum_groupfield (
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
privacy tinyint(1) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`type` varchar(255) NOT NULL,
`data` text NOT NULL,
UNIQUE KEY `types` (fid,`type`),
KEY fid (fid),
KEY `type` (`type`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_groupinvite;
CREATE TABLE pre_forum_groupinvite (
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
inviteuid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY ids (fid,inviteuid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_grouplevel;
CREATE TABLE pre_forum_grouplevel (
levelid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`type` enum('special','default') NOT NULL DEFAULT 'default',
leveltitle varchar(255) NOT NULL DEFAULT '',
creditshigher int(10) NOT NULL DEFAULT '0',
creditslower int(10) NOT NULL DEFAULT '0',
icon varchar(255) NOT NULL DEFAULT '',
creditspolicy text NOT NULL,
postpolicy text NOT NULL,
specialswitch text NOT NULL,
PRIMARY KEY (levelid),
KEY creditsrange (creditshigher,creditslower)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_groupuser;
CREATE TABLE pre_forum_groupuser (
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL,
`level` tinyint(3) unsigned NOT NULL DEFAULT '0',
threads mediumint(8) unsigned NOT NULL DEFAULT '0',
replies mediumint(8) unsigned NOT NULL DEFAULT '0',
joindateline int(10) unsigned NOT NULL DEFAULT '0',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
privacy tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (fid,uid),
KEY uid_lastupdate (uid,lastupdate),
KEY userlist (fid,`level`,lastupdate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_hotreply_member;
CREATE TABLE pre_forum_hotreply_member (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
attitude tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (pid,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_hotreply_number;
CREATE TABLE pre_forum_hotreply_number (
pid int(10) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
support smallint(6) unsigned NOT NULL DEFAULT '0',
`against` smallint(6) unsigned NOT NULL DEFAULT '0',
total mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (pid),
KEY tid (tid,total)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_imagetype;
CREATE TABLE pre_forum_imagetype (
typeid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
available tinyint(1) NOT NULL DEFAULT '0',
`name` char(20) NOT NULL,
`type` enum('smiley','icon','avatar') NOT NULL DEFAULT 'smiley',
displayorder tinyint(3) NOT NULL DEFAULT '0',
`directory` char(100) NOT NULL,
PRIMARY KEY (typeid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_medal;
CREATE TABLE pre_forum_medal (
medalid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL DEFAULT '',
available tinyint(1) NOT NULL DEFAULT '0',
image varchar(255) NOT NULL DEFAULT '',
`type` tinyint(1) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
description varchar(255) NOT NULL,
expiration smallint(6) unsigned NOT NULL DEFAULT '0',
permission mediumtext NOT NULL,
credit tinyint(1) unsigned NOT NULL DEFAULT '0',
price mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (medalid),
KEY displayorder (displayorder),
KEY available (available,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_medallog;
CREATE TABLE pre_forum_medallog (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
medalid smallint(6) unsigned NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `type` (`type`),
KEY `status` (`status`,expiration),
KEY uid (uid,medalid,`type`),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_memberrecommend;
CREATE TABLE pre_forum_memberrecommend (
tid mediumint(8) unsigned NOT NULL,
recommenduid mediumint(8) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
KEY tid (tid),
KEY uid (recommenduid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_moderator;
CREATE TABLE pre_forum_moderator (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
inherited tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_modwork;
CREATE TABLE pre_forum_modwork (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
modaction char(3) NOT NULL DEFAULT '',
dateline date NOT NULL DEFAULT '2006-01-01',
count smallint(6) unsigned NOT NULL DEFAULT '0',
posts smallint(6) unsigned NOT NULL DEFAULT '0',
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_newthread;
CREATE TABLE pre_forum_newthread (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid),
KEY fid (fid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_onlinelist;
CREATE TABLE pre_forum_onlinelist (
groupid smallint(6) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
title varchar(30) NOT NULL DEFAULT '',
url varchar(30) NOT NULL DEFAULT ''
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_order;
CREATE TABLE pre_forum_order (
orderid char(32) NOT NULL DEFAULT '',
`status` char(3) NOT NULL DEFAULT '',
buyer char(50) NOT NULL DEFAULT '',
admin char(15) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
amount int(10) unsigned NOT NULL DEFAULT '0',
price float(7,2) unsigned NOT NULL DEFAULT '0.00',
submitdate int(10) unsigned NOT NULL DEFAULT '0',
confirmdate int(10) unsigned NOT NULL DEFAULT '0',
email char(40) NOT NULL DEFAULT '',
ip char(15) NOT NULL DEFAULT '',
UNIQUE KEY orderid (orderid),
KEY submitdate (submitdate),
KEY uid (uid,submitdate)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_poll;
CREATE TABLE pre_forum_poll (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
overt tinyint(1) NOT NULL DEFAULT '0',
multiple tinyint(1) NOT NULL DEFAULT '0',
visible tinyint(1) NOT NULL DEFAULT '0',
maxchoices tinyint(3) unsigned NOT NULL DEFAULT '0',
isimage tinyint(1) NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
pollpreview varchar(255) NOT NULL DEFAULT '',
voters mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_polloption;
CREATE TABLE pre_forum_polloption (
polloptionid int(10) unsigned NOT NULL AUTO_INCREMENT,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
votes mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
polloption varchar(80) NOT NULL DEFAULT '',
voterids mediumtext NOT NULL,
PRIMARY KEY (polloptionid),
KEY tid (tid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_polloption_image;
CREATE TABLE pre_forum_polloption_image (
aid int(10) unsigned NOT NULL AUTO_INCREMENT,
poid int(10) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
width smallint(6) unsigned NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (aid),
KEY poid (poid),
KEY tid (tid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_pollvoter;
CREATE TABLE pre_forum_pollvoter (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
`options` text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
KEY tid (tid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_post;
CREATE TABLE pre_forum_post (
pid int(10) unsigned NOT NULL,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
`first` tinyint(1) NOT NULL DEFAULT '0',
author varchar(15) NOT NULL DEFAULT '',
authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
`subject` varchar(80) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
message mediumtext NOT NULL,
useip varchar(15) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
invisible tinyint(1) NOT NULL DEFAULT '0',
anonymous tinyint(1) NOT NULL DEFAULT '0',
usesig tinyint(1) NOT NULL DEFAULT '0',
htmlon tinyint(1) NOT NULL DEFAULT '0',
bbcodeoff tinyint(1) NOT NULL DEFAULT '0',
smileyoff tinyint(1) NOT NULL DEFAULT '0',
parseurloff tinyint(1) NOT NULL DEFAULT '0',
attachment tinyint(1) NOT NULL DEFAULT '0',
rate smallint(6) NOT NULL DEFAULT '0',
ratetimes tinyint(3) unsigned NOT NULL DEFAULT '0',
`status` int(10) NOT NULL DEFAULT '0',
tags varchar(255) NOT NULL DEFAULT '0',
`comment` tinyint(1) NOT NULL DEFAULT '0',
replycredit int(10) NOT NULL DEFAULT '0',
position int(8) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (tid,position),
UNIQUE KEY pid (pid),
KEY fid (fid),
KEY authorid (authorid,invisible),
KEY dateline (dateline),
KEY invisible (invisible),
KEY displayorder (tid,invisible,dateline),
KEY `first` (tid,`first`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_post_location;
CREATE TABLE pre_forum_post_location (
pid int(10) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned DEFAULT '0',
uid mediumint(8) unsigned DEFAULT '0',
mapx varchar(255) NOT NULL,
mapy varchar(255) NOT NULL,
location varchar(255) NOT NULL,
PRIMARY KEY (pid),
KEY tid (tid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_post_moderate;
CREATE TABLE pre_forum_post_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_post_tableid;
CREATE TABLE pre_forum_post_tableid (
pid int(10) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (pid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_postcache;
CREATE TABLE pre_forum_postcache (
pid int(10) unsigned NOT NULL,
`comment` text NOT NULL,
rate text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (pid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_postcomment;
CREATE TABLE pre_forum_postcomment (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
author varchar(15) NOT NULL DEFAULT '',
authorid mediumint(8) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) NOT NULL DEFAULT '',
score tinyint(1) NOT NULL DEFAULT '0',
useip varchar(15) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
rpid int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY tid (tid),
KEY authorid (authorid),
KEY score (score),
KEY rpid (rpid),
KEY pid (pid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_postlog;
CREATE TABLE pre_forum_postlog (
pid int(10) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid smallint(6) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`action` char(10) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (pid,tid),
KEY fid (fid),
KEY uid (uid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_poststick;
CREATE TABLE pre_forum_poststick (
tid mediumint(8) unsigned NOT NULL,
pid int(10) unsigned NOT NULL,
position int(10) unsigned NOT NULL,
dateline int(10) unsigned NOT NULL,
PRIMARY KEY (tid,pid),
KEY dateline (tid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_promotion;
CREATE TABLE pre_forum_promotion (
ip char(15) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
PRIMARY KEY (ip)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_ratelog;
CREATE TABLE pre_forum_ratelog (
pid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
extcredits tinyint(1) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
score smallint(6) NOT NULL DEFAULT '0',
reason char(40) NOT NULL DEFAULT '',
KEY pid (pid,dateline),
KEY dateline (dateline),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_relatedthread;
CREATE TABLE pre_forum_relatedthread (
tid mediumint(8) NOT NULL DEFAULT '0',
`type` enum('general','trade') NOT NULL DEFAULT 'general',
expiration int(10) NOT NULL DEFAULT '0',
keywords varchar(255) NOT NULL DEFAULT '',
relatedthreads text NOT NULL,
PRIMARY KEY (tid,`type`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_replycredit;
CREATE TABLE pre_forum_replycredit (
tid mediumint(6) unsigned NOT NULL,
extcredits mediumint(6) unsigned NOT NULL DEFAULT '0',
extcreditstype tinyint(1) NOT NULL DEFAULT '0',
times smallint(6) unsigned NOT NULL DEFAULT '0',
membertimes smallint(6) unsigned NOT NULL DEFAULT '0',
random tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_rsscache;
CREATE TABLE pre_forum_rsscache (
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
forum char(50) NOT NULL DEFAULT '',
author char(15) NOT NULL DEFAULT '',
`subject` char(80) NOT NULL DEFAULT '',
description char(255) NOT NULL DEFAULT '',
guidetype char(10) NOT NULL DEFAULT '',
UNIQUE KEY tid (tid),
KEY fid (fid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_sofa;
CREATE TABLE pre_forum_sofa (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid),
KEY ftid (fid,tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_spacecache;
CREATE TABLE pre_forum_spacecache (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
variable varchar(20) NOT NULL,
`value` text NOT NULL,
expiration int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,variable)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_statlog;
CREATE TABLE pre_forum_statlog (
logdate date NOT NULL,
fid mediumint(8) unsigned NOT NULL,
`type` smallint(5) unsigned NOT NULL DEFAULT '0',
`value` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (logdate,fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_thread;
CREATE TABLE pre_forum_thread (
tid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
posttableid smallint(6) unsigned NOT NULL DEFAULT '0',
typeid smallint(6) unsigned NOT NULL DEFAULT '0',
sortid smallint(6) unsigned NOT NULL DEFAULT '0',
readperm tinyint(3) unsigned NOT NULL DEFAULT '0',
price smallint(6) NOT NULL DEFAULT '0',
author char(15) NOT NULL DEFAULT '',
authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
`subject` char(80) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
lastpost int(10) unsigned NOT NULL DEFAULT '0',
lastposter char(15) NOT NULL DEFAULT '',
views int(10) unsigned NOT NULL DEFAULT '0',
replies mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(1) NOT NULL DEFAULT '0',
highlight tinyint(1) NOT NULL DEFAULT '0',
digest tinyint(1) NOT NULL DEFAULT '0',
rate tinyint(1) NOT NULL DEFAULT '0',
special tinyint(1) NOT NULL DEFAULT '0',
attachment tinyint(1) NOT NULL DEFAULT '0',
moderated tinyint(1) NOT NULL DEFAULT '0',
closed mediumint(8) unsigned NOT NULL DEFAULT '0',
stickreply tinyint(1) unsigned NOT NULL DEFAULT '0',
recommends smallint(6) NOT NULL DEFAULT '0',
recommend_add smallint(6) NOT NULL DEFAULT '0',
recommend_sub smallint(6) NOT NULL DEFAULT '0',
heats int(10) unsigned NOT NULL DEFAULT '0',
`status` smallint(6) unsigned NOT NULL DEFAULT '0',
isgroup tinyint(1) NOT NULL DEFAULT '0',
favtimes mediumint(8) NOT NULL DEFAULT '0',
sharetimes mediumint(8) NOT NULL DEFAULT '0',
stamp tinyint(3) NOT NULL DEFAULT '-1',
icon tinyint(3) NOT NULL DEFAULT '-1',
pushedaid mediumint(8) NOT NULL DEFAULT '0',
cover smallint(6) NOT NULL DEFAULT '0',
replycredit smallint(6) NOT NULL DEFAULT '0',
relatebytag char(255) NOT NULL DEFAULT '0',
maxposition int(8) unsigned NOT NULL DEFAULT '0',
bgcolor char(8) NOT NULL DEFAULT '',
comments int(10) unsigned NOT NULL DEFAULT '0',
hidden smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid),
KEY digest (digest),
KEY sortid (sortid),
KEY displayorder (fid,displayorder,lastpost),
KEY typeid (fid,typeid,displayorder,lastpost),
KEY recommends (recommends),
KEY heats (heats),
KEY authorid (authorid),
KEY isgroup (isgroup,lastpost),
KEY special (special)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_thread_moderate;
CREATE TABLE pre_forum_thread_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadaddviews;
CREATE TABLE pre_forum_threadaddviews (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
addviews int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadcalendar;
CREATE TABLE pre_forum_threadcalendar (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
hotnum int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY fid (fid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadclass;
CREATE TABLE pre_forum_threadclass (
typeid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
fid mediumint(8) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
displayorder mediumint(9) NOT NULL,
icon varchar(255) NOT NULL,
moderators tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (typeid),
KEY fid (fid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadclosed;
CREATE TABLE pre_forum_threadclosed (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
redirect mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threaddisablepos;
CREATE TABLE pre_forum_threaddisablepos (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=HEAP;
DROP TABLE IF EXISTS pre_forum_threadhidelog;
CREATE TABLE pre_forum_threadhidelog (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY uid (tid,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadhot;
CREATE TABLE pre_forum_threadhot (
cid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cid,tid),
KEY fid (fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadimage;
CREATE TABLE pre_forum_threadimage (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
KEY tid (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadlog;
CREATE TABLE pre_forum_threadlog (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid smallint(6) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
otherid smallint(6) unsigned NOT NULL DEFAULT '0',
`action` char(10) NOT NULL,
expiry int(10) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid,fid,uid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadmod;
CREATE TABLE pre_forum_threadmod (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
`action` char(5) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT '0',
magicid smallint(6) unsigned NOT NULL,
stamp tinyint(3) NOT NULL,
reason char(40) NOT NULL DEFAULT '',
KEY tid (tid,dateline),
KEY expiration (expiration,`status`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadpartake;
CREATE TABLE pre_forum_threadpartake (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
KEY tid (tid,uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadpreview;
CREATE TABLE pre_forum_threadpreview (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
`relay` int(10) unsigned NOT NULL DEFAULT '0',
content text NOT NULL,
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadprofile;
CREATE TABLE pre_forum_threadprofile (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` char(100) NOT NULL DEFAULT '',
template text NOT NULL,
`global` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `global` (`global`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadprofile_group;
CREATE TABLE pre_forum_threadprofile_group (
gid mediumint(8) NOT NULL,
tpid mediumint(8) unsigned NOT NULL,
PRIMARY KEY (gid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadrush;
CREATE TABLE pre_forum_threadrush (
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
stopfloor mediumint(8) unsigned NOT NULL DEFAULT '0',
starttimefrom int(10) unsigned NOT NULL DEFAULT '0',
starttimeto int(10) unsigned NOT NULL DEFAULT '0',
rewardfloor text NOT NULL,
creditlimit int(10) NOT NULL DEFAULT '-996',
replylimit smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (tid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_threadtype;
CREATE TABLE pre_forum_threadtype (
typeid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
icon varchar(255) NOT NULL DEFAULT '',
special smallint(6) NOT NULL DEFAULT '0',
modelid smallint(6) unsigned NOT NULL DEFAULT '0',
expiration tinyint(1) NOT NULL DEFAULT '0',
template text NOT NULL,
stemplate text NOT NULL,
ptemplate text NOT NULL,
btemplate text NOT NULL,
PRIMARY KEY (typeid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_trade;
CREATE TABLE pre_forum_trade (
tid mediumint(8) unsigned NOT NULL,
pid int(10) unsigned NOT NULL,
typeid smallint(6) unsigned NOT NULL,
sellerid mediumint(8) unsigned NOT NULL,
seller char(15) NOT NULL,
account char(50) NOT NULL,
tenpayaccount char(20) NOT NULL DEFAULT '',
`subject` char(100) NOT NULL,
price decimal(8,2) NOT NULL,
amount smallint(6) unsigned NOT NULL DEFAULT '1',
quality tinyint(1) unsigned NOT NULL DEFAULT '0',
locus char(20) NOT NULL,
transport tinyint(1) NOT NULL DEFAULT '0',
ordinaryfee smallint(4) unsigned NOT NULL DEFAULT '0',
expressfee smallint(4) unsigned NOT NULL DEFAULT '0',
emsfee smallint(4) unsigned NOT NULL DEFAULT '0',
itemtype tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
lastbuyer char(15) NOT NULL,
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
totalitems smallint(5) unsigned NOT NULL DEFAULT '0',
tradesum decimal(8,2) NOT NULL DEFAULT '0.00',
closed tinyint(1) NOT NULL DEFAULT '0',
aid mediumint(8) unsigned NOT NULL,
displayorder tinyint(1) NOT NULL,
costprice decimal(8,2) NOT NULL,
credit int(10) unsigned NOT NULL DEFAULT '0',
costcredit int(10) unsigned NOT NULL DEFAULT '0',
credittradesum int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (tid,pid),
KEY pid (pid),
KEY sellerid (sellerid),
KEY totalitems (totalitems),
KEY tradesum (tradesum),
KEY displayorder (tid,displayorder),
KEY sellertrades (sellerid,tradesum,totalitems),
KEY typeid (typeid),
KEY credittradesum (credittradesum),
KEY expiration (expiration)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_tradecomment;
CREATE TABLE pre_forum_tradecomment (
id mediumint(8) NOT NULL AUTO_INCREMENT,
orderid char(32) NOT NULL,
pid int(10) unsigned NOT NULL,
`type` tinyint(1) NOT NULL,
raterid mediumint(8) unsigned NOT NULL,
rater char(15) NOT NULL,
rateeid mediumint(8) unsigned NOT NULL,
ratee char(15) NOT NULL,
message char(200) NOT NULL,
explanation char(200) NOT NULL,
score tinyint(1) NOT NULL,
dateline int(10) unsigned NOT NULL,
PRIMARY KEY (id),
KEY raterid (raterid,`type`,dateline),
KEY rateeid (rateeid,`type`,dateline),
KEY orderid (orderid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_tradelog;
CREATE TABLE pre_forum_tradelog (
tid mediumint(8) unsigned NOT NULL,
pid int(10) unsigned NOT NULL,
orderid varchar(32) NOT NULL,
tradeno varchar(32) NOT NULL,
paytype tinyint(1) unsigned NOT NULL DEFAULT '0',
`subject` varchar(100) NOT NULL,
price decimal(8,2) NOT NULL DEFAULT '0.00',
quality tinyint(1) unsigned NOT NULL DEFAULT '0',
itemtype tinyint(1) NOT NULL DEFAULT '0',
number smallint(5) unsigned NOT NULL DEFAULT '0',
tax decimal(6,2) unsigned NOT NULL DEFAULT '0.00',
locus varchar(100) NOT NULL,
sellerid mediumint(8) unsigned NOT NULL,
seller varchar(15) NOT NULL,
selleraccount varchar(50) NOT NULL,
tenpayaccount varchar(20) NOT NULL DEFAULT '0',
buyerid mediumint(8) unsigned NOT NULL,
buyer varchar(15) NOT NULL,
buyercontact varchar(50) NOT NULL,
buyercredits smallint(5) unsigned NOT NULL DEFAULT '0',
buyermsg varchar(200) DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
offline tinyint(1) NOT NULL DEFAULT '0',
buyername varchar(50) NOT NULL,
buyerzip varchar(10) NOT NULL,
buyerphone varchar(20) NOT NULL,
buyermobile varchar(20) NOT NULL,
transport tinyint(1) NOT NULL DEFAULT '0',
transportfee smallint(6) unsigned NOT NULL DEFAULT '0',
baseprice decimal(8,2) NOT NULL,
discount tinyint(1) NOT NULL DEFAULT '0',
ratestatus tinyint(1) NOT NULL DEFAULT '0',
message text NOT NULL,
credit int(10) unsigned NOT NULL DEFAULT '0',
basecredit int(10) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY orderid (orderid),
KEY sellerid (sellerid),
KEY buyerid (buyerid),
KEY `status` (`status`),
KEY buyerlog (buyerid,`status`,lastupdate),
KEY sellerlog (sellerid,`status`,lastupdate),
KEY tid (tid,pid),
KEY pid (pid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_typeoption;
CREATE TABLE pre_forum_typeoption (
optionid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
classid smallint(6) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
expiration tinyint(1) NOT NULL,
protect varchar(255) NOT NULL,
title varchar(255) NOT NULL DEFAULT '',
description varchar(255) NOT NULL DEFAULT '',
identifier varchar(255) NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT '',
unit varchar(255) NOT NULL,
rules mediumtext NOT NULL,
permprompt mediumtext NOT NULL,
PRIMARY KEY (optionid),
KEY classid (classid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_typeoptionvar;
CREATE TABLE pre_forum_typeoptionvar (
sortid smallint(6) unsigned NOT NULL DEFAULT '0',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
fid mediumint(8) unsigned NOT NULL DEFAULT '0',
optionid smallint(6) unsigned NOT NULL DEFAULT '0',
expiration int(10) unsigned NOT NULL DEFAULT '0',
`value` mediumtext NOT NULL,
KEY sortid (sortid),
KEY tid (tid),
KEY fid (fid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_typevar;
CREATE TABLE pre_forum_typevar (
sortid smallint(6) NOT NULL DEFAULT '0',
optionid smallint(6) NOT NULL DEFAULT '0',
available tinyint(1) NOT NULL DEFAULT '0',
required tinyint(1) NOT NULL DEFAULT '0',
unchangeable tinyint(1) NOT NULL DEFAULT '0',
search tinyint(1) NOT NULL DEFAULT '0',
displayorder tinyint(3) NOT NULL DEFAULT '0',
subjectshow tinyint(1) NOT NULL DEFAULT '0',
UNIQUE KEY optionid (sortid,optionid),
KEY sortid (sortid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_forum_warning;
CREATE TABLE pre_forum_warning (
wid int(10) unsigned NOT NULL AUTO_INCREMENT,
pid int(10) unsigned NOT NULL,
operatorid mediumint(8) unsigned NOT NULL,
operator char(15) NOT NULL,
authorid mediumint(8) unsigned NOT NULL,
author char(15) NOT NULL,
dateline int(10) unsigned NOT NULL,
reason char(40) NOT NULL,
PRIMARY KEY (wid),
UNIQUE KEY pid (pid),
KEY authorid (authorid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_album;
CREATE TABLE pre_home_album (
albumid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
albumname varchar(50) NOT NULL DEFAULT '',
catid smallint(6) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
updatetime int(10) unsigned NOT NULL DEFAULT '0',
picnum smallint(6) unsigned NOT NULL DEFAULT '0',
pic varchar(255) NOT NULL DEFAULT '',
picflag tinyint(1) NOT NULL DEFAULT '0',
friend tinyint(1) NOT NULL DEFAULT '0',
`password` varchar(10) NOT NULL DEFAULT '',
target_ids text NOT NULL,
favtimes mediumint(8) unsigned NOT NULL,
sharetimes mediumint(8) unsigned NOT NULL,
depict text NOT NULL,
PRIMARY KEY (albumid),
KEY uid (uid,updatetime),
KEY updatetime (updatetime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_album_category;
CREATE TABLE pre_home_album_category (
catid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
upid mediumint(8) unsigned NOT NULL DEFAULT '0',
catname varchar(255) NOT NULL DEFAULT '',
num mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (catid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_appcreditlog;
CREATE TABLE pre_home_appcreditlog (
logid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
appname varchar(60) NOT NULL DEFAULT '',
`type` tinyint(1) NOT NULL DEFAULT '0',
credit mediumint(8) unsigned NOT NULL DEFAULT '0',
note text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (logid),
KEY uid (uid,dateline),
KEY appid (appid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_blacklist;
CREATE TABLE pre_home_blacklist (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
buid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,buid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_blog;
CREATE TABLE pre_home_blog (
blogid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
`subject` char(80) NOT NULL DEFAULT '',
classid smallint(6) unsigned NOT NULL DEFAULT '0',
catid smallint(6) unsigned NOT NULL DEFAULT '0',
viewnum mediumint(8) unsigned NOT NULL DEFAULT '0',
replynum mediumint(8) unsigned NOT NULL DEFAULT '0',
hot mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
picflag tinyint(1) NOT NULL DEFAULT '0',
noreply tinyint(1) NOT NULL DEFAULT '0',
friend tinyint(1) NOT NULL DEFAULT '0',
`password` char(10) NOT NULL DEFAULT '',
favtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
sharetimes mediumint(8) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
click1 smallint(6) unsigned NOT NULL DEFAULT '0',
click2 smallint(6) unsigned NOT NULL DEFAULT '0',
click3 smallint(6) unsigned NOT NULL DEFAULT '0',
click4 smallint(6) unsigned NOT NULL DEFAULT '0',
click5 smallint(6) unsigned NOT NULL DEFAULT '0',
click6 smallint(6) unsigned NOT NULL DEFAULT '0',
click7 smallint(6) unsigned NOT NULL DEFAULT '0',
click8 smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (blogid),
KEY uid (uid,dateline),
KEY hot (hot),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_blog_category;
CREATE TABLE pre_home_blog_category (
catid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
upid mediumint(8) unsigned NOT NULL DEFAULT '0',
catname varchar(255) NOT NULL DEFAULT '',
num mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (catid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_blog_moderate;
CREATE TABLE pre_home_blog_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_blogfield;
CREATE TABLE pre_home_blogfield (
blogid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
pic varchar(255) NOT NULL DEFAULT '',
tag varchar(255) NOT NULL DEFAULT '',
message mediumtext NOT NULL,
postip varchar(255) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
related text NOT NULL,
relatedtime int(10) unsigned NOT NULL DEFAULT '0',
target_ids text NOT NULL,
hotuser text NOT NULL,
magiccolor tinyint(6) NOT NULL DEFAULT '0',
magicpaper tinyint(6) NOT NULL DEFAULT '0',
pushedaid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (blogid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_class;
CREATE TABLE pre_home_class (
classid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
classname char(40) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (classid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_click;
CREATE TABLE pre_home_click (
clickid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`name` char(50) NOT NULL DEFAULT '',
icon char(100) NOT NULL DEFAULT '',
idtype char(15) NOT NULL DEFAULT '',
available tinyint(1) unsigned NOT NULL DEFAULT '0',
displayorder tinyint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (clickid),
KEY idtype (idtype,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_clickuser;
CREATE TABLE pre_home_clickuser (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype varchar(15) NOT NULL DEFAULT '',
clickid smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
KEY id (id,idtype,dateline),
KEY uid (uid,idtype,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_comment;
CREATE TABLE pre_home_comment (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype varchar(20) NOT NULL DEFAULT '',
authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
author varchar(15) NOT NULL DEFAULT '',
ip varchar(20) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
magicflicker tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY authorid (authorid,idtype),
KEY id (id,idtype,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_comment_moderate;
CREATE TABLE pre_home_comment_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(15) NOT NULL DEFAULT '',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY idtype (idtype,`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_docomment;
CREATE TABLE pre_home_docomment (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
upid int(10) unsigned NOT NULL DEFAULT '0',
doid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
ip varchar(20) NOT NULL DEFAULT '',
grade smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY doid (doid,dateline),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_doing;
CREATE TABLE pre_home_doing (
doid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
`from` varchar(20) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
ip varchar(20) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
replynum int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (doid),
KEY uid (uid,dateline),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_doing_moderate;
CREATE TABLE pre_home_doing_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_favorite;
CREATE TABLE pre_home_favorite (
favid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype varchar(255) NOT NULL DEFAULT '',
spaceuid mediumint(8) unsigned NOT NULL DEFAULT '0',
title varchar(255) NOT NULL DEFAULT '',
description text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (favid),
KEY idtype (id,idtype),
KEY uid (uid,idtype,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_feed;
CREATE TABLE pre_home_feed (
feedid int(10) unsigned NOT NULL AUTO_INCREMENT,
appid smallint(6) unsigned NOT NULL DEFAULT '0',
icon varchar(30) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
friend tinyint(1) NOT NULL DEFAULT '0',
hash_template varchar(32) NOT NULL DEFAULT '',
hash_data varchar(32) NOT NULL DEFAULT '',
title_template text NOT NULL,
title_data text NOT NULL,
body_template text NOT NULL,
body_data text NOT NULL,
body_general text NOT NULL,
image_1 varchar(255) NOT NULL DEFAULT '',
image_1_link varchar(255) NOT NULL DEFAULT '',
image_2 varchar(255) NOT NULL DEFAULT '',
image_2_link varchar(255) NOT NULL DEFAULT '',
image_3 varchar(255) NOT NULL DEFAULT '',
image_3_link varchar(255) NOT NULL DEFAULT '',
image_4 varchar(255) NOT NULL DEFAULT '',
image_4_link varchar(255) NOT NULL DEFAULT '',
target_ids text NOT NULL,
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype varchar(15) NOT NULL DEFAULT '',
hot mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (feedid),
KEY uid (uid,dateline),
KEY dateline (dateline),
KEY hot (hot),
KEY id (id,idtype)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_feed_app;
CREATE TABLE pre_home_feed_app (
feedid int(10) unsigned NOT NULL AUTO_INCREMENT,
appid smallint(6) unsigned NOT NULL DEFAULT '0',
icon varchar(30) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
friend tinyint(1) NOT NULL DEFAULT '0',
hash_template varchar(32) NOT NULL DEFAULT '',
hash_data varchar(32) NOT NULL DEFAULT '',
title_template text NOT NULL,
title_data text NOT NULL,
body_template text NOT NULL,
body_data text NOT NULL,
body_general text NOT NULL,
image_1 varchar(255) NOT NULL DEFAULT '',
image_1_link varchar(255) NOT NULL DEFAULT '',
image_2 varchar(255) NOT NULL DEFAULT '',
image_2_link varchar(255) NOT NULL DEFAULT '',
image_3 varchar(255) NOT NULL DEFAULT '',
image_3_link varchar(255) NOT NULL DEFAULT '',
image_4 varchar(255) NOT NULL DEFAULT '',
image_4_link varchar(255) NOT NULL DEFAULT '',
target_ids text NOT NULL,
PRIMARY KEY (feedid),
KEY uid (uid,dateline),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_follow;
CREATE TABLE pre_home_follow (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username char(15) NOT NULL DEFAULT '',
followuid mediumint(8) unsigned NOT NULL DEFAULT '0',
fusername char(15) NOT NULL DEFAULT '',
bkname varchar(255) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT '0',
mutual tinyint(1) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,followuid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_follow_feed;
CREATE TABLE pre_home_follow_feed (
feedid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
note text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (feedid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_follow_feed_archiver;
CREATE TABLE pre_home_follow_feed_archiver (
feedid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
note text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (feedid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_friend;
CREATE TABLE pre_home_friend (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fuid mediumint(8) unsigned NOT NULL DEFAULT '0',
fusername varchar(15) NOT NULL DEFAULT '',
gid smallint(6) unsigned NOT NULL DEFAULT '0',
num mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
note varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (uid,fuid),
KEY fuid (fuid),
KEY uid (uid,num,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_friend_request;
CREATE TABLE pre_home_friend_request (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fuid mediumint(8) unsigned NOT NULL DEFAULT '0',
fusername char(15) NOT NULL DEFAULT '',
gid smallint(6) unsigned NOT NULL DEFAULT '0',
note char(60) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fuid),
KEY fuid (fuid),
KEY dateline (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_friendlog;
CREATE TABLE pre_home_friendlog (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fuid mediumint(8) unsigned NOT NULL DEFAULT '0',
`action` varchar(10) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fuid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_notification;
CREATE TABLE pre_home_notification (
id mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` varchar(20) NOT NULL DEFAULT '',
`new` tinyint(1) NOT NULL DEFAULT '0',
authorid mediumint(8) unsigned NOT NULL DEFAULT '0',
author varchar(15) NOT NULL DEFAULT '',
note text NOT NULL,
dateline int(10) unsigned NOT NULL DEFAULT '0',
from_id mediumint(8) unsigned NOT NULL DEFAULT '0',
from_idtype varchar(20) NOT NULL DEFAULT '',
from_num mediumint(8) unsigned NOT NULL DEFAULT '0',
category tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY uid (uid,`new`),
KEY category (uid,category,dateline),
KEY by_type (uid,`type`,dateline),
KEY from_id (from_id,from_idtype)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_pic;
CREATE TABLE pre_home_pic (
picid mediumint(8) NOT NULL AUTO_INCREMENT,
albumid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
postip varchar(255) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
title varchar(255) NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT '',
size int(10) unsigned NOT NULL DEFAULT '0',
filepath varchar(255) NOT NULL DEFAULT '',
thumb tinyint(1) NOT NULL DEFAULT '0',
remote tinyint(1) NOT NULL DEFAULT '0',
hot mediumint(8) unsigned NOT NULL DEFAULT '0',
sharetimes mediumint(8) unsigned NOT NULL DEFAULT '0',
click1 smallint(6) unsigned NOT NULL DEFAULT '0',
click2 smallint(6) unsigned NOT NULL DEFAULT '0',
click3 smallint(6) unsigned NOT NULL DEFAULT '0',
click4 smallint(6) unsigned NOT NULL DEFAULT '0',
click5 smallint(6) unsigned NOT NULL DEFAULT '0',
click6 smallint(6) unsigned NOT NULL DEFAULT '0',
click7 smallint(6) unsigned NOT NULL DEFAULT '0',
click8 smallint(6) unsigned NOT NULL DEFAULT '0',
magicframe tinyint(6) NOT NULL DEFAULT '0',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (picid),
KEY uid (uid),
KEY albumid (albumid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_pic_moderate;
CREATE TABLE pre_home_pic_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_picfield;
CREATE TABLE pre_home_picfield (
picid mediumint(8) unsigned NOT NULL DEFAULT '0',
hotuser text NOT NULL,
PRIMARY KEY (picid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_poke;
CREATE TABLE pre_home_poke (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fromuid mediumint(8) unsigned NOT NULL DEFAULT '0',
fromusername varchar(15) NOT NULL DEFAULT '',
note varchar(255) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
iconid smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,fromuid),
KEY uid (uid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_pokearchive;
CREATE TABLE pre_home_pokearchive (
pid mediumint(8) NOT NULL AUTO_INCREMENT,
pokeuid int(10) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
fromuid mediumint(8) unsigned NOT NULL DEFAULT '0',
note varchar(255) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
iconid smallint(6) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (pid),
KEY pokeuid (pokeuid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_share;
CREATE TABLE pre_home_share (
sid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
itemid mediumint(8) unsigned NOT NULL,
`type` varchar(30) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
fromuid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
title_template text NOT NULL,
body_template text NOT NULL,
body_data text NOT NULL,
body_general text NOT NULL,
image varchar(255) NOT NULL DEFAULT '',
image_link varchar(255) NOT NULL DEFAULT '',
hot mediumint(8) unsigned NOT NULL DEFAULT '0',
hotuser text NOT NULL,
`status` tinyint(1) NOT NULL,
PRIMARY KEY (sid),
KEY uid (uid,dateline),
KEY hot (hot),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_share_moderate;
CREATE TABLE pre_home_share_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_show;
CREATE TABLE pre_home_show (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
unitprice int(10) unsigned NOT NULL DEFAULT '1',
credit int(10) unsigned NOT NULL DEFAULT '0',
note varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (uid),
KEY unitprice (unitprice),
KEY credit (credit)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_specialuser;
CREATE TABLE pre_home_specialuser (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
dateline int(10) NOT NULL DEFAULT '0',
reason text NOT NULL,
opuid mediumint(8) unsigned NOT NULL DEFAULT '0',
opusername varchar(15) NOT NULL DEFAULT '',
displayorder mediumint(8) unsigned NOT NULL DEFAULT '0',
KEY uid (uid,`status`),
KEY displayorder (`status`,displayorder)
) TYPE=MyISAM;
2017-07-31 05:06:15 -04:00
DROP TABLE IF EXISTS pre_home_userapp;
CREATE TABLE pre_home_userapp (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
appname varchar(60) NOT NULL DEFAULT '',
privacy tinyint(1) NOT NULL DEFAULT '0',
allowsidenav tinyint(1) NOT NULL DEFAULT '0',
allowfeed tinyint(1) NOT NULL DEFAULT '0',
allowprofilelink tinyint(1) NOT NULL DEFAULT '0',
narrow tinyint(1) NOT NULL DEFAULT '0',
menuorder smallint(6) NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
KEY uid (uid,appid),
KEY menuorder (uid,menuorder),
KEY displayorder (uid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_userappfield;
CREATE TABLE pre_home_userappfield (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
profilelink text NOT NULL,
myml text NOT NULL,
KEY uid (uid,appid)
) TYPE=MyISAM;
2016-12-15 08:20:54 -05:00
DROP TABLE IF EXISTS pre_home_visitor;
CREATE TABLE pre_home_visitor (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
vuid mediumint(8) unsigned NOT NULL DEFAULT '0',
vusername char(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (uid,vuid),
KEY vuid (vuid),
KEY dateline (dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_mobile_setting;
CREATE TABLE pre_mobile_setting (
skey varchar(255) NOT NULL DEFAULT '',
svalue text NOT NULL,
PRIMARY KEY (skey)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_content;
CREATE TABLE pre_portal_article_content (
cid int(10) unsigned NOT NULL AUTO_INCREMENT,
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(255) NOT NULL DEFAULT '',
title varchar(255) NOT NULL DEFAULT '',
content text NOT NULL,
pageorder smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (cid),
KEY aid (aid,pageorder),
KEY pageorder (pageorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_count;
CREATE TABLE pre_portal_article_count (
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
catid mediumint(8) unsigned NOT NULL DEFAULT '0',
viewnum mediumint(8) unsigned NOT NULL DEFAULT '0',
commentnum mediumint(8) unsigned NOT NULL DEFAULT '0',
favtimes mediumint(8) unsigned NOT NULL DEFAULT '0',
sharetimes mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (aid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_moderate;
CREATE TABLE pre_portal_article_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY `status` (`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_related;
CREATE TABLE pre_portal_article_related (
aid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
raid mediumint(8) unsigned NOT NULL DEFAULT '0',
displayorder mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (aid,raid),
KEY aid (aid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_title;
CREATE TABLE pre_portal_article_title (
aid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
catid mediumint(8) unsigned NOT NULL DEFAULT '0',
bid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
title varchar(255) NOT NULL DEFAULT '',
highlight varchar(255) NOT NULL DEFAULT '',
author varchar(255) NOT NULL DEFAULT '',
`from` varchar(255) NOT NULL DEFAULT '',
fromurl varchar(255) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
summary varchar(255) NOT NULL DEFAULT '',
pic varchar(255) NOT NULL DEFAULT '',
thumb tinyint(1) NOT NULL DEFAULT '0',
remote tinyint(1) NOT NULL DEFAULT '0',
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(255) NOT NULL DEFAULT '',
contents smallint(6) NOT NULL DEFAULT '0',
allowcomment tinyint(1) NOT NULL DEFAULT '0',
owncomment tinyint(1) NOT NULL DEFAULT '0',
click1 smallint(6) unsigned NOT NULL DEFAULT '0',
click2 smallint(6) unsigned NOT NULL DEFAULT '0',
click3 smallint(6) unsigned NOT NULL DEFAULT '0',
click4 smallint(6) unsigned NOT NULL DEFAULT '0',
click5 smallint(6) unsigned NOT NULL DEFAULT '0',
click6 smallint(6) unsigned NOT NULL DEFAULT '0',
click7 smallint(6) unsigned NOT NULL DEFAULT '0',
click8 smallint(6) unsigned NOT NULL DEFAULT '0',
tag tinyint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
showinnernav tinyint(1) unsigned NOT NULL DEFAULT '0',
preaid mediumint(8) unsigned NOT NULL,
nextaid mediumint(8) unsigned NOT NULL,
htmlmade tinyint(1) unsigned NOT NULL DEFAULT '0',
htmlname varchar(255) NOT NULL DEFAULT '',
htmldir varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (aid),
KEY catid (catid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_article_trash;
CREATE TABLE pre_portal_article_trash (
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
content text NOT NULL,
PRIMARY KEY (aid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_attachment;
CREATE TABLE pre_portal_attachment (
attachid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
filetype varchar(255) NOT NULL DEFAULT '',
filesize int(10) unsigned NOT NULL DEFAULT '0',
attachment varchar(255) NOT NULL DEFAULT '',
isimage tinyint(1) NOT NULL DEFAULT '0',
thumb tinyint(1) unsigned NOT NULL DEFAULT '0',
remote tinyint(1) unsigned NOT NULL DEFAULT '0',
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (attachid),
KEY aid (aid,attachid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_category;
CREATE TABLE pre_portal_category (
catid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
upid mediumint(8) unsigned NOT NULL DEFAULT '0',
catname varchar(255) NOT NULL DEFAULT '',
articles mediumint(8) unsigned NOT NULL DEFAULT '0',
allowcomment tinyint(1) NOT NULL DEFAULT '1',
displayorder smallint(6) NOT NULL DEFAULT '0',
notinheritedarticle tinyint(1) NOT NULL DEFAULT '0',
notinheritedblock tinyint(1) NOT NULL DEFAULT '0',
domain varchar(255) NOT NULL DEFAULT '',
url varchar(255) NOT NULL DEFAULT '',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
closed tinyint(1) NOT NULL DEFAULT '0',
shownav tinyint(1) NOT NULL DEFAULT '0',
description text NOT NULL,
seotitle text NOT NULL,
keyword text NOT NULL,
primaltplname varchar(255) NOT NULL DEFAULT '',
articleprimaltplname varchar(255) NOT NULL DEFAULT '',
disallowpublish tinyint(1) NOT NULL DEFAULT '0',
foldername varchar(255) NOT NULL DEFAULT '',
notshowarticlesummay varchar(255) NOT NULL DEFAULT '',
perpage smallint(6) NOT NULL DEFAULT '0',
maxpages smallint(6) NOT NULL DEFAULT '0',
noantitheft tinyint(1) NOT NULL DEFAULT '0',
lastpublish int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (catid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_category_permission;
CREATE TABLE pre_portal_category_permission (
catid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
allowpublish tinyint(1) NOT NULL DEFAULT '0',
allowmanage tinyint(1) NOT NULL DEFAULT '0',
inheritedcatid mediumint(8) NOT NULL DEFAULT '0',
PRIMARY KEY (catid,uid),
KEY uid (uid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_comment;
CREATE TABLE pre_portal_comment (
cid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
id mediumint(8) unsigned NOT NULL DEFAULT '0',
idtype varchar(20) NOT NULL DEFAULT '',
postip varchar(255) NOT NULL DEFAULT '',
`port` smallint(6) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
message text NOT NULL,
PRIMARY KEY (cid),
KEY idtype (id,idtype,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_comment_moderate;
CREATE TABLE pre_portal_comment_moderate (
id int(10) unsigned NOT NULL DEFAULT '0',
idtype varchar(15) NOT NULL DEFAULT '',
`status` tinyint(3) NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY idtype (idtype,`status`,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_rsscache;
CREATE TABLE pre_portal_rsscache (
lastupdate int(10) unsigned NOT NULL DEFAULT '0',
catid mediumint(8) unsigned NOT NULL DEFAULT '0',
aid mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
catname char(50) NOT NULL DEFAULT '',
author char(15) NOT NULL DEFAULT '',
`subject` char(80) NOT NULL DEFAULT '',
description char(255) NOT NULL DEFAULT '',
UNIQUE KEY aid (aid),
KEY catid (catid,dateline)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_topic;
CREATE TABLE pre_portal_topic (
topicid mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
title varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
domain varchar(255) NOT NULL DEFAULT '',
summary text NOT NULL,
keyword text NOT NULL,
cover varchar(255) NOT NULL DEFAULT '',
picflag tinyint(1) NOT NULL DEFAULT '0',
primaltplname varchar(255) NOT NULL DEFAULT '',
useheader tinyint(1) NOT NULL DEFAULT '0',
usefooter tinyint(1) NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(255) NOT NULL DEFAULT '',
viewnum mediumint(8) unsigned NOT NULL DEFAULT '0',
dateline int(10) unsigned NOT NULL DEFAULT '0',
closed tinyint(1) NOT NULL DEFAULT '0',
allowcomment tinyint(1) NOT NULL DEFAULT '0',
commentnum mediumint(8) unsigned NOT NULL DEFAULT '0',
htmlmade tinyint(1) unsigned NOT NULL DEFAULT '0',
htmldir varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (topicid),
KEY `name` (`name`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_portal_topic_pic;
CREATE TABLE pre_portal_topic_pic (
picid mediumint(8) NOT NULL AUTO_INCREMENT,
topicid mediumint(8) unsigned NOT NULL DEFAULT '0',
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
username varchar(15) NOT NULL DEFAULT '',
dateline int(10) unsigned NOT NULL DEFAULT '0',
filename varchar(255) NOT NULL DEFAULT '',
title varchar(255) NOT NULL DEFAULT '',
size int(10) unsigned NOT NULL DEFAULT '0',
filepath varchar(255) NOT NULL DEFAULT '',
thumb tinyint(1) NOT NULL DEFAULT '0',
remote tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (picid),
KEY topicid (topicid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_security_evilpost;
CREATE TABLE pre_security_evilpost (
pid int(10) unsigned NOT NULL,
tid mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` tinyint(1) NOT NULL DEFAULT '0',
evilcount int(10) NOT NULL DEFAULT '0',
eviltype mediumint(8) unsigned NOT NULL DEFAULT '0',
createtime int(10) unsigned NOT NULL DEFAULT '0',
operateresult tinyint(1) unsigned NOT NULL DEFAULT '0',
isreported tinyint(1) NOT NULL DEFAULT '0',
censorword char(50) NOT NULL,
PRIMARY KEY (pid),
KEY `type` (tid,`type`),
KEY operateresult (operateresult,createtime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_security_eviluser;
CREATE TABLE pre_security_eviluser (
uid int(10) unsigned NOT NULL,
evilcount int(10) NOT NULL DEFAULT '0',
eviltype mediumint(8) unsigned NOT NULL DEFAULT '0',
createtime int(10) unsigned NOT NULL DEFAULT '0',
operateresult tinyint(1) unsigned NOT NULL DEFAULT '0',
isreported tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (uid),
KEY operateresult (operateresult,createtime)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_security_failedlog;
CREATE TABLE pre_security_failedlog (
id int(11) NOT NULL AUTO_INCREMENT,
reporttype char(20) NOT NULL,
tid int(10) unsigned NOT NULL DEFAULT '0',
pid int(10) unsigned NOT NULL DEFAULT '0',
uid int(10) unsigned NOT NULL DEFAULT '0',
failcount int(10) unsigned NOT NULL DEFAULT '0',
createtime int(10) unsigned NOT NULL DEFAULT '0',
posttime int(10) unsigned NOT NULL DEFAULT '0',
delreason char(255) NOT NULL,
scheduletime int(10) unsigned NOT NULL DEFAULT '0',
lastfailtime int(10) unsigned NOT NULL DEFAULT '0',
extra1 int(10) unsigned NOT NULL,
extra2 char(255) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY pid (pid),
KEY uid (uid)
) TYPE=MyISAM;