-- -----------------------------
-- 表的结构 `ds_ad`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_ad` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` tinyint(1) NOT NULL DEFAULT '0',
  `position` tinyint(1) DEFAULT '0',
  `name` varchar(50) NOT NULL,
  `content` text NOT NULL,
  `isshow` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;

-- -----------------------------
-- 转存表中的数据 `ds_ad`
-- -----------------------------

INSERT INTO `ds_ad` (`id`, `title`, `position`, `name`, `content`, `isshow`) VALUES
(1, 1, 1, '首页大幅图片下方 1100', '<script type="text/javascript">\r\n    var cpro_id = "u2167651";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>', 0),
(2, 1, 2, '首页新闻下方 1100', '<script type="text/javascript">\r\n    var cpro_id = "u2167630";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>', 0),
(3, 1, 3, '首页产品右侧 250', '<script type="text/javascript">\r\n    var cpro_id = "u2167625";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>\r\n', 0),
(4, 2, 1, '新闻页广告', '<script type="text/javascript">\r\n    var cpro_id = "u2167665";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>', 0),
(5, 3, 1, '商品页广告', '<script type="text/javascript">\r\n    var cpro_id = "u2167687";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>', 0),
(6, 4, 1, '软件页广告', '<script type="text/javascript">\r\n    var cpro_id = "u2167707";\r\n</script>\r\n<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>', 0);

-- -----------------------------
--  表的结构 `ds_admin`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_admin` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `loginname` varchar(50) NOT NULL,
  `loginpass` varchar(50) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `nickname` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
--  表的结构 `ds_adminlog`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_adminlog` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `adminid` int(10) NOT NULL,
  `value` varchar(255) NOT NULL,
  `timeline` int(11) NOT NULL,
  `createip` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
