DROP TABLE IF EXISTS `{tableprefix}ad`;
CREATE TABLE `{tableprefix}ad` (
  `id` int(8) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `adindex` varchar(100) NOT NULL,
  `url` varchar(100) NOT NULL,
  `site_logo` varchar(100) NOT NULL,
  `type` int(1) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}apisetting`;
CREATE TABLE `{tableprefix}apisetting` (
  `id` int(8) NOT NULL,
  `tao_pid` varchar(50) NOT NULL,
  `tao_appkey` varchar(100) NOT NULL,
  `tao_secret` varchar(100) NOT NULL,
  `tao_cachetime` int(10) NOT NULL,
  `tao_cachepath` varchar(200) NOT NULL,
  `our_appkey` varchar(100) NOT NULL,
  `our_appsecret` varchar(100) NOT NULL,
  `our_cachetime` int(10) NOT NULL,
  `our_cachepath` varchar(200) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `{tableprefix}artile`;
CREATE TABLE `{tableprefix}artile` (
  `id` int(8) NOT NULL auto_increment,
  `pid` int(8) NOT NULL,
  `title` varchar(200) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `info` varchar(1000) NOT NULL,
  `source` varchar(200) NOT NULL,
  `ontop` varchar(2) NOT NULL,
  `hot` varchar(2) NOT NULL,
  `color` varchar(20) NOT NULL,
  `content` text NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}artilenav`;
