/*
广告表
*/
DROP TABLE IF EXISTS phpcolor_ad;
CREATE TABLE IF NOT EXISTS `phpcolor_ad` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `site` mediumint(2) NOT NULL,
  `ranges` mediumint(1) NOT NULL DEFAULT '1',
  `rid` mediumint(8) NOT NULL DEFAULT '0',
  `pid` varchar(255) NOT NULL,
  `code` text,
  PRIMARY KEY (`id`),
  KEY `site` (`site`),
  KEY `ranges` (`ranges`),
  KEY `rid` (`rid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk ;
/*
管理员表
*/
DROP TABLE IF EXISTS phpcolor_admin;
CREATE TABLE IF NOT EXISTS `phpcolor_admin` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `purview` text,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
相册表
*/
DROP TABLE IF EXISTS phpcolor_album;
CREATE TABLE IF NOT EXISTS `phpcolor_album` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `introduction` text,
  `belong` mediumint(8) NOT NULL,
  `type` mediumint(1) NOT NULL,
  `passwd` varchar(32) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
吧主申请表
*/
DROP TABLE IF EXISTS phpcolor_apply_master;
CREATE TABLE IF NOT EXISTS `phpcolor_apply_master` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `barname` varchar(30) NOT NULL,
  `why` text NOT NULL,
  `time` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `email` varchar(50) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧分类申请表
*/
DROP TABLE IF EXISTS phpcolor_apply_sort;
CREATE TABLE IF NOT EXISTS `phpcolor_apply_sort` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `barname` varchar(30) NOT NULL,
  `why` text,
  `sort` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧会员申请表
*/
DROP TABLE IF EXISTS phpcolor_apply_user;
CREATE TABLE IF NOT EXISTS `phpcolor_apply_user` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `object` varchar(30) NOT NULL,
  `why` varchar(255) NOT NULL,
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
会员信息认证表
*/
DROP TABLE IF EXISTS phpcolor_attest;
CREATE TABLE IF NOT EXISTS `phpcolor_attest` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `attest` varchar(255) NOT NULL,
  `info` text NOT NULL,
  `time` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
贴吧表
*/
DROP TABLE IF EXISTS phpcolor_bar;
CREATE TABLE IF NOT EXISTS `phpcolor_bar` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `barname` varchar(30) NOT NULL,
  `introduction` text,
  `picture` varchar(255) DEFAULT NULL,
  `friendbar` varchar(255) DEFAULT NULL,
  `barclass` mediumint(8) NOT NULL DEFAULT '0',
  `usernc` varchar(255) NOT NULL,
  `baruserp` mediumint(1) NOT NULL DEFAULT '0',
  `apply` mediumint(1) NOT NULL DEFAULT '0',
  `style` mediumint(8) NOT NULL DEFAULT '0',
  `rankfw` mediumint(1) NOT NULL DEFAULT '0',
  `rankzt` mediumint(1) NOT NULL DEFAULT '0',
  `rankhf` mediumint(1) NOT NULL DEFAULT '0',
  `visitor` mediumint(1) NOT NULL DEFAULT '9',
  `verify` mediumint(1) NOT NULL DEFAULT '9',
  `state` mediumint(1) NOT NULL DEFAULT '1',
  `recommend` mediumint(1) NOT NULL DEFAULT '0',
  `merge` varchar(255) DEFAULT NULL,
  `usergroup` varchar(255) NOT NULL,
  `usergroupf` varchar(255) NOT NULL,
  `rankingq` double(10,2) NOT NULL DEFAULT '0.00',
  `rankings` double(10,2) NOT NULL DEFAULT '0.00',
  `ranking` double(10,2) NOT NULL DEFAULT '0.00',
  `uprdate` date NOT NULL,
  `barts` varchar(255) DEFAULT NULL,
  `ausername` varchar(30) NOT NULL,
  `listcon` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `barclass` (`barclass`),
  KEY `recommend` (`recommend`),
  KEY `barname` (`barname`),
  KEY `rankingq` (`rankingq`),
  KEY `rankings` (`rankings`),
  KEY `ranking` (`ranking`),
  KEY `uprdate` (`uprdate`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
吧务管理申请表
*/
DROP TABLE IF EXISTS phpcolor_barmaudit;
CREATE TABLE IF NOT EXISTS `phpcolor_barmaudit` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `bid` mediumint(8) NOT NULL,
  `introduction` text,
  `usernc` varchar(255) DEFAULT NULL,
  `baruserp` mediumint(1) NOT NULL DEFAULT '0',
  `apply` mediumint(1) NOT NULL DEFAULT '0',
  `rankfw` mediumint(1) NOT NULL DEFAULT '0',
  `rankzt` mediumint(1) NOT NULL DEFAULT '0',
  `rankhf` mediumint(1) NOT NULL DEFAULT '0',
  `visitor` mediumint(1) NOT NULL DEFAULT '9',
  `verify` mediumint(1) NOT NULL DEFAULT '9',
  `style` mediumint(8) NOT NULL DEFAULT '0',
  `way` text,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧域名表
*/
DROP TABLE IF EXISTS phpcolor_bar_domain;
CREATE TABLE IF NOT EXISTS `phpcolor_bar_domain` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `bid` mediumint(8) NOT NULL,
  `domain` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bid` (`bid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
贴吧导航表
*/
DROP TABLE IF EXISTS phpcolor_bar_nav;
CREATE TABLE IF NOT EXISTS `phpcolor_bar_nav` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `link` varchar(255) NOT NULL,
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `type` mediumint(1) NOT NULL DEFAULT '1',
  `colors` varchar(7) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
贴吧会员表
*/
DROP TABLE IF EXISTS phpcolor_bar_user;
CREATE TABLE IF NOT EXISTS `phpcolor_bar_user` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `bid` mediumint(8) NOT NULL,
  `rank` mediumint(1) NOT NULL DEFAULT '0',
  `integral` mediumint(8) NOT NULL,
  `accesstime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`),
  KEY `bid` (`bid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
禁言表
*/
DROP TABLE IF EXISTS phpcolor_block;
CREATE TABLE IF NOT EXISTS `phpcolor_block` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `barid` mediumint(8) NOT NULL DEFAULT '0',
  `blocktime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `removetime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `operate` varchar(30) NOT NULL,
  `yuanyin` text,
  PRIMARY KEY (`id`),
  KEY `fengsuo` (`username`,`barid`,`removetime`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
小说表
*/
DROP TABLE IF EXISTS phpcolor_book;
CREATE TABLE IF NOT EXISTS `phpcolor_book` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `bookname` varchar(255) NOT NULL,
  `author` varchar(255) DEFAULT NULL,
  `introduction` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `jointime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `click` mediumint(8) NOT NULL DEFAULT '0',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `recommend` mediumint(1) NOT NULL DEFAULT '0',
  `recommendb` mediumint(1) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  `cid` mediumint(8) NOT NULL,
  `ctheme` varchar(255) NOT NULL,
  `sqldata` mediumint(8) NOT NULL DEFAULT '1',
  `sqldatas` mediumint(8) NOT NULL DEFAULT '0',
  `sqltable` mediumint(8) NOT NULL DEFAULT '1',
  `sqltables` mediumint(8) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `bookname` (`bookname`),
  KEY `uptime` (`uptime`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
章节表
*/
DROP TABLE IF EXISTS phpcolor_book_chapter_0;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_0` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_1;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_1` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_2;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_2` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_3;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_3` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_4;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_4` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_5;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_5` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_6;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_6` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_7;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_7` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_8;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_8` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
DROP TABLE IF EXISTS phpcolor_book_chapter_9;
CREATE TABLE IF NOT EXISTS `phpcolor_book_chapter_9` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(255) NOT NULL,
  `content` text,
  `words` mediumint(8) NOT NULL DEFAULT '0',
  `uptime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `volume` mediumint(8) NOT NULL DEFAULT '0',
  `status` mediumint(1) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `rule` varchar(255) DEFAULT NULL,
  `ruleid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
小说分类表
*/
DROP TABLE IF EXISTS phpcolor_book_class;
CREATE TABLE IF NOT EXISTS `phpcolor_book_class` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `classname` varchar(30) NOT NULL,
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
小说数据库信息表
*/
DROP TABLE IF EXISTS phpcolor_book_sql;
CREATE TABLE IF NOT EXISTS `phpcolor_book_sql` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `did` mediumint(8) NOT NULL DEFAULT '1',
  `sqlhost` varchar(255) NOT NULL,
  `sqldb` varchar(255) NOT NULL,
  `sqluser` varchar(255) NOT NULL,
  `sqlpw` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `did` (`did`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
小说分卷表
*/
DROP TABLE IF EXISTS phpcolor_book_volume;
CREATE TABLE IF NOT EXISTS `phpcolor_book_volume` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `volumename` varchar(255) NOT NULL,
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
贴子采集暂存表
*/
DROP TABLE IF EXISTS phpcolor_cache_post;
CREATE TABLE IF NOT EXISTS `phpcolor_cache_post` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(100) NOT NULL,
  `content` text NOT NULL,
  `file` text NOT NULL,
  `author` varchar(30) NOT NULL,
  `published` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL,
  `barurl` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
贴吧分类表
*/
DROP TABLE IF EXISTS phpcolor_class;
CREATE TABLE IF NOT EXISTS `phpcolor_class` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `classname` varchar(30) NOT NULL,
  `belong` mediumint(8) NOT NULL DEFAULT '0',
  `introduction` text,
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  `base` mediumint(1) NOT NULL DEFAULT '0',
  `indexs` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`),
  KEY `queue` (`queue`),
  KEY `base` (`base`),
  KEY `indexs` (`indexs`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
禁用词语表
*/
DROP TABLE IF EXISTS phpcolor_filter;
CREATE TABLE IF NOT EXISTS `phpcolor_filter` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `content` varchar(30) NOT NULL,
  `fanwei` mediumint(1) NOT NULL DEFAULT '2',
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `type` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
flash表
*/
DROP TABLE IF EXISTS phpcolor_flash;
CREATE TABLE IF NOT EXISTS `phpcolor_flash` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `flashname` varchar(30) NOT NULL,
  `belong` mediumint(1) NOT NULL DEFAULT '1',
  `flashurl` varchar(255) NOT NULL,
  `flashimg` varchar(255) NOT NULL,
  `introduction` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
热门关键词表
*/
DROP TABLE IF EXISTS phpcolor_hotkey;
CREATE TABLE IF NOT EXISTS `phpcolor_hotkey` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `hotkey` varchar(255) NOT NULL,
  `click` mediumint(8) NOT NULL,
  `status` mediumint(1) NOT NULL,
  `hottime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
搜索热门关键词表
*/
DROP TABLE IF EXISTS phpcolor_hotkey_so;
CREATE TABLE IF NOT EXISTS `phpcolor_hotkey_so` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `users` varchar(255) NOT NULL,
  `hotkey` varchar(255) NOT NULL,
  `click` mediumint(8) NOT NULL,
  `hottime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
首页推荐表
*/
DROP TABLE IF EXISTS phpcolor_index;
CREATE TABLE IF NOT EXISTS `phpcolor_index` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `type` mediumint(1) NOT NULL,
  `yid` mediumint(8) NOT NULL,
  `belong` mediumint(8) NOT NULL,
  `theme` varchar(100) NOT NULL,
  `barname` varchar(100) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
首页幻灯片表
*/
DROP TABLE IF EXISTS phpcolor_indexpic;
CREATE TABLE IF NOT EXISTS `phpcolor_indexpic` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(100) NOT NULL,
  `picture` varchar(255) NOT NULL,
  `link` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
个性首页用户连接表
*/
DROP TABLE IF EXISTS phpcolor_indexu;
CREATE TABLE IF NOT EXISTS `phpcolor_indexu` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `urlname` varchar(255) NOT NULL,
  `url` varchar(255) NOT NULL,
  `click` mediumint(8) NOT NULL,
  `queue` mediumint(8) NOT NULL,
  `belong` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
积分日志表
*/
DROP TABLE IF EXISTS phpcolor_integral_log;
CREATE TABLE IF NOT EXISTS `phpcolor_integral_log` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `sid` varchar(14) NOT NULL,
  `username` varchar(30) NOT NULL,
  `objects` varchar(30) NOT NULL,
  `integral` mediumint(8) NOT NULL,
  `type` mediumint(2) NOT NULL,
  `operatetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `username` (`username`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
友情链接表
*/
DROP TABLE IF EXISTS phpcolor_link;
CREATE TABLE IF NOT EXISTS `phpcolor_link` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `link` varchar(255) NOT NULL,
  `picture` varchar(255) DEFAULT NULL,
  `type` mediumint(1) NOT NULL,
  `queue` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
前后台管理日志表
*/
DROP TABLE IF EXISTS phpcolor_log;
CREATE TABLE IF NOT EXISTS `phpcolor_log` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `operate` text NOT NULL,
  `username` varchar(30) NOT NULL,
  `operatetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip` varchar(15) NOT NULL,
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
短消息表
*/
DROP TABLE IF EXISTS phpcolor_message;
CREATE TABLE IF NOT EXISTS `phpcolor_message` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `content` text NOT NULL,
  `addresser` varchar(30) NOT NULL,
  `addressee` varchar(30) NOT NULL,
  `sent` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `isread` mediumint(1) NOT NULL DEFAULT '0',
  `type` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `addressee` (`addressee`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
导航表
*/
DROP TABLE IF EXISTS phpcolor_nav;
CREATE TABLE IF NOT EXISTS `phpcolor_nav` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `link` varchar(255) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '1',
  `queue` mediumint(8) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
个人最新动态表
*/
DROP TABLE IF EXISTS phpcolor_new;
CREATE TABLE IF NOT EXISTS `phpcolor_new` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `cid` mediumint(8) NOT NULL DEFAULT '0',
  `published` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '1',
  `ishide` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
支付订单表
*/
DROP TABLE IF EXISTS phpcolor_pay;
CREATE TABLE IF NOT EXISTS `phpcolor_pay` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `sid` varchar(14) NOT NULL,
  `username` varchar(30) NOT NULL,
  `objects` varchar(30) DEFAULT NULL,
  `money` float(10,2) NOT NULL,
  `status` mediumint(1) NOT NULL,
  `type` mediumint(1) NOT NULL,
  `operatetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
个人空间照片表
*/
DROP TABLE IF EXISTS phpcolor_picture;
CREATE TABLE IF NOT EXISTS `phpcolor_picture` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `introduction` text,
  `filename` varchar(30) NOT NULL,
  `filesize` varchar(30) NOT NULL,
  `uid` mediumint(8) NOT NULL,
  `belong` mediumint(8) NOT NULL,
  `uptime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `uid` (`uid`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧公告表
*/
DROP TABLE IF EXISTS phpcolor_placard;
CREATE TABLE IF NOT EXISTS `phpcolor_placard` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `tid` mediumint(8) NOT NULL,
  `theme` varchar(100) NOT NULL,
  `placardtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧插件表
*/
DROP TABLE IF EXISTS phpcolor_plugin;
CREATE TABLE IF NOT EXISTS `phpcolor_plugin` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '0',
  `state` mediumint(1) NOT NULL DEFAULT '0',
  `link` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
贴子分类表
*/
DROP TABLE IF EXISTS phpcolor_postclass;
CREATE TABLE IF NOT EXISTS `phpcolor_postclass` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `belong` mediumint(8) NOT NULL,
  `queue` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `queue` (`queue`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
每日打卡表
*/
DROP TABLE IF EXISTS phpcolor_punch;
CREATE TABLE IF NOT EXISTS `phpcolor_punch` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `bid` mediumint(8) NOT NULL,
  `published` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
每日签到表
*/
DROP TABLE IF EXISTS phpcolor_qiandao;
CREATE TABLE IF NOT EXISTS `phpcolor_qiandao` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `biaoqing` mediumint(2) NOT NULL,
  `content` text NOT NULL,
  `published` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
回收站表
*/
DROP TABLE IF EXISTS phpcolor_recover;
CREATE TABLE IF NOT EXISTS `phpcolor_recover` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `tid` mediumint(8) NOT NULL,
  `operate` varchar(30) NOT NULL,
  `operatetime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip` varchar(15) NOT NULL,
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
回贴表
*/
DROP TABLE IF EXISTS phpcolor_repost;
CREATE TABLE IF NOT EXISTS `phpcolor_repost` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `content` text NOT NULL,
  `file` varchar(255) DEFAULT NULL,
  `author` varchar(30) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `published` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL,
  `floor` mediumint(8) NOT NULL,
  `state` mediumint(1) NOT NULL DEFAULT '1',
  `ismobile` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `belong` (`belong`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
商城道具表
*/
DROP TABLE IF EXISTS phpcolor_shop_card;
CREATE TABLE IF NOT EXISTS `phpcolor_shop_card` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `cardname` varchar(30) NOT NULL,
  `introduction` text,
  `stock` mediumint(8) NOT NULL,
  `price` mediumint(8) NOT NULL,
  `dprice` mediumint(8) NOT NULL,
  `vprice` mediumint(8) NOT NULL,
  `queue` mediumint(8) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
用户道具表
*/
DROP TABLE IF EXISTS phpcolor_shop_cards;
CREATE TABLE IF NOT EXISTS `phpcolor_shop_cards` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `cardid` mediumint(8) NOT NULL,
  `price` mediumint(8) NOT NULL,
  `status` mediumint(8) NOT NULL,
  `prices` mediumint(8) NOT NULL,
  `cardtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `selltime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
推广表
*/
DROP TABLE IF EXISTS phpcolor_shop_spread;
CREATE TABLE IF NOT EXISTS `phpcolor_spread` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `info` varchar(255) DEFAULT NULL,
  `uid` mediumint(8) NOT NULL,
  `ip` varchar(15) DEFAULT NULL,
  `mac` varchar(255) DEFAULT NULL,
  `spreadcode` varchar(16) DEFAULT NULL,
  `time` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `type` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
贴吧模板表
*/
DROP TABLE IF EXISTS phpcolor_style;
CREATE TABLE IF NOT EXISTS `phpcolor_style` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `link` varchar(100) NOT NULL,
  `phpfile` varchar(100) DEFAULT NULL,
  `type` mediumint(1) NOT NULL,
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
主题表
*/
DROP TABLE IF EXISTS phpcolor_topic;
CREATE TABLE IF NOT EXISTS `phpcolor_topic` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `theme` varchar(100) NOT NULL,
  `content` text NOT NULL,
  `file` varchar(255) DEFAULT NULL,
  `author` varchar(30) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `published` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `reauthor` varchar(30) DEFAULT NULL,
  `republished` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `pxtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `belong` mediumint(8) NOT NULL,
  `postclass` mediumint(8) NOT NULL DEFAULT '0',
  `click` mediumint(8) NOT NULL DEFAULT '0',
  `reply` mediumint(8) NOT NULL DEFAULT '0',
  `top` mediumint(1) NOT NULL DEFAULT '0',
  `boutique` mediumint(1) NOT NULL DEFAULT '0',
  `locks` mediumint(1) NOT NULL DEFAULT '0',
  `vote` mediumint(1) NOT NULL DEFAULT '0',
  `state` mediumint(1) NOT NULL DEFAULT '1',
  `remind` mediumint(1) NOT NULL DEFAULT '0',
  `ismobile` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `theme` (`theme`),
  KEY `belong` (`belong`),
  KEY `top` (`top`),
  KEY `boutique` (`boutique`),
  KEY `pxtime` (`pxtime`),
  KEY `published` (`published`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
附件表
*/
DROP TABLE IF EXISTS phpcolor_upload;
CREATE TABLE IF NOT EXISTS `phpcolor_upload` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `oldfilename` varchar(255) NOT NULL,
  `filename` varchar(30) NOT NULL,
  `filesize` varchar(30) NOT NULL,
  `filetype` mediumint(1) NOT NULL,
  `username` varchar(30) NOT NULL,
  `uptime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `type` mediumint(8) NOT NULL DEFAULT '0',
  `pricetype` mediumint(1) NOT NULL DEFAULT '1',
  `price` mediumint(8) NOT NULL DEFAULT '0',
  `nums` mediumint(8) NOT NULL DEFAULT '0',
  `qltype` mediumint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
用户表
*/
DROP TABLE IF EXISTS phpcolor_user;
CREATE TABLE IF NOT EXISTS `phpcolor_user` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `username` varchar(30) NOT NULL,
  `passwd` varchar(32) NOT NULL,
  `email` varchar(50) DEFAULT NULL,
  `question` varchar(50) DEFAULT NULL,
  `answer` varchar(50) DEFAULT NULL,
  `picture` varchar(255) DEFAULT NULL,
  `userfrom` varchar(50) DEFAULT NULL,
  `sex` varchar(50) DEFAULT NULL,
  `age` varchar(50) DEFAULT NULL,
  `birthday` varchar(50) DEFAULT NULL,
  `zodiac` varchar(50) DEFAULT NULL,
  `constellation` varchar(50) DEFAULT NULL,
  `blood` varchar(50) DEFAULT NULL,
  `school` varchar(50) DEFAULT NULL,
  `profession` varchar(50) DEFAULT NULL,
  `qq` varchar(50) DEFAULT NULL,
  `mobile` varchar(50) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `signature` text,
  `introduction` text,
  `topic` mediumint(8) NOT NULL DEFAULT '0',
  `reply` mediumint(8) NOT NULL DEFAULT '0',
  `integral` mediumint(8) NOT NULL DEFAULT '0',
  `money` float(10,2) NOT NULL DEFAULT '0.00',
  `registered` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `logintime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `loginip` varchar(15) NOT NULL,
  `istyle` mediumint(2) NOT NULL DEFAULT '0',
  `userfriendp` mediumint(1) NOT NULL DEFAULT '0',
  `rank` mediumint(1) NOT NULL DEFAULT '0',
  `usergroup` mediumint(1) NOT NULL DEFAULT '1',
  `state` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`username`),
  KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk;
/*
用户收藏贴吧表
*/
DROP TABLE IF EXISTS phpcolor_user_barfavorite;
CREATE TABLE IF NOT EXISTS `phpcolor_user_barfavorite` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `bid` mediumint(8) NOT NULL,
  `uid` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
邀请注册码表
*/
DROP TABLE IF EXISTS phpcolor_user_code;
CREATE TABLE IF NOT EXISTS `phpcolor_user_code` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `code` varchar(32) NOT NULL,
  `uid` mediumint(8) NOT NULL DEFAULT '0',
  `time` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `state` mediumint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `code` (`code`),
  KEY `uid` (`uid`),
  KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
好友表
*/
DROP TABLE IF EXISTS phpcolor_user_friends;
CREATE TABLE IF NOT EXISTS `phpcolor_user_friends` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `did` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
用户收藏贴子表
*/
DROP TABLE IF EXISTS phpcolor_user_postfavorite;
CREATE TABLE IF NOT EXISTS `phpcolor_user_postfavorite` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `pid` mediumint(8) NOT NULL,
  `uid` mediumint(8) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
VIP用户表
*/
DROP TABLE IF EXISTS phpcolor_vip;
CREATE TABLE IF NOT EXISTS `phpcolor_vip` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `uid` mediumint(8) NOT NULL,
  `stime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `etime` timestamp NULL DEFAULT '0000-00-00 00:00:00',
  `type` mediumint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
/*
投票表
*/
DROP TABLE IF EXISTS phpcolor_vote;
CREATE TABLE IF NOT EXISTS `phpcolor_vote` (
  `id` mediumint(8) NOT NULL AUTO_INCREMENT,
  `tid` mediumint(8) NOT NULL,
  `options` text NOT NULL,
  `result` varchar(255) NOT NULL,
  `type` mediumint(1) NOT NULL DEFAULT '0',
  `state` mediumint(1) NOT NULL DEFAULT '0',
  `qita` mediumint(1) NOT NULL DEFAULT '0',
  `zdhf` mediumint(1) NOT NULL DEFAULT '0',
  `already` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