--  表的结构 `ds_auth_group`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_auth_group` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `module` varchar(20) NOT NULL,
  `type` tinyint(1) NOT NULL,
  `title` varchar(20) NOT NULL,
  `description` varchar(80) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `rules` varchar(500) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

-- -----------------------------
-- 转存表中的数据 `ds_auth_group`
-- -----------------------------

INSERT INTO `ds_auth_group` (`id`, `module`, `type`, `title`, `description`, `status`, `rules`) VALUES
(1, 'admin', 1, '默认管理员', '默认管理员', 1, '1,2,3,4,5,6,7,8,9,10'),
(2, 'admin', 1, '维修员', '维修员', 1, '1,10');

-- -----------------------------
-- 表的结构 `ds_auth_group_access`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_auth_group_access` (
  `uid` int(10) unsigned NOT NULL,
  `group_id` mediumint(8) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- -----------------------------
-- 转存表中的数据 `ds_auth_group_access`
-- -----------------------------

INSERT INTO `ds_auth_group_access` (`uid`, `group_id`) VALUES
(1, 1),
(2, 2);

-- -----------------------------
--  表的结构 `ds_auth_rule`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_auth_rule` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `module` varchar(20) NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '1',
  `name` varchar(80) NOT NULL,
  `title` varchar(20) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `condition` varchar(300) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;

-- -----------------------------
-- 转存表中的数据 `ds_auth_rule`
-- -----------------------------

INSERT INTO `ds_auth_rule` (`id`, `module`, `type`, `name`, `title`, `status`, `condition`) VALUES
(1, 'admin', 1, 'Admin/Index', '1', 1, ''),
(2, 'admin', 1, 'Admin/News', '1', 1, ''),
(3, 'admin', 1, 'Admin/Pro', '1', 1, ''),
(4, 'admin', 1, 'Admin/Soft', '1', 1, ''),
(5, 'admin', 1, 'Admin/User', '1', 1, ''),
(6, 'admin', 1, 'Admin/Web', '1', 1, ''),
(7, 'admin', 1, 'Admin/Config', '1', 1, ''),
(8, 'admin', 1, 'Admin/Case', '1', 1, ''),
(9, 'admin', 1, 'Admin/One', '1', 1, ''),
(10, 'admin', 1, 'Admin/Wx', '1', 1, '');

-- -----------------------------
--  表的结构 `ds_case`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_case` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `hot` tinyint(1) NOT NULL DEFAULT '0',
  `title` varchar(50) NOT NULL,
  `img` varchar(200) NOT NULL,
  `url` varchar(200) NOT NULL,
  `content` text NOT NULL,
  `timeline` int(11) NOT NULL,
  `type` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

-- ----------------------------
-- Records of ds_case
-- ----------------------------

INSERT INTO `ds_case` VALUES ('1', '1', '飘叶网络', '2015-03-16/5506c6443221b.jpg', 'http://www.czreg.com', '<p><span style=\"color: rgb(75, 75, 75); line-height: 28px; font-family: arial, 宋体; font-size: 14px;\">飘叶网络成立于2009年，</span>专业从事于个人电脑维护，系统安装，软、硬件维修，电脑配件零售业务，<span style=\"color: rgb(255, 0, 0);\">企业网站建设</span>，发票套打设计、企业服务器维护，企业电脑、网络维护，综合布线，游戏点卡批发零售业务，欢迎各企业、网吧以及个人来电咨询！</p>', '1419951728', '1');

-- -----------------------------
-- 表的结构 `ds_config`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_config` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) DEFAULT NULL,
  `phone` varchar(50) NOT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `logo` varchar(100) DEFAULT NULL,
  `ver` varchar(50) NOT NULL,
  `qq` varchar(50) NOT NULL,
  `address` varchar(100) NOT NULL,
  `upimg` tinyint(1) NOT NULL DEFAULT '0',
  `imgurl` varchar(200) NOT NULL,
  `serverid` int(10) NOT NULL DEFAULT '0',
  `verifystring` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

-- -----------------------------
--  转存表中的数据 `ds_config`
-- -----------------------------

INSERT INTO `ds_config` (`id`, `title`, `phone`, `keywords`, `description`, `logo`, `ver`, `qq`, `address`, `upimg`, `imgurl`, `serverid`, `verifystring`) VALUES
(1, '龙城资讯', '138****8888', 'keywords 填写', 'description 填写', '2015-05-30/55691669d0b00.png', '', '', 'add', 0, '', 0, '');

-- -----------------------------
-- 表的结构 `ds_flash`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_flash` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `url` varchar(80) DEFAULT NULL,
  `image` varchar(80) DEFAULT NULL,
  `title` varchar(80) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

-- -----------------------------
--  转存表中的数据 `ds_flash`
-- -----------------------------

INSERT INTO `ds_flash` (`id`, `url`, `image`, `title`) VALUES
(1, '/news', '2015-03-16/5506c60d28466.jpg', '首页'),
(3, '/news', '2015-03-16/5506c61f5f2f6.jpg', '飘叶网络');

-- -----------------------------
--  表的结构 `ds_ip`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_ip` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `ip` varchar(50) DEFAULT NULL,
  `timeline` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

-- -----------------------------
--  表的结构 `ds_jflog`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_jflog` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `userid` int(10) NOT NULL,
  `date` date DEFAULT NULL,
  `jf` int(10) DEFAULT NULL,
  `type` tinyint(1) DEFAULT '1',
  `isin` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
-- 表的结构 `ds_link`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_link` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `url` varchar(200) NOT NULL,
  `img` varchar(200) DEFAULT NULL,
  `ind` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

-- -----------------------------
--  转存表中的数据 `ds_link`
-- -----------------------------

INSERT INTO `ds_link` (`id`, `name`, `url`, `img`, `ind`) VALUES
(1, '龙城资讯', 'http://www.lcmetro.com', NULL, 0),
(2, '常州设计', 'http://www.czreg.com', NULL, 0);

-- -----------------------------
-- 表的结构 `ds_main`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_main` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `url` varchar(150) NOT NULL,
  `num` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;

-- -----------------------------
--  转存表中的数据 `ds_main`
-- -----------------------------

INSERT INTO `ds_main` (`id`, `title`, `url`, `num`) VALUES
(1, '首页', '/', 1),
(3, '新闻', '/news', 2),
(4, '商品', '/pro', 3),
(5, '软件下载', '/soft', 4),
(6, '关于我们', '/about', 5),
(7, '', '', 0),
(8, '', '', 0),
(9, '', '', 0);

-- -----------------------------
--  表的结构 `ds_message`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_message` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) NOT NULL,
  `send` varchar(50) DEFAULT NULL,
  `title` varchar(100) NOT NULL,
  `content` text NOT NULL,
  `timeline` int(11) NOT NULL,
  `isread` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
-- 表的结构 `ds_news`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_news` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) DEFAULT NULL,
  `keywords` varchar(200) NOT NULL,
  `description` varchar(200) NOT NULL,
  `img` varchar(255) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  `timeline` int(10) DEFAULT NULL,
  `content` text,
  `lable` varchar(100) DEFAULT NULL,
  `readnum` int(10) DEFAULT '0',
  `type` int(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

-- ----------------------------
-- Records of cs_news
-- ----------------------------
INSERT INTO `ds_news` VALUES ('1', '网站配置填写方法', '', '', '', null, '1437018011', '<div style=\"padding-right: 10px; padding-left: 10px; line-height: 25px;\"><p style=\"margin-top: 0px; margin-bottom: 0px;\">网站安装完成，打开后台管理-&gt;系统配置-&gt;网站配置，如图：</p><p style=\"margin-top: 0px; margin-bottom: 0px;\"><img src=\"/Uploads/2015-07-16/55a726fea8da0.jpg\" style=\"margin: 0px; padding: 0px; width: 661px;\"/>\r\n &nbsp; &nbsp;</p><p style=\"margin-top: 0px; margin-bottom: 0px;\"><br style=\"margin: 0px; padding: 0px;\"/>\r\n &nbsp; &nbsp;</p><p style=\"margin-top: 0px; margin-bottom: 0px;\">请到官网<a href=\"http://www.czreg.com/\" target=\"_self\" style=\"margin: 0px; padding: 0px; color: rgb(81, 80, 79);\">http://www.czreg.com</a>先注册用户，在用户管理中心点击图中任意一个激活</p><p style=\"margin-top: 0px; margin-bottom: 0px;\"><img src=\"/Uploads/2015-07-16/55a727471948b.png\" style=\"margin: 0px; padding: 0px; width: 661px;\"/>\r\n &nbsp; &nbsp;</p><p style=\"margin-top: 0px; margin-bottom: 0px;\">打开后，如图所示：</p><p style=\"margin-top: 0px; margin-bottom: 0px;\"><img src=\"http://localhost/Uploads/2015-07-16/55a727803d8c8.png\" _src=\"http://localhost/Uploads/2015-07-16/55a727803d8c8.png\"/>\r\n &nbsp; &nbsp;</p><p style=\"margin-top: 0px; margin-bottom: 0px;\">网站地址：填写你的网站访问地址，注意结尾不要带“/”</p><p style=\"margin-top: 0px; margin-bottom: 0px;\">将<span style=\"margin: 0px; padding: 0px; font-family: Helvetica, 微软雅黑; font-size: 13px; font-weight: bold; text-align: right;\"><span style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0);\">网站编号，</span><span style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0);\">通信密钥</span><span style=\"margin: 0px; padding: 0px; color: rgb(127, 127, 127);\">复制到你的网站填写图1黄色框所示的位置</span></span>\r\n &nbsp; &nbsp;</p></div><div class=\"sharebox\" style=\"margin-top: 15px; margin-bottom: 15px; padding-top: 5px; padding-bottom: 5px; border-top-width: 1px; border-top-style: dotted; border-top-color: rgb(204, 204, 204); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(204, 204, 204);\"><div class=\"bdsharebuttonbox bdshare-button-style1-32\" data-bd-bind=\"1437017767323\" style=\"zoom: 1;\"><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_more\" data-cmd=\"more\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(51, 51, 51); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_mshare\" data-cmd=\"mshare\" title=\"分享到一键分享\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -2444px; background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_qzone\" data-cmd=\"qzone\" title=\"分享到QQ空间\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -52px; background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_tsina\" data-cmd=\"tsina\" title=\"分享到新浪微博\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -104px; background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_tqq\" data-cmd=\"tqq\" title=\"分享到腾讯微博\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -260px; background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_douban\" data-cmd=\"douban\" title=\"分享到豆瓣网\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -468px; background-repeat: no-repeat;\"></a><a href=\"http://www.czreg.com/news/20.html#\" class=\"bds_renren\" data-cmd=\"renren\" title=\"分享到人人网\" style=\"margin: 6px 6px 6px 0px; padding: 0px; color: rgb(58, 140, 235); float: left; width: 32px; line-height: 32px; height: 32px; cursor: pointer; text-indent: -100em; overflow: hidden; font-family: Helvetica, 微软雅黑; font-size: 13px; white-space: normal; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_1_32.png?v=e97a5b25.png); background-position: 0px -208px; background-repeat: no-repeat;\"></a>\r\n &nbsp; &nbsp;</div></div><p><br/></p>', '', '2', '2');
INSERT INTO `ds_news` VALUES ('2', '网站使用说明', '', '', '', null, '1437018613', '<p>网站程序 <span style=\"color:#c00000\">免费，</span><span style=\"color:#7f7f7f\">版权所有：常州设计</span></p><p><span style=\"color:#7f7f7f\">同时我们提供收费模板，具体请看测试站：<a href=\"http://test.lcmetro.com/\" target=\"_blank\" title=\"http://test.lcmetro.com/\" _hover-ignore=\"1\" style=\"margin: 0px; padding: 0px; color: rgb(81, 80, 79); font-family: Helvetica, 微软雅黑; font-size: 13px; line-height: 25px; white-space: normal;\">http://test.lcmetro.com/</a></span></p><p>承接网站设计，微信应用开发，程序对接，欢迎与我们联系</p><p>官网：<a href=\"http://www.czreg.com\" target=\"_blank\">http://www.czreg.com</a></p>', '', '2', '1');

-- -----------------------------
--  表的结构 `ds_news_cls`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_news_cls` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `ind` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;

-- -----------------------------
--  转存表中的数据 `ds_news_cls`
-- -----------------------------

INSERT INTO `ds_news_cls` (`id`, `name`, `ind`) VALUES
(1, '最新优惠', 1),
(2, '使用技巧', 1),
(5, 'PHP代码', 1);
-- -----------------------------
--  表的结构 `ds_outh_config`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_outh_config` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `name` varchar(50) NOT NULL,
  `value` varchar(100) NOT NULL,
  `type` tinyint(1) DEFAULT '0' COMMENT '0 普通  1开关',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;

-- -----------------------------
--  转存表中的数据 `ds_outh_config`
-- -----------------------------

INSERT INTO `ds_outh_config` (`id`, `title`, `name`, `value`,`type`) VALUES
(1, 'QQ登陆APP ID', 'qq_id', '',0),
(2, 'QQ登陆APP KEY', 'qq_key', '',0),
(3, '自动维修编号', 'auto_wx', '1', '1'),
(4, '自动维修前辍', 'wx_autono', 'AN', '0'),
(5, '手工维修前辍', 'wx_no', 'WN', '0'),
(6, '手机注册验证', 'phone_auth', '0', '1');

-- -----------------------------
--  表的结构 `ds_pay`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_pay` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `payno` varchar(50) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `title` varchar(50) NOT NULL,
  `status` tinyint(1) NOT NULL,
  `createtime` int(10) NOT NULL,
  `endtime` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
--  表的结构 `ds_pro`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_pro` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `keyword` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `img` varchar(255) NOT NULL,
  `link` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `type` int(10) NOT NULL,
  `timeline` int(10) NOT NULL,
  `money` int(10) DEFAULT NULL,
  `lable` varchar(255) DEFAULT NULL,
  `hot` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `color` varchar(20) NOT NULL,
  `procount` int(10) NOT NULL,
  `paycount` int(10) NOT NULL DEFAULT '0',
  `readnum` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
-- 表的结构 `ds_pro_cls`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_pro_cls` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `ind` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;

-- -----------------------------
--  转存表中的数据 `ds_pro_cls`
-- -----------------------------

INSERT INTO `ds_pro_cls` (`id`, `name`, `ind`) VALUES
(1, '网站', 1),
(2, '电脑', 1),
(3, '网站设计', 1);

-- -----------------------------
--  表的结构 `ds_soft`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_soft` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `title` varchar(50) NOT NULL,
  `keyword` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `color` varchar(50) NOT NULL,
  `img` varchar(255) NOT NULL,
  `link` varchar(255) NOT NULL,
  `content` text NOT NULL,
  `type` int(10) NOT NULL,
  `timeline` int(10) NOT NULL,
  `readnum` int(10) NOT NULL,
  `downnum` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
--  表的结构 `ds_soft_cls`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_soft_cls` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

-- -----------------------------
--  转存表中的数据 `ds_soft_cls`
-- -----------------------------

INSERT INTO `ds_soft_cls` (`id`, `name`) VALUES
(1, '常用软件'),
(2, '系统软件');

-- -----------------------------
--  表的结构 `ds_phone`
-- -----------------------------

CREATE TABLE `ds_phone` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `phone` varchar(50) NOT NULL,
  `phonenum` int(10) NOT NULL,
  `timeline` int(10) NOT NULL,
  `isuse` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- -----------------------------
--  表的结构 `ds_user`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_user` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) DEFAULT NULL,
  `userpass` varchar(50) DEFAULT NULL,
  `nickname` varchar(50) NOT NULL,
  `level` tinyint(1) NOT NULL DEFAULT '1',
  `realname` varchar(50) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `qq` varchar(50) NOT NULL,
  `address` varchar(200) NOT NULL,
  `sex` tinyint(1) NOT NULL DEFAULT '0',
  `birthday` date NOT NULL,
  `jf` int(10) NOT NULL DEFAULT '0',
  `img` varchar(100) NOT NULL,
  `createip` varchar(50) NOT NULL,
  `updataip` varchar(50) NOT NULL,
  `created` int(10) NOT NULL,
  `updataed` int(10) NOT NULL,
  `qqopenid` varchar(80) NOT NULL,
  `serverid` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
-- 表的结构 `ds_wx`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_wx` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `wxno` varchar(50) CHARACTER SET utf8 DEFAULT NULL,
  `userid` int(10) DEFAULT NULL,
  `wxparts` varchar(100) CHARACTER SET utf8 DEFAULT NULL,
  `firstprice` decimal(9,2) DEFAULT '0.00',
  `price` decimal(9,2) DEFAULT '0.00',
  `status` tinyint(1) DEFAULT '0',
  `createtime` int(11) DEFAULT NULL,
  `endtime` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- -----------------------------
-- 表的结构 `ds_wxlog`
-- -----------------------------

CREATE TABLE IF NOT EXISTS `ds_wxlog` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `wxid` int(10) DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `content` text CHARACTER SET utf8,
  `timeline` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;