-- phpMyAdmin SQL Dump
-- version 2.11.4
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2009 年 04 月 02 日 13:16
-- 服务器版本: 5.0.51
-- PHP 版本: 5.2.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- 数据库: `thinkcms`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_access`
--
CREATE TABLE IF NOT EXISTS `thinkcms_access` (
`groupId` smallint(6) unsigned NOT NULL,
`nodeId` smallint(6) unsigned NOT NULL,
`level` tinyint(1) NOT NULL,
`parentNodeId` smallint(6) NOT NULL,
`status` tinyint(1) default NULL,
KEY `groupId` (`groupId`),
KEY `nodeId` (`nodeId`),
KEY `level` (`level`),
KEY `parentNodeId` (`parentNodeId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 导出表中的数据 `thinkcms_access`
--
INSERT INTO `thinkcms_access` (`groupId`, `nodeId`, `level`, `parentNodeId`, `status`) VALUES
(1, 1, 1, 0, NULL),
(1, 50, 2, 1, NULL),
(1, 37, 2, 1, NULL),
(1, 43, 3, 3, NULL),
(2, 7, 2, 1, NULL),
(2, 3, 2, 1, NULL),
(2, 8, 3, 2, NULL),
(2, 9, 3, 2, NULL),
(2, 10, 3, 2, NULL),
(1, 32, 2, 1, NULL),
(1, 12, 3, 2, NULL),
(1, 11, 3, 2, NULL),
(1, 10, 3, 2, NULL),
(1, 9, 3, 2, NULL),
(1, 8, 3, 2, NULL),
(1, 13, 3, 2, NULL),
(1, 14, 3, 2, NULL),
(1, 15, 3, 2, NULL),
(1, 16, 3, 6, NULL),
(2, 2, 2, 1, NULL),
(1, 28, 2, 1, NULL),
(1, 21, 2, 1, NULL),
(1, 20, 2, 1, NULL),
(1, 19, 2, 1, NULL),
(1, 6, 2, 1, NULL),
(1, 5, 2, 1, NULL),
(1, 27, 1, 0, NULL),
(1, 3, 2, 1, NULL),
(1, 2, 2, 1, NULL),
(1, 30, 3, 19, NULL),
(1, 31, 3, 19, NULL);
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_ads`
--
CREATE TABLE IF NOT EXISTS `thinkcms_ads` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`adname` varchar(255) NOT NULL,
`place` varchar(20) NOT NULL,
`type` varchar(6) NOT NULL,
`content` text NOT NULL,
`morebz` varchar(200) NOT NULL,
`status` tinyint(2) unsigned NOT NULL,
`cTime` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 导出表中的数据 `thinkcms_ads`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_announce`
--
CREATE TABLE IF NOT EXISTS `thinkcms_announce` (
`id` mediumint(8) NOT NULL auto_increment,
`aTitle` varchar(128) NOT NULL,
`aContent` text NOT NULL,
`status` int(2) unsigned NOT NULL,
`cTime` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `anId` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- 导出表中的数据 `thinkcms_announce`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_article`
--
CREATE TABLE IF NOT EXISTS `thinkcms_article` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`uid` mediumint(8) unsigned NOT NULL,
`menuId` mediumint(8) unsigned NOT NULL,
`title` varchar(225) NOT NULL,
`titlecolor` varchar(20) NOT NULL,
`readCount` mediumint(11) NOT NULL,
`commentCount` mediumint(5) unsigned NOT NULL,
`aContent` longtext NOT NULL,
`tags` varchar(255) NOT NULL,
`status` tinyint(2) NOT NULL,
`mTime` int(11) NOT NULL,
`cTime` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 导出表中的数据 `thinkcms_article`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_attach`
--
CREATE TABLE IF NOT EXISTS `thinkcms_attach` (
`attid` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`type` varchar(255) default NULL,
`size` varchar(20) NOT NULL,
`extension` varchar(20) NOT NULL,
`savepath` varchar(255) NOT NULL,
`savename` varchar(255) NOT NULL,
`module` varchar(100) NOT NULL,
`recordId` int(11) NOT NULL,
`userId` int(11) unsigned default NULL,
`uploadTime` int(11) unsigned default NULL,
`downCount` mediumint(9) unsigned default '0',
`hash` varchar(32) NOT NULL,
`verify` varchar(8) NOT NULL,
`remark` varchar(255) default NULL,
`version` mediumint(6) unsigned NOT NULL default '0',
`updateTime` int(12) unsigned default NULL,
`downloadTime` int(11) unsigned NOT NULL,
PRIMARY KEY (`attid`),
KEY `module` (`module`),
KEY `recordId` (`recordId`),
KEY `userId` (`userId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 导出表中的数据 `thinkcms_attach`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_comment`
--
CREATE TABLE IF NOT EXISTS `thinkcms_comment` (
`acid` mediumint(5) unsigned NOT NULL auto_increment,
`recordId` int(11) unsigned NOT NULL default '0',
`author` varchar(50) NOT NULL default '',
`email` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`ip` varchar(25) NOT NULL default '',
`content` text NOT NULL,
`cTime` int(11) unsigned NOT NULL default '0',
`agent` varchar(255) default NULL,
`status` tinyint(1) unsigned NOT NULL default '0',
`module` varchar(50) NOT NULL,
PRIMARY KEY (`acid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 导出表中的数据 `thinkcms_comment`
--
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_group`
--
CREATE TABLE IF NOT EXISTS `thinkcms_group` (
`id` smallint(6) unsigned NOT NULL auto_increment,
`name` varchar(20) NOT NULL,
`pid` smallint(6) default NULL,
`status` tinyint(1) unsigned default NULL,
`remark` varchar(255) default NULL,
`ename` varchar(5) default NULL,
PRIMARY KEY (`id`),
KEY `parentId` (`pid`),
KEY `ename` (`ename`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- 导出表中的数据 `thinkcms_group`
--
INSERT INTO `thinkcms_group` (`id`, `name`, `pid`, `status`, `remark`, `ename`) VALUES
(1, '管理员组', NULL, 1, '具有一般管理员权限', NULL),
(2, '普通用户组', NULL, 1, '一般用户权限', NULL);
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_groupuser`
--
CREATE TABLE IF NOT EXISTS `thinkcms_groupuser` (
`groupId` mediumint(9) unsigned default NULL,
`userId` mediumint(9) unsigned default NULL,
KEY `groupId` (`groupId`),
KEY `userId` (`userId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 导出表中的数据 `thinkcms_groupuser`
--
INSERT INTO `thinkcms_groupuser` (`groupId`, `userId`) VALUES
(1, 1);
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_links`
--
CREATE TABLE IF NOT EXISTS `thinkcms_links` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`lname` varchar(32) NOT NULL,
`linkto` varchar(255) NOT NULL,
`lpic` varchar(255) NOT NULL,
`lintro` varchar(128) NOT NULL,
`displayorder` int(64) unsigned NOT NULL default '1',
`status` tinyint(1) unsigned NOT NULL default '1',
`cTime` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
--
-- 导出表中的数据 `thinkcms_links`
--
INSERT INTO `thinkcms_links` (`id`, `lname`, `linkto`, `lpic`, `lintro`, `displayorder`, `status`, `cTime`) VALUES
(1, 'ThinkCMS', 'http://www.tpcms.cn', 'http://www.tpcms.cn/CMS/Tpl/default/Public/images/logo8831.gif', 'ThinkPHP', 0, 1, 0);
-- --------------------------------------------------------
--
-- 表的结构 `thinkcms_menu`
--
CREATE TABLE IF NOT EXISTS `thinkcms_menu` (
`id` mediumint(8) NOT NULL auto_increment,
`moduleId` varchar(30) NOT NULL,
`mname` varchar(30) NOT NULL,
`mcnname` varchar(30) NOT NULL,
`orderId` tinyint(2) NOT NULL,
`topMenu` tinyint(2) unsigned NOT NULL,
`indexMenu` tinyint(2) unsigned NOT NULL,
`status` tinyint(2) NOT NULL,
`cTime` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
--
-- 导出表中的数据 `thinkcms_menu`
--
-- -----------------------------