-- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
-- 
-- 主机: localhost
-- 生成日期: 2013 年 01 月 30 日 14:48
-- 服务器版本: 5.0.51
-- PHP 版本: 5.2.6

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

-- 
-- 数据库: `xdcms`
-- 

-- --------------------------------------------------------

-- 
-- 表的结构 `access`
-- 

CREATE TABLE `access` (
  `role_id` smallint(6) unsigned NOT NULL,
  `node_id` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) NOT NULL,
  `module` varchar(50) default NULL,
  KEY `groupId` (`role_id`),
  KEY `nodeId` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- 
-- 导出表中的数据 `access`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `award`
-- 

CREATE TABLE `award` (
  `id` int(6) NOT NULL auto_increment,
  `title` varchar(30) NOT NULL,
  `image` varchar(100) NOT NULL,
  `type` int(4) NOT NULL,
  `del` int(1) NOT NULL default '0',
  `date` year(4) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `award`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `award_type`
-- 

CREATE TABLE `award_type` (
  `id` int(3) NOT NULL auto_increment,
  `name` varchar(40) NOT NULL,
  `sort` int(3) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

-- 
-- 导出表中的数据 `award_type`
-- 

INSERT INTO `award_type` VALUES (1, '湖南省优质工程', 0, 0);
INSERT INTO `award_type` VALUES (2, '国家优质工程银奖', 0, 0);
INSERT INTO `award_type` VALUES (3, '中国建筑工程鲁班奖', 0, 0);
INSERT INTO `award_type` VALUES (4, '省芙蓉奖', 3, 0);

-- --------------------------------------------------------

-- 
-- 表的结构 `category`
-- 

CREATE TABLE `category` (
  `id` int(4) NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `url` varchar(100) NOT NULL,
  `num` int(2) NOT NULL,
  `sort` int(2) NOT NULL,
  `umen` int(1) NOT NULL default '1',
  `parentid` int(4) NOT NULL default '0',
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `category`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `config`
-- 

CREATE TABLE `config` (
  `id` int(4) NOT NULL,
  `title` varchar(50) NOT NULL,
  `subtitle` varchar(100) NOT NULL,
  `description` varchar(200) NOT NULL,
  `keyword` varchar(100) NOT NULL,
  `icp` varchar(30) NOT NULL,
  `newid` int(2) NOT NULL,
  `subjectid` int(2) NOT NULL,
  `categoryid` int(2) NOT NULL,
  `uploadMax` int(4) NOT NULL,
  `num` int(2) NOT NULL default '15'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- 
-- 导出表中的数据 `config`
-- 

INSERT INTO `config` VALUES (1, '小邓CMS', '', '小邓CMS', '小邓CMS', '湘ICP备1200XXXX', 18, 31, 19, 3, 15);

-- --------------------------------------------------------

-- 
-- 表的结构 `friendship`
-- 

CREATE TABLE `friendship` (
  `id` int(5) NOT NULL auto_increment,
  `option` varchar(20) NOT NULL,
  `show` int(2) NOT NULL,
  `name` varchar(100) NOT NULL,
  `sort` int(3) NOT NULL,
  `category` int(4) NOT NULL,
  `url` varchar(100) NOT NULL,
  `times` int(10) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `friendship`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `friendship_type`
-- 

CREATE TABLE `friendship_type` (
  `id` int(4) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `sort` int(3) NOT NULL,
  `show` int(1) NOT NULL,
  `times` int(10) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `friendship_type`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `history`
-- 

CREATE TABLE `history` (
  `id` int(8) NOT NULL auto_increment,
  `userid` int(4) NOT NULL,
  `ip` varchar(15) NOT NULL,
  `category` int(4) NOT NULL,
  `action` int(4) NOT NULL,
  `time` int(10) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `history`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `honor`
-- 

CREATE TABLE `honor` (
  `id` int(4) NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `images` varchar(100) NOT NULL,
  `ptime` varchar(10) NOT NULL,
  `industry` int(4) NOT NULL,
  `company` varchar(100) NOT NULL,
  `times` int(10) NOT NULL,
  `type` int(4) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `honor`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `industry`
-- 

CREATE TABLE `industry` (
  `id` bigint(4) NOT NULL auto_increment,
  `name` varchar(30) NOT NULL,
  `sort` int(2) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `industry`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `news`
-- 

CREATE TABLE `news` (
  `id` int(6) NOT NULL auto_increment,
  `title` varchar(40) NOT NULL,
  `subtitle` varchar(50) NOT NULL,
  `flash` int(1) NOT NULL,
  `author` int(4) NOT NULL,
  `category` int(4) NOT NULL,
  `orgin` varchar(20) NOT NULL,
  `content` text NOT NULL,
  `times` int(10) NOT NULL,
  `images` varchar(400) NOT NULL,
  `hits` int(5) NOT NULL default '0',
  `top` int(1) NOT NULL default '0',
  `tj` int(1) NOT NULL default '0',
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `news`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `node`
-- 

CREATE TABLE `node` (
  `id` smallint(6) unsigned NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `title` varchar(50) default NULL,
  `status` tinyint(1) default '0',
  `remark` varchar(255) default NULL,
  `sort` smallint(6) unsigned default NULL,
  `pid` smallint(6) unsigned NOT NULL,
  `level` tinyint(1) unsigned NOT NULL,
  PRIMARY KEY  (`id`),
  KEY `level` (`level`),
  KEY `pid` (`pid`),
  KEY `status` (`status`),
  KEY `name` (`name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ;

-- 
-- 导出表中的数据 `node`
-- 

INSERT INTO `node` VALUES (1, 'news', '新闻中心', 1, NULL, 1, 0, 2);
INSERT INTO `node` VALUES (2, 'Culture', 'PDF管理', 1, NULL, 2, 0, 2);
INSERT INTO `node` VALUES (4, 'friendship', '友情链接', 1, NULL, 4, 0, 2);
INSERT INTO `node` VALUES (5, 'public', '公共模块', 0, NULL, NULL, 0, 2);
INSERT INTO `node` VALUES (6, 'index', '添加新闻', 1, NULL, 1, 1, 3);
INSERT INTO `node` VALUES (7, 'lists', '新闻管理', 1, NULL, 2, 1, 3);
INSERT INTO `node` VALUES (9, 'pdf', 'FTP上传', 1, NULL, 1, 2, 3);
INSERT INTO `node` VALUES (10, 'pdfmanage', 'FTP管理', 1, NULL, 2, 2, 3);
INSERT INTO `node` VALUES (15, 'index', '友链管理', 1, NULL, 1, 4, 3);
INSERT INTO `node` VALUES (16, 'manage', '类型管理', 1, NULL, 2, 4, 3);
INSERT INTO `node` VALUES (18, 'category', '网站栏目', 1, NULL, 5, 0, 2);
INSERT INTO `node` VALUES (19, 'category', '栏目管理', 1, NULL, 1, 18, 3);
INSERT INTO `node` VALUES (20, 'categoryAdd', '栏目添加', 1, NULL, 2, 18, 3);
INSERT INTO `node` VALUES (21, 'subject', '专题栏目', 1, NULL, 6, 0, 1);
INSERT INTO `node` VALUES (22, 'manage', '专题管理', 1, NULL, 2, 21, 3);
INSERT INTO `node` VALUES (23, 'index', '添加专题新闻', 1, NULL, 3, 21, 3);
INSERT INTO `node` VALUES (24, 'lists', '专题新闻管理', 1, NULL, 4, 21, 3);
INSERT INTO `node` VALUES (25, 'index', '公司介绍', 1, NULL, 2, 2, 3);
INSERT INTO `node` VALUES (26, 'lists', '公司文化管理', 1, NULL, 3, 2, 3);
INSERT INTO `node` VALUES (27, 'config', '网站配置', 1, NULL, 0, 0, 2);
INSERT INTO `node` VALUES (28, 'index', '网站配置', 1, NULL, 1, 27, 3);
INSERT INTO `node` VALUES (29, 'index', '用户管理', 1, NULL, 1, 30, 3);
INSERT INTO `node` VALUES (30, 'user', '用户管理', 1, NULL, 7, 0, 2);

-- --------------------------------------------------------

-- 
-- 表的结构 `pdf`
-- 

CREATE TABLE `pdf` (
  `id` int(5) NOT NULL auto_increment,
  `name` varchar(20) NOT NULL,
  `category` int(4) NOT NULL,
  `fileaddr` varchar(100) NOT NULL,
  `times` int(10) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `pdf`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `performance`
-- 

CREATE TABLE `performance` (
  `id` int(4) NOT NULL auto_increment,
  `name` varchar(40) NOT NULL,
  `industry` int(4) NOT NULL,
  `b_images` varchar(100) NOT NULL,
  `s_images` varchar(100) NOT NULL,
  `times` int(10) NOT NULL,
  `about` varchar(200) NOT NULL,
  `addr` varchar(100) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `performance`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `qualification`
-- 

CREATE TABLE `qualification` (
  `id` int(5) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `b_images` varchar(100) NOT NULL,
  `times` int(10) NOT NULL,
  `s_images` varchar(100) NOT NULL,
  `category` int(4) NOT NULL,
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- 导出表中的数据 `qualification`
-- 


-- --------------------------------------------------------

-- 
-- 表的结构 `role`
-- 

CREATE TABLE `role` (
  `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,
  PRIMARY KEY  (`id`),
  KEY `pid` (`pid`),
  KEY `status` (`status`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

-- 
-- 导出表中的数据 `role`
-- 

INSERT INTO `role` VALUES (1, '超级管理员', 0, 1, NULL);
INSERT INTO `role` VALUES (2, '部门管理员', 0, 1, NULL);
INSERT INTO `role` VALUES (3, '管理员', 0, 1, NULL);
INSERT INTO `role` VALUES (4, '新闻部门', 2, 1, NULL);
INSERT INTO `role` VALUES (5, '工程部门', 2, 1, NULL);

-- --------------------------------------------------------

-- 
-- 表的结构 `role_user`
-- 

CREATE TABLE `role_user` (
  `role_id` varchar(100) default NULL,
  `user_id` char(32) default NULL,
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- 
-- 导出表中的数据 `role_user`
-- 

INSERT INTO `role_user` VALUES ('1|3|4|', '14');
INSERT INTO `role_user` VALUES ('1|', '6');
INSERT INTO `role_user` VALUES ('1|2|', '15');
INSERT INTO `role_user` VALUES ('1|', '1');
INSERT INTO `role_user` VALUES ('1|', '5');

-- --------------------------------------------------------

-- 
-- 表的结构 `user`
-- 

CREATE TABLE `user` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `account` varchar(64) NOT NULL,
  `nickname` varchar(50) NOT NULL,
  `password` char(40) NOT NULL,
  `last_login_time` int(11) unsigned default '0',
  `last_login_ip` varchar(40) default NULL,
  `login_count` mediumint(8) unsigned default '0',
  `create_time` int(11) unsigned NOT NULL,
  `update_time` int(11) unsigned NOT NULL,
  `status` tinyint(1) default '0',
  `del` int(1) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `account` (`account`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;

-- 
-- 导出表中的数据 `user`
-- 

INSERT INTO `user` VALUES (1, 'admin', '超级管理员', '7c4a8d09ca3762af61e59520943dc26494f8941b', 1359556785, '127.0.0.1', 54, 0, 0, 3, 0);
INSERT INTO `user` VALUES (5, 'admin1', '管理员', '7c4a8d09ca3762af61e59520943dc26494f8941b', 1358322707, '127.0.0.1', 3, 1357487005, 0, 1, 0);
INSERT INTO `user` VALUES (6, 'dengwz7788', '管理员', '7c4a8d09ca3762af61e59520943dc26494f8941b', 1358325406, '127.0.0.1', 5, 1357573268, 0, 1, 0);
INSERT INTO `user` VALUES (14, 'qq12344', '部门管理员', '7c4a8d09ca3762af61e59520943dc26494f8941b', 1358326753, '127.0.0.1', 6, 1358264762, 0, 2, 0);
INSERT INTO `user` VALUES (15, 'dwz123', '部门管理员', '20eabe5d64b0e216796e834f52d61fd0b70332fc', 1359112110, '127.0.0.1', 2, 1359110016, 0, 2, 0);
