|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `avatar`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE avatar (
|
|
|
878a2b |
avatar_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
avatar_file varchar(30) NOT NULL default '',
|
|
|
878a2b |
avatar_name varchar(100) NOT NULL default '',
|
|
|
878a2b |
avatar_mimetype varchar(30) NOT NULL default '',
|
|
|
878a2b |
avatar_created int(10) NOT NULL default '0',
|
|
|
878a2b |
avatar_display tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
avatar_weight smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
avatar_type char(1) NOT NULL default '',
|
|
|
878a2b |
PRIMARY KEY (avatar_id),
|
|
|
878a2b |
KEY avatar_type (avatar_type, avatar_display)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `avatar_user_link`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE avatar_user_link (
|
|
|
878a2b |
avatar_id mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
user_id mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
KEY avatar_user_id (avatar_id,user_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `banner`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE banner (
|
|
|
878a2b |
bid smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
cid tinyint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
imptotal mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
impmade mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
clicks mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
imageurl varchar(255) NOT NULL default '',
|
|
|
878a2b |
clickurl varchar(255) NOT NULL default '',
|
|
|
878a2b |
date int(10) NOT NULL default '0',
|
|
|
878a2b |
htmlbanner tinyint(1) NOT NULL default '0',
|
|
|
878a2b |
htmlcode text,
|
|
|
878a2b |
PRIMARY KEY (bid),
|
|
|
878a2b |
KEY idxbannercid (cid),
|
|
|
878a2b |
KEY idxbannerbidcid (bid,cid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `bannerclient`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE bannerclient (
|
|
|
878a2b |
cid smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
name varchar(60) NOT NULL default '',
|
|
|
878a2b |
contact varchar(60) NOT NULL default '',
|
|
|
878a2b |
email varchar(60) NOT NULL default '',
|
|
|
878a2b |
login varchar(10) NOT NULL default '',
|
|
|
878a2b |
passwd varchar(10) NOT NULL default '',
|
|
|
878a2b |
extrainfo text,
|
|
|
878a2b |
PRIMARY KEY (cid),
|
|
|
878a2b |
KEY login (login)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `bannerfinish`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE bannerfinish (
|
|
|
878a2b |
bid smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
cid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
impressions mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
clicks mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
datestart int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
dateend int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (bid),
|
|
|
878a2b |
KEY cid (cid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `block_module_link`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE block_module_link (
|
|
|
878a2b |
block_id mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
module_id smallint(5) NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (`module_id`, `block_id`)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `comments`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE xoopscomments (
|
|
|
878a2b |
com_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
com_pid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_rootid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_modid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_itemid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_icon varchar(25) NOT NULL default '',
|
|
|
878a2b |
com_created int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_modified int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_uid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_ip varchar(15) NOT NULL default '',
|
|
|
878a2b |
com_title varchar(255) NOT NULL default '',
|
|
|
878a2b |
com_text text,
|
|
|
878a2b |
com_sig tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_status tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
com_exparams varchar(255) NOT NULL default '',
|
|
|
878a2b |
dohtml tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
dosmiley tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
doxcode tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
doimage tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
dobr tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (com_id),
|
|
|
878a2b |
KEY com_pid (com_pid),
|
|
|
878a2b |
KEY com_itemid (com_itemid),
|
|
|
878a2b |
KEY com_uid (com_uid),
|
|
|
878a2b |
KEY com_title (com_title(40))
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
# RMV-NOTIFY
|
|
|
878a2b |
# Table structure for table `notifications`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE xoopsnotifications (
|
|
|
878a2b |
not_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
not_modid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
not_itemid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
not_category varchar(30) NOT NULL default '',
|
|
|
878a2b |
not_event varchar(30) NOT NULL default '',
|
|
|
878a2b |
not_uid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
not_mode tinyint(1) NOT NULL default 0,
|
|
|
878a2b |
PRIMARY KEY (not_id),
|
|
|
878a2b |
KEY not_modid (not_modid),
|
|
|
878a2b |
KEY not_itemid (not_itemid),
|
|
|
878a2b |
KEY not_class (not_category),
|
|
|
878a2b |
KEY not_uid (not_uid),
|
|
|
878a2b |
KEY not_event (not_event)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `config`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE config (
|
|
|
878a2b |
conf_id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
conf_modid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
conf_catid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
conf_name varchar(25) NOT NULL default '',
|
|
|
878a2b |
conf_title varchar(255) NOT NULL default '',
|
|
|
878a2b |
conf_value text,
|
|
|
878a2b |
conf_desc varchar(255) NOT NULL default '',
|
|
|
878a2b |
conf_formtype varchar(15) NOT NULL default '',
|
|
|
878a2b |
conf_valuetype varchar(10) NOT NULL default '',
|
|
|
878a2b |
conf_order smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (conf_id),
|
|
|
878a2b |
KEY conf_mod_cat_id (conf_modid, conf_catid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `configcategory`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE configcategory (
|
|
|
878a2b |
confcat_id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
confcat_name varchar(255) NOT NULL default '',
|
|
|
878a2b |
confcat_order smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (confcat_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `configoption`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE configoption (
|
|
|
878a2b |
confop_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
confop_name varchar(255) NOT NULL default '',
|
|
|
878a2b |
confop_value varchar(255) NOT NULL default '',
|
|
|
878a2b |
conf_id smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (confop_id),
|
|
|
878a2b |
KEY conf_id (conf_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `groups`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE groups (
|
|
|
878a2b |
groupid smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
name varchar(50) NOT NULL default '',
|
|
|
878a2b |
description text,
|
|
|
878a2b |
group_type varchar(10) NOT NULL default '',
|
|
|
878a2b |
PRIMARY KEY (groupid),
|
|
|
878a2b |
KEY group_type (group_type)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `group_permission`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE group_permission (
|
|
|
878a2b |
gperm_id int(10) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
gperm_groupid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
gperm_itemid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
gperm_modid mediumint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
gperm_name varchar(50) NOT NULL default '',
|
|
|
878a2b |
PRIMARY KEY (gperm_id),
|
|
|
878a2b |
KEY groupid (gperm_groupid),
|
|
|
878a2b |
KEY itemid (gperm_itemid),
|
|
|
878a2b |
KEY gperm_modid (gperm_modid,gperm_name(10))
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `groups_users_link`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE groups_users_link (
|
|
|
878a2b |
linkid mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
groupid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
uid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (linkid),
|
|
|
878a2b |
KEY groupid_uid (groupid,uid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `image`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE image (
|
|
|
878a2b |
image_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
image_name varchar(30) NOT NULL default '',
|
|
|
878a2b |
image_nicename varchar(255) NOT NULL default '',
|
|
|
878a2b |
image_mimetype varchar(30) NOT NULL default '',
|
|
|
878a2b |
image_created int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
image_display tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
image_weight smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_id smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (image_id),
|
|
|
878a2b |
KEY imgcat_id (imgcat_id),
|
|
|
878a2b |
KEY image_display (image_display)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `imagebody`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE imagebody (
|
|
|
878a2b |
image_id mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
image_body mediumblob,
|
|
|
878a2b |
KEY image_id (image_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `imagecategory`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE imagecategory (
|
|
|
878a2b |
imgcat_id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
imgcat_name varchar(100) NOT NULL default '',
|
|
|
878a2b |
imgcat_maxsize int(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_maxwidth smallint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_maxheight smallint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_display tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_weight smallint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
imgcat_type char(1) NOT NULL default '',
|
|
|
878a2b |
imgcat_storetype varchar(5) NOT NULL default '',
|
|
|
878a2b |
PRIMARY KEY (imgcat_id),
|
|
|
878a2b |
KEY imgcat_display (imgcat_display)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `imgset`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE imgset (
|
|
|
878a2b |
imgset_id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
imgset_name varchar(50) NOT NULL default '',
|
|
|
878a2b |
imgset_refid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (imgset_id),
|
|
|
878a2b |
KEY imgset_refid (imgset_refid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `imgset_tplset_link`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE imgset_tplset_link (
|
|
|
878a2b |
imgset_id smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
tplset_name varchar(50) NOT NULL default '',
|
|
|
878a2b |
KEY tplset_name (tplset_name(10))
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `imgsetimg`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE imgsetimg (
|
|
|
878a2b |
imgsetimg_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
imgsetimg_file varchar(50) NOT NULL default '',
|
|
|
878a2b |
imgsetimg_body blob,
|
|
|
878a2b |
imgsetimg_imgset smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (imgsetimg_id),
|
|
|
878a2b |
KEY imgsetimg_imgset (imgsetimg_imgset)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `modules`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE modules (
|
|
|
878a2b |
mid smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
name varchar(150) NOT NULL default '',
|
|
|
878a2b |
version smallint(5) unsigned NOT NULL default '100',
|
|
|
878a2b |
last_update int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
weight smallint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
isactive tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
dirname varchar(25) NOT NULL default '',
|
|
|
878a2b |
hasmain tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
hasadmin tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
hassearch tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
hasconfig tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
hascomments tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
hasnotification tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (mid),
|
|
|
878a2b |
KEY hasmain (hasmain),
|
|
|
878a2b |
KEY hasadmin (hasadmin),
|
|
|
878a2b |
KEY hassearch (hassearch),
|
|
|
878a2b |
KEY hasnotification (hasnotification),
|
|
|
878a2b |
KEY dirname (dirname),
|
|
|
878a2b |
KEY name (name(15))
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `newblocks`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE newblocks (
|
|
|
878a2b |
bid mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
mid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
func_num tinyint(3) unsigned NOT NULL default '0',
|
|
|
878a2b |
options varchar(255) NOT NULL default '',
|
|
|
878a2b |
name varchar(150) NOT NULL default '',
|
|
|
878a2b |
title varchar(255) NOT NULL default '',
|
|
|
878a2b |
content text,
|
|
|
878a2b |
side tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
weight smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
visible tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
block_type char(1) NOT NULL default '',
|
|
|
878a2b |
c_type char(1) NOT NULL default '',
|
|
|
878a2b |
isactive tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
dirname varchar(50) NOT NULL default '',
|
|
|
878a2b |
func_file varchar(50) NOT NULL default '',
|
|
|
878a2b |
show_func varchar(50) NOT NULL default '',
|
|
|
878a2b |
edit_func varchar(50) NOT NULL default '',
|
|
|
878a2b |
template varchar(50) NOT NULL default '',
|
|
|
878a2b |
bcachetime int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
last_modified int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (bid),
|
|
|
878a2b |
KEY mid (mid),
|
|
|
878a2b |
KEY visible (visible),
|
|
|
878a2b |
KEY isactive_visible_mid (isactive,visible,mid),
|
|
|
878a2b |
KEY mid_funcnum (mid,func_num)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `online`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE online (
|
|
|
878a2b |
online_uid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
online_uname varchar(25) NOT NULL default '',
|
|
|
878a2b |
online_updated int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
online_module smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
online_ip varchar(15) NOT NULL default '',
|
|
|
878a2b |
KEY online_module (online_module)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `priv_msgs`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE priv_msgs (
|
|
|
878a2b |
msg_id mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
msg_image varchar(100) default NULL,
|
|
|
878a2b |
subject varchar(255) NOT NULL default '',
|
|
|
878a2b |
from_userid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
to_userid mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
msg_time int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
msg_text text,
|
|
|
878a2b |
read_msg tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (msg_id),
|
|
|
878a2b |
KEY to_userid (to_userid),
|
|
|
878a2b |
KEY touseridreadmsg (to_userid,read_msg),
|
|
|
878a2b |
KEY msgidfromuserid (msg_id,from_userid)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `ranks`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE ranks (
|
|
|
878a2b |
rank_id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
rank_title varchar(50) NOT NULL default '',
|
|
|
878a2b |
rank_min mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
rank_max mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
rank_special tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
rank_image varchar(255) default NULL,
|
|
|
878a2b |
PRIMARY KEY (rank_id),
|
|
|
878a2b |
KEY rank_min (rank_min),
|
|
|
878a2b |
KEY rank_max (rank_max),
|
|
|
878a2b |
KEY rankminrankmaxranspecial (rank_min,rank_max,rank_special),
|
|
|
878a2b |
KEY rankspecial (rank_special)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `session`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE session (
|
|
|
878a2b |
sess_id varchar(32) NOT NULL default '',
|
|
|
878a2b |
sess_updated int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
sess_ip varchar(15) NOT NULL default '',
|
|
|
878a2b |
sess_data text,
|
|
|
878a2b |
PRIMARY KEY (sess_id),
|
|
|
878a2b |
KEY updated (sess_updated)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `smiles`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE smiles (
|
|
|
878a2b |
id smallint(5) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
code varchar(50) NOT NULL default '',
|
|
|
878a2b |
smile_url varchar(100) NOT NULL default '',
|
|
|
878a2b |
emotion varchar(75) NOT NULL default '',
|
|
|
878a2b |
display tinyint(1) NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `tplset`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE tplset (
|
|
|
878a2b |
tplset_id int(7) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
tplset_name varchar(50) NOT NULL default '',
|
|
|
878a2b |
tplset_desc varchar(255) NOT NULL default '',
|
|
|
878a2b |
tplset_credits text,
|
|
|
878a2b |
tplset_created int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
PRIMARY KEY (tplset_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `tplfile`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE tplfile (
|
|
|
878a2b |
tpl_id mediumint(7) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
tpl_refid smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
tpl_module varchar(25) NOT NULL default '',
|
|
|
878a2b |
tpl_tplset varchar(50) NOT NULL default '',
|
|
|
878a2b |
tpl_file varchar(50) NOT NULL default '',
|
|
|
878a2b |
tpl_desc varchar(255) NOT NULL default '',
|
|
|
878a2b |
tpl_lastmodified int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
tpl_lastimported int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
tpl_type varchar(20) NOT NULL default '',
|
|
|
878a2b |
PRIMARY KEY (tpl_id),
|
|
|
878a2b |
KEY tpl_refid (tpl_refid,tpl_type),
|
|
|
878a2b |
KEY tpl_tplset (tpl_tplset,tpl_file(10))
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `tplsource`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE tplsource (
|
|
|
878a2b |
tpl_id mediumint(7) unsigned NOT NULL default '0',
|
|
|
878a2b |
tpl_source mediumtext,
|
|
|
878a2b |
KEY tpl_id (tpl_id)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
# Table structure for table `users`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE users (
|
|
|
878a2b |
uid mediumint(8) unsigned NOT NULL auto_increment,
|
|
|
878a2b |
name varchar(60) NOT NULL default '',
|
|
|
878a2b |
uname varchar(25) NOT NULL default '',
|
|
|
878a2b |
email varchar(60) NOT NULL default '',
|
|
|
878a2b |
url varchar(100) NOT NULL default '',
|
|
|
878a2b |
user_avatar varchar(30) NOT NULL default 'blank.gif',
|
|
|
878a2b |
user_regdate int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
user_icq varchar(15) NOT NULL default '',
|
|
|
878a2b |
user_from varchar(100) NOT NULL default '',
|
|
|
878a2b |
user_sig tinytext,
|
|
|
878a2b |
user_viewemail tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
actkey varchar(8) NOT NULL default '',
|
|
|
878a2b |
user_aim varchar(18) NOT NULL default '',
|
|
|
878a2b |
user_yim varchar(25) NOT NULL default '',
|
|
|
878a2b |
user_msnm varchar(100) NOT NULL default '',
|
|
|
878a2b |
pass varchar(32) NOT NULL default '',
|
|
|
878a2b |
posts mediumint(8) unsigned NOT NULL default '0',
|
|
|
878a2b |
attachsig tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
rank smallint(5) unsigned NOT NULL default '0',
|
|
|
878a2b |
level tinyint(3) unsigned NOT NULL default '1',
|
|
|
878a2b |
theme varchar(100) NOT NULL default '',
|
|
|
878a2b |
timezone_offset float(3,1) NOT NULL default '0.0',
|
|
|
878a2b |
last_login int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
umode varchar(10) NOT NULL default '',
|
|
|
878a2b |
uorder tinyint(1) unsigned NOT NULL default '0',
|
|
|
878a2b |
notify_method tinyint(1) NOT NULL default '1',
|
|
|
878a2b |
notify_mode tinyint(1) NOT NULL default '0',
|
|
|
878a2b |
user_occ varchar(100) NOT NULL default '',
|
|
|
878a2b |
bio tinytext,
|
|
|
878a2b |
user_intrest varchar(150) NOT NULL default '',
|
|
|
878a2b |
user_mailok tinyint(1) unsigned NOT NULL default '1',
|
|
|
878a2b |
PRIMARY KEY (uid),
|
|
|
878a2b |
KEY uname (uname),
|
|
|
878a2b |
KEY email (email),
|
|
|
878a2b |
KEY uiduname (uid,uname),
|
|
|
878a2b |
KEY unamepass (uname,pass)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|
|
|
878a2b |
|
|
|
878a2b |
#
|
|
|
878a2b |
# Table structure for table `cache_model`
|
|
|
878a2b |
#
|
|
|
878a2b |
|
|
|
878a2b |
CREATE TABLE cache_model (
|
|
|
878a2b |
`cache_key` varchar(64) NOT NULL default '',
|
|
|
878a2b |
`cache_expires` int(10) unsigned NOT NULL default '0',
|
|
|
878a2b |
`cache_data` text,
|
|
|
878a2b |
|
|
|
878a2b |
PRIMARY KEY (`cache_key`),
|
|
|
878a2b |
KEY `cache_expires` (`cache_expires`)
|
|
|
878a2b |
) TYPE=MyISAM;
|
|
|
878a2b |
# --------------------------------------------------------
|