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