SET FOREIGN_KEY_CHECKS=0;

DROP TABLE IF EXISTS `dunling_admin`;
CREATE TABLE `dunling_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adminname` varchar(255) DEFAULT NULL,
  `adminpass` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_article`;
CREATE TABLE `dunling_article` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lanmu` varchar(11) DEFAULT NULL,
  `pv` int(11) DEFAULT '0',
  `title` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `content` varchar(5000) DEFAULT NULL,
  `jianjie` varchar(1000) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `editor` varchar(255) DEFAULT 'Admin',
  `laiyuan` varchar(255) DEFAULT NULL,
  `bianji` varchar(255) DEFAULT NULL,
  `images` varchar(300) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_biangeng`;
CREATE TABLE `dunling_biangeng` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `biangeng` varchar(255) DEFAULT NULL,
  `xingming` varchar(255) DEFAULT NULL,
  `shenfenzheng` varchar(255) DEFAULT NULL,
  `shenhe` int(11) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_config`;
CREATE TABLE `dunling_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `danjia` int(11) DEFAULT NULL,
  `shouxu` int(11) DEFAULT NULL,
  `ipdanjia` int(11) DEFAULT NULL,
  `pvdanjia` int(11) DEFAULT NULL,
  `uuid` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `baishigu_sq` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=gbk;

INSERT INTO `dunling_config` VALUES ('1', '盾灵智能流量CMS系统 V2.0', '盾灵自动流量CMS系统,盾灵CMS,盾灵CMS系统,分享赚钱的CMS系统', '盾灵自动流量CMS系统 V2.0,简单建网站,轻松来流量,从此网站流量不再愁', '/up/image/20140324/20140324181928_26734.jpg', '50', '1', '5', '3', 'ecbbc3a1-a190-42a4-be8e-ad56bb5c0d6f ', 'http://127.0.0.1/', '');

DROP TABLE IF EXISTS `dunling_duihuan_bili`;
CREATE TABLE `dunling_duihuan_bili` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` varchar(10) DEFAULT NULL,
  `danjia` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=gbk;

INSERT INTO `dunling_duihuan_bili` VALUES ('1', '06-28', '100');
INSERT INTO `dunling_duihuan_bili` VALUES ('2', '06-29', '102');
INSERT INTO `dunling_duihuan_bili` VALUES ('3', '06-30', '92');
INSERT INTO `dunling_duihuan_bili` VALUES ('4', '07-01', '105');
INSERT INTO `dunling_duihuan_bili` VALUES ('5', '07-02', '99');
INSERT INTO `dunling_duihuan_bili` VALUES ('6', '07-03', '102');
INSERT INTO `dunling_duihuan_bili` VALUES ('7', '07-04', '100');
INSERT INTO `dunling_duihuan_bili` VALUES ('8', '07-05', '110');
INSERT INTO `dunling_duihuan_bili` VALUES ('9', '07-06', '107');
INSERT INTO `dunling_duihuan_bili` VALUES ('10', '07-07', '108');
INSERT INTO `dunling_duihuan_bili` VALUES ('11', '07-08', '95');
INSERT INTO `dunling_duihuan_bili` VALUES ('12', '07-09', '99');
INSERT INTO `dunling_duihuan_bili` VALUES ('13', '07-10', '101');
INSERT INTO `dunling_duihuan_bili` VALUES ('14', '07-11', '83');
INSERT INTO `dunling_duihuan_bili` VALUES ('15', '07-12', '98');
INSERT INTO `dunling_duihuan_bili` VALUES ('16', '07-13', '103');
INSERT INTO `dunling_duihuan_bili` VALUES ('17', '07-14', '105');
INSERT INTO `dunling_duihuan_bili` VALUES ('18', '07-15', '99');
INSERT INTO `dunling_duihuan_bili` VALUES ('19', '07-16', '108');
INSERT INTO `dunling_duihuan_bili` VALUES ('20', '07-17', '99');
INSERT INTO `dunling_duihuan_bili` VALUES ('21', '07-18', '97');
INSERT INTO `dunling_duihuan_bili` VALUES ('22', '07-19', '102');

DROP TABLE IF EXISTS `dunling_duihuan_chongzhi`;
CREATE TABLE `dunling_duihuan_chongzhi` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `mianzhi` int(11) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `jifen` int(11) DEFAULT NULL,
  `tel` varchar(255) DEFAULT NULL,
  `zhuangtai` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_duihuan_log`;
CREATE TABLE `dunling_duihuan_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `jifen` int(11) DEFAULT NULL,
  `money` double(12,4) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `shengyu` int(11) DEFAULT NULL,
  `xingwei` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_ip`;
CREATE TABLE `dunling_ip` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `referer` varchar(500) DEFAULT '0',
  `money` int(11) DEFAULT NULL,
  `pv` int(11) DEFAULT '0',
  `yemian` varchar(255) DEFAULT NULL,
  `agent` varchar(500) DEFAULT NULL,
  `pvmoney` int(11) DEFAULT '0',
  `houdatetime` datetime DEFAULT NULL,
  `houreferer` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_lanmu`;
CREATE TABLE `dunling_lanmu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `lanmu` varchar(255) DEFAULT NULL,
  `mkdir` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=gbk;

INSERT INTO `dunling_lanmu` VALUES ('1', '栏目一', 'a');
INSERT INTO `dunling_lanmu` VALUES ('2', '栏目二', 'b');
INSERT INTO `dunling_lanmu` VALUES ('3', '栏目三', 'c');

DROP TABLE IF EXISTS `dunling_pay`;
CREATE TABLE `dunling_pay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `money` double(10,4) DEFAULT NULL,
  `pay` int(11) DEFAULT NULL,
  `danhao` varchar(50) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `ip` varchar(20) DEFAULT NULL,
  `beizhu` varchar(555) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

DROP TABLE IF EXISTS `dunling_user`;
CREATE TABLE `dunling_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `jifen` int(11) DEFAULT '0',
  `money` double(12,4) DEFAULT '0.0000',
  `zongjifen` int(11) DEFAULT NULL,
  `userpass` varchar(255) DEFAULT NULL,
  `regdatetime` datetime DEFAULT NULL,
  `qq` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `regip` varchar(255) DEFAULT NULL,
  `loginip` varchar(255) DEFAULT NULL,
  `logindatetime` datetime DEFAULT '0000-00-00 00:00:00',
  `jibie` varchar(255) DEFAULT '普通会员',
  `pay` varchar(255) DEFAULT NULL,
  `payname` varchar(255) DEFAULT NULL,
  `payming` varchar(255) DEFAULT NULL,
  `userlock` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=gbk