--
-- 表的结构 `#@__admin`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hits` int(11) NOT NULL,
  `user` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `salt` varchar(6) NOT NULL,
  `permissions` mediumtext NOT NULL,
  `lasttime` int(100) NOT NULL,
  `ip` varchar(100) NOT NULL,
  `lastip` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;

--
-- 表的结构 `#@__book`
--tun2cmsmysqlinstall
CREATE TABLE IF NOT EXISTS `#@__book` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(200) NOT NULL,
  `tel` int(11) NOT NULL,
  `content` mediumtext NOT NULL,
  `ip` varchar(200) NOT NULL,
  `time` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

--
-- 表的结构 `#@__email`
--tun2cmsmysqlinstall
CREATE TABLE IF NOT EXISTS `#@__email` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(200) NOT NULL,
  `email` varchar(200) NOT NULL,
  `ip` varchar(200) NOT NULL,
  `time` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;







--
-- 表的结构 `#@__columns`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__columns` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `bid` varchar(200) NOT NULL,
  `module` varchar(200) NOT NULL,
  `templates` varchar(200) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `subtitle` varchar(200) NOT NULL,
  `hide` int(5) NOT NULL,
  `description` mediumtext NOT NULL,
  `keywords` mediumtext NOT NULL,
  `time` int(11) NOT NULL,
  `permute` int(11) NOT NULL,
  `url` varchar(200) NOT NULL,
  `content` mediumtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;

--
-- 表的结构 `#@__config`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__config` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `web_url` varchar(100) DEFAULT NULL,
  `web_name` varchar(100) DEFAULT NULL,
  `web_logo` varchar(100) DEFAULT NULL,
  `web_keywords` mediumtext,
  `web_description` mediumtext,
  `tun2_key` varchar(100) DEFAULT NULL,
  `editor_style` varchar(200) NOT NULL,
  `address` varchar(200) NOT NULL,
  `tel` varchar(100) DEFAULT NULL,
  `icp` varchar(100) DEFAULT NULL,
  `web_html_mode` varchar(100) DEFAULT 'php',
  `skin_dir` varchar(100) DEFAULT 'default',
  `skin_cache` varchar(100) DEFAULT 'default',
  `web_html_dir` varchar(100) DEFAULT 'html/',
  `web_html_name` int(11) DEFAULT '1',
  `web_dir` varchar(100) DEFAULT '/',
  `upfile` varchar(100) DEFAULT 'upfile/',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;


--
-- 表的结构 `#@__content`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hits` int(11) NOT NULL,
  `cid` int(11) NOT NULL,
  `hide` int(1) NOT NULL,
  `title` varchar(200) NOT NULL,
  `subtitle` varchar(200) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `description` varchar(200) NOT NULL,
  `time` int(11) NOT NULL,
  `permute` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;


--
-- 表的结构 `#@__links`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__links` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `type` smallint(6) DEFAULT NULL,
  `column` varchar(50) NOT NULL,
  `title` varchar(50) DEFAULT NULL,
  `pic` varchar(50) DEFAULT NULL,
  `url` varchar(100) DEFAULT NULL,
  `note` varchar(100) DEFAULT NULL,
  `permute` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;


--
-- 表的结构 `#@__links_columns`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__links_columns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `note` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;



--
-- 表的结构 `#@__log`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__log` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `content` varchar(50) DEFAULT NULL,
  `time` varchar(100) DEFAULT NULL,
  `user` varchar(50) DEFAULT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8  ;


--
-- 表的结构 `#@__module`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__module` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL,
  `alias` varchar(200) NOT NULL,
  `content` mediumtext NOT NULL,
  `time` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 ;


--
-- 表的结构 `#@__slides`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__slides` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(50) DEFAULT NULL,
  `cid` int(11) NOT NULL,
  `thumbnail` varchar(100) NOT NULL,
  `pic` varchar(100) DEFAULT NULL,
  `permute` int(11) unsigned DEFAULT '0',
  `url` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;



--
-- 表的结构 `#@__slides_columns`
--tun2cmsmysqlinstall

CREATE TABLE IF NOT EXISTS `#@__slides_columns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `note` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