CREATE TABLE `{tableprefix}artilenav` (
  `id` int(8) NOT NULL auto_increment,
  `name` varchar(200) NOT NULL,
  `info` varchar(400) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `{tableprefix}banconfig`;
CREATE TABLE `{tableprefix}banconfig` (
  `id` int(8) NOT NULL auto_increment,
  `mark` varchar(20) NOT NULL,
  `is_ban` int(1) NOT NULL,
  `ban_content` text default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;

DROP TABLE IF EXISTS `{tableprefix}homenav`;
CREATE TABLE `{tableprefix}homenav` (
  `id` int(8) NOT NULL auto_increment,
  `category` varchar(20) NOT NULL,
  `tao_category` varchar(20) NOT NULL,
  `name` varchar(20) NOT NULL,
  `state` varchar(20) NOT NULL,
  `info` varchar(400) NOT NULL,
  `sort` int(8) NOT NULL,
  `sid` int(8) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}imgsider`;
CREATE TABLE `{tableprefix}imgsider` (
  `id` int(8) NOT NULL auto_increment,
  `title` varchar(100) NOT NULL,
  `url` varchar(100) NOT NULL,
  `site_logo` varchar(100) NOT NULL,
  `sort` int(6) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `{tableprefix}keywords`;
CREATE TABLE `{tableprefix}keywords` (
  `id` int(8) NOT NULL auto_increment,
  `name` varchar(200) NOT NULL,
  `keywords` varchar(200) NOT NULL,
  `category` varchar(200) NOT NULL,
  `color` varchar(200) NOT NULL,
  `sort` int(8) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}level`;
CREATE TABLE `{tableprefix}level` (
  `id` mediumint(8) unsigned NOT NULL auto_increment COMMENT '//id',
  `level_name` varchar(20) NOT NULL COMMENT '//等级名称',
  `info` varchar(400) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
DROP TABLE IF EXISTS `{tableprefix}link`;
CREATE TABLE `{tableprefix}link` (
  `id` int(8) NOT NULL auto_increment,
  `webname` varchar(100) NOT NULL,
  `weburl` varchar(100) NOT NULL,
  `site_logo` varchar(200) NOT NULL,
  `user` varchar(200) NOT NULL,
  `type` int(1) NOT NULL,
  `state` int(1) NOT NULL,
  `sort` int(6) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `{tableprefix}manage`;
CREATE TABLE `{tableprefix}manage` (
  `id` mediumint(8) unsigned NOT NULL auto_increment COMMENT '//id',
  `user` varchar(20) NOT NULL COMMENT '//user',
  `pass` char(40) NOT NULL COMMENT '//pass',
  `level` tinyint(1) unsigned NOT NULL COMMENT '//等级',
  `is_super` tinyint(1) unsigned NOT NULL COMMENT '//超级家管理员',  
  `login_count` smallint(6) unsigned NOT NULL COMMENT '//登录次数',
  `last_ip` varchar(20) NOT NULL COMMENT '//最后登录的ip',
  `last_time` datetime NOT NULL COMMENT '//最后登录的时间',
  `reg_time` datetime NOT NULL COMMENT '//注册时间',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=294 ;
DROP TABLE IF EXISTS `{tableprefix}nav`;
CREATE TABLE `{tableprefix}nav`(
  `id` mediumint(8) unsigned NOT NULL auto_increment COMMENT '//id',
  `category` varchar(20) NOT NULL,
  `tao_category` varchar(20) NOT NULL,
  `name` varchar(20) NOT NULL,
  `url` varchar(200) NOT NULL,
  `state` int(1) NOT NULL,
  `target` varchar(20) NOT NULL,
  `info` varchar(200) default NULL COMMENT '//导航简介',
  `tab` varchar(40) NOT NULL,
  `sort` mediumint(8) unsigned NOT NULL COMMENT '//排序',
  `sid` mediumint(8) NOT NULL COMMENT '//类别',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=43 ;
DROP TABLE IF EXISTS `{tableprefix}recommendshop`;
CREATE TABLE `{tableprefix}recommendshop` (
  `id` int(8) NOT NULL auto_increment,
  `title` varchar(100) NOT NULL,
  `level` varchar(100) NOT NULL,
  `url` varchar(100) NOT NULL,
  `site_logo` varchar(200) NOT NULL,
  `sort` int(6) NOT NULL,
  `info` varchar(400) default NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `{tableprefix}reportbot`;
CREATE TABLE `{tableprefix}reportbot` (
  `id` int(8) NOT NULL auto_increment,
  `botname` varchar(100) NOT NULL,
  `bottag` varchar(100) NOT NULL,
  `botcount` int(6) NOT NULL,
  `botlasturl` varchar(1000) default NULL,
  `botlast` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}seller_cate`;
CREATE TABLE `{tableprefix}seller_cate` (
  `id` int(8) NOT NULL auto_increment,
  `cid` int(8) NOT NULL,
  `name` varchar(200) NOT NULL,
  `count` int(8) NOT NULL,
  `state` int(1) NOT NULL,
  `sort` int(6) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=24 ;
DROP TABLE IF EXISTS `{tableprefix}seller_list`;
CREATE TABLE `{tableprefix}seller_list` (
  `id` int(8) NOT NULL auto_increment,
  `sid` int(8) NOT NULL,
  `name` varchar(200) NOT NULL,
  `site_logo` varchar(200) NOT NULL,
  `net_logo` varchar(200) NOT NULL,
  `sitetype` tinytext NOT NULL,
  `category_id` int(8) NOT NULL,
  `category_name` varchar(200) NOT NULL,
  `recommend` int(1) NOT NULL,
  `click_url` varchar(400) NOT NULL,
  `sort` int(6) NOT NULL,
  `description` varchar(200) NOT NULL,
  `freeshipment` int(1) NOT NULL,
  `installment` int(1) NOT NULL,
  `has_invoice` int(1) NOT NULL,
  `state` int(1) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=221 ;
DROP TABLE IF EXISTS `{tableprefix}seo`;
CREATE TABLE `{tableprefix}seo` (
  `id` int(8) NOT NULL auto_increment,
  `mark` varchar(100) NOT NULL,
  `title` varchar(400) NOT NULL,
  `keywords` varchar(400) NOT NULL,
  `info` varchar(1000) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
DROP TABLE IF EXISTS `{tableprefix}shopcategory`;
CREATE TABLE `{tableprefix}shopcategory` (
  `id` int(8) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `category` varchar(100) NOT NULL,
  `sort` int(6) NOT NULL,
  `info` varchar(1000) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
DROP TABLE IF EXISTS `{tableprefix}websetting`;
CREATE TABLE `{tableprefix}websetting` (
  `id` int(8) NOT NULL auto_increment,
  `site_title` varchar(200) NOT NULL,
  `site_url` varchar(200) NOT NULL,
  `site_titleb` varchar(200) NOT NULL,
  `site_keywords` varchar(400) NOT NULL,
  `site_description` varchar(400) NOT NULL,
  `site_logo` varchar(200) NOT NULL,
  `login_checkcode` int(1) NOT NULL,
  `adminpath` varchar(40) NOT NULL,
  `site_cache_dir` varchar(100) NOT NULL,
  `site_upload_dir` varchar(100) NOT NULL,
  `site_email` varchar(200) NOT NULL,
  `site_address` varchar(400) NOT NULL,
  `site_worktime` varchar(200) NOT NULL,
  `site_qq` varchar(200) NOT NULL,
  `site_benan` varchar(200) NOT NULL,
  `site_tel` varchar(200) NOT NULL,
  `site_copyright` varchar(200) NOT NULL,
  `site_tongji` varchar(400) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

INSERT INTO `{tableprefix}level` ( `id` , `level_name` , `info` )
VALUES (
1 , '超级管理员', '超级管理员'
);
INSERT INTO `{tableprefix}level` ( `id` , `level_name` , `info` )
VALUES (
2 , '超级管理员', '超级管理员'
);
INSERT INTO `{tableprefix}manage` VALUES (1, '{admin}', '{password}', '1', '1', '1', '127.0.0.1', '0000-00-00 00:00:00', '2012-04-01 10:58:29');
INSERT INTO `{tableprefix}seo` VALUES ('1', 'index', '{$site_title},{$site_titleb}天狼星网络购物商城', '{$site_keywords},{$site_title}网络购物商城，您的购物首选商城！', '欢迎您到{$site_title}购物,{$site_description}');
INSERT INTO `{tableprefix}seo` VALUES ('2', 'mall', '购物商城大全,B2C购物商城,拥有国内200多家商家，淘宝，京东商城,凡客诚品,卓越,当当{$sitetitleb}-{$sitetitle}', '比较购物,比价购物,京东商城,凡客诚品,卓越{$site_keywords}', '{$sitetitle}提供网上购物网站及网店大全，方便大家快速了解各个购物网站及网店信息，保障网上购物的安全，并提供各种网上购物省钱方法');
INSERT INTO `{tableprefix}seo` VALUES ('3', 'all', '商品分类大全{$site_title}', '商品分类关键字,请自行设置', '商品分类描述内容');
INSERT INTO `{tableprefix}seo` VALUES ('4', 'promo', '促销活动标题', '促销活动关键字', '促销活动描述内容');
INSERT INTO `{tableprefix}seo` VALUES ('5', 'product_list', '商品列表{$category}', '商品列表关键字{$category}', '商品列表描述内容{$category}');
INSERT INTO `{tableprefix}seo` VALUES ('6', 'product_content','{$product_seller}-{$product_title}-{$product_price}元', '{$product_seller}-{$product_title}-{$product_price}元', '{$product_seller}-{$product_title}-{$product_price}{$site_title}');
INSERT INTO `{tableprefix}seo` VALUES ('7', 'taoshop', '淘宝皇冠店铺大全_淘宝网女装人气热卖排行榜_淘宝网购物商城正品好店推荐-{$site_titleb}_{$site_title}', '淘宝皇冠店铺,淘宝网购物,淘宝皇冠店,淘宝网女装{$site_keywords}', '{$site_title}整理数万淘宝皇冠店铺，淘宝皇冠店铺大全，淘宝排行榜，为您淘宝网购物精选淘宝皇冠店，淘宝好店，淘宝网女装|男装|内衣|女鞋|男鞋|女包|饰品及韩版服饰休闲服饰等,专注淘宝网导购，做您淘宝网购物的好助手');
INSERT INTO `{tableprefix}seo` VALUES ('8', 'artile_list', '{$artilelist_title}', '{$artilelist_title}', '购物资讯大全为您提供最新，最准确的购物信息{$artilelist_description}');
INSERT INTO `{tableprefix}seo` VALUES ('9', 'artile_content', '{$artile_title}-{$site_title}', '{$artile_title}-{$site_keywords}', '{$artile_description}{$site_title}');
INSERT INTO `{tableprefix}seo` VALUES ('10', 'seller_list', '{$site_title}', '{$site_keywords}', '{$artile_description}');
INSERT INTO `{tableprefix}seo` (
`id` ,
`mark` ,
`title` ,
`keywords` ,
`info`
)
VALUES (
'11', 'artile', '购物资讯页面', '购物资讯页面', '购物资讯页面'
);

INSERT INTO `{tableprefix}apisetting` VALUES ('1', 'minwellcool', '12056677', 'aa68718a6d55287e70dd3db3a4641340', '10', 'cache/tao_cache', '1003586', '588c7f57e60f1e70ac44dfa09b9c19ba', '10', 'cache/api59miao_cache');

INSERT INTO `{tableprefix}banconfig` VALUES ('1', 'ip', '0', '127.0.0.2');
INSERT INTO `{tableprefix}banconfig` VALUES ('2', 'spider', '0', NULL);

INSERT INTO `{tableprefix}link` VALUES (1, '五十九秒开放平台', 'http://www.59miao.com', '', '', 1, 1, 0, '0000-00-00 00:00:00');
INSERT INTO `{tableprefix}link` VALUES (2, '天狼星', 'http://www.tenlongs.com/', '', '', 1, 1, 0, '0000-00-00 00:00:00');
INSERT INTO `{tableprefix}link` VALUES (3, '酷客分销', 'http://www.96760.cn/', '', '', 1, 0, 0, '0000-00-00 00:00:00');

INSERT INTO `{tableprefix}artilenav` VALUES (1, '网站公告', '网站公告', '0000-00-00 00:00:00');

INSERT INTO `{tableprefix}shopcategory` VALUES (1, '数码相机', '14', 10, '数码相机', '0000-00-00 00:00:00');
INSERT INTO `{tableprefix}shopcategory` VALUES (2, '汽车用品', '26', 10, '汽车用品', '0000-00-00 00:00:00');
INSERT INTO `{tableprefix}shopcategory` VALUES (3, '女士精品', '16', 10, '女士精品', '0000-00-00 00:00:00');

INSERT INTO `{tableprefix}nav` VALUES ('1', '0', '0', '分类大全', '{domain}/index.php?a=all', '0', '_self', '分类大全,用于调取淘宝分类和天狼星分类','all','2', '0');
INSERT INTO `{tableprefix}nav` VALUES ('2', '0', '0', '促销活动', '{domain}/index.php?a=promo', '0', '_self', '用于调取所有的b2c促销活动信息,以图文形式展示','promo','3', '0');
INSERT INTO `{tableprefix}nav` VALUES ('3', '0', '0', '帮助中心', 'http://bbs.59miao.com', '1', '_black', '程序交流中心','','13', '0');
INSERT INTO `{tableprefix}nav` VALUES ('4', '0', '0', '商家大全', '{domain}/index.php?a=mall', '0', '_self', '用于调取商家大全信息','mall', '1', '0');
INSERT INTO `{tableprefix}nav` VALUES ('5', '0', '0', '皇冠店铺 ', '{domain}/index.php?a=shop', '0', '_self', NULL,'shop','5', '0');
INSERT INTO `{tableprefix}nav` VALUES ('6', '0', '0', '购物资讯', '{domain}/index.php?a=artilelist', '0', '_self', NULL,'artilelist','4', '0');
INSERT INTO `{tableprefix}nav` VALUES ('7', '374', '50008165', '童装', '{domain}/index.php?a=category&cid=374', '0', '_self', NULL,'374','10', '0');

INSERT INTO `{tableprefix}homenav` VALUES ('6', '53', '流行女鞋/男鞋 ( ID:53)', '热销鞋', '0', '热销鞋', '1', '0');
INSERT INTO `{tableprefix}homenav` VALUES ('1', '30', '内衣/睡衣/家居服  ( ID:30)', '热销女装', '0', '热销女装', '4', '0');
INSERT INTO `{tableprefix}homenav` VALUES ('2', '53', '流行女鞋/男鞋 ( ID:53)', '女鞋', '0', '女鞋', '10', '1');
INSERT INTO `{tableprefix}homenav` VALUES ('3', '68', '箱包皮具/女包/男包( ID:68)', '女包', '0', '女包', '10', '1');
INSERT INTO `{tableprefix}homenav` VALUES ('4', '218', '美容美体 ( ID:218)', '美容美体', '0', '美容美体', '10', '1');
INSERT INTO `{tableprefix}homenav` VALUES ('5', '141', '笔记本/上网本/配件( ID:141)', '笔记本', '0', '笔记本', '10', '0');
INSERT INTO `{tableprefix}homenav` VALUES ('7', '152', '数码相机/摄像机/摄影器材 ( ID:152)', '摄影器材', '0', '摄影器材', '6', '0');
INSERT INTO `{tableprefix}websetting` VALUES ('1', '天狼星网络购物程序', '{domain}', '天狼星', 'B2c购物导航，B2C数据', 'B2c购物导航，B2C数据,数据提供商', 'data/uploads/20120418/souse_path/20120418182437138.gif', '1', 'admin', 'data/cache', 'data/upload', '554024292@qq.com', '地址信息可以不填写', '上网10点到晚上9点', '554024292', '京ICP备12204498号', '11', 'Copyright © 59miao.com All Rights Reserved ', '11');
INSERT INTO `{tableprefix}reportbot` VALUES ('1', 'baiduspider', '百度蜘蛛', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('2', 'googlebot', '谷歌蜘蛛', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('3', 'sogou', '搜狗蜘蛛', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('4', 'sosospider', '搜搜蜘蛛', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('5', 'bingbot', '必应', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('6', 'msnbot', 'MSN', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('7', 'ia_archiver', 'Alexa', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('8', 'slurp', '雅虎', '0', NULL, NULL);
INSERT INTO `{tableprefix}reportbot` VALUES ('9', 'youdaobot', '有道', '0', NULL, NULL);
INSERT INTO `{tableprefix}keywords` VALUES ('1', '女装', '女装', '30', 'red', '2');
INSERT INTO `{tableprefix}keywords` VALUES ('2', '箱包', '箱包', '68', 'blue', '2');
INSERT INTO `{tableprefix}keywords` VALUES ('3', '电脑设备', '电脑设备', '84', 'orange', '3')

