SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `ayangw_blacklist`;
CREATE TABLE `ayangw_blacklist` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `data` varchar(200) DEFAULT NULL,
  `remarks` text,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ayangw_config`;
CREATE TABLE `ayangw_config` (
  `ayangw_k` varchar(255) NOT NULL DEFAULT '',
  `ayangw_v` text,
  PRIMARY KEY (`ayangw_k`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `ayangw_config` VALUES ('title', '个人发卡网');
INSERT INTO `ayangw_config` VALUES ('keywords', '个人发卡网,自动发卡网');
INSERT INTO `ayangw_config` VALUES ('description', '123456');
INSERT INTO `ayangw_config` VALUES ('zzqq', '123456');
INSERT INTO `ayangw_config` VALUES ('notice2', '付款后按提示点击确定跳转到提取页面，不可提前关闭窗口！否则无法提取到卡密！');
INSERT INTO `ayangw_config` VALUES ('notice3', '提取码是订单编号 或者 您的联系方式！');
INSERT INTO `ayangw_config` VALUES ('notice1', '提取卡密后请尽快激活使用或保存好，系统定期清除被提取的卡密');
INSERT INTO `ayangw_config` VALUES ('foot', '个人发卡网');
INSERT INTO `ayangw_config` VALUES ('dd_notice', '1.联系方式也可以作为你的提卡凭证<br>2.必须等待付款完成自动跳转，不可提前关闭页面，否则会导致订单失效，后果自负');
INSERT INTO `ayangw_config` VALUES ('admin', 'admin');
INSERT INTO `ayangw_config` VALUES ('pwd', 'f3b4e3b975e0484835e90514f8318e61');
INSERT INTO `ayangw_config` VALUES ('web_url', '');
INSERT INTO `ayangw_config` VALUES ('payapi', '1');
INSERT INTO `ayangw_config` VALUES ('epay_id', '');
INSERT INTO `ayangw_config` VALUES ('epay_key', '');
INSERT INTO `ayangw_config` VALUES ('showKc', '1');
INSERT INTO `ayangw_config` VALUES ('CC_Defender', '2');
INSERT INTO `ayangw_config` VALUES ('txprotect', '0');
INSERT INTO `ayangw_config` VALUES ('qqtz', '1');
INSERT INTO `ayangw_config` VALUES ('sqlv', '1060');
INSERT INTO `ayangw_config` VALUES ('cygg', '');
INSERT INTO `ayangw_config` VALUES ('syslog', '1');
INSERT INTO `ayangw_config` VALUES ('showImgs', '1');
INSERT INTO `ayangw_config` VALUES ('submit', '修改保存');
INSERT INTO `ayangw_config` VALUES ('switch_alipay', '1');
INSERT INTO `ayangw_config` VALUES ('switch_wxpay', '1');
INSERT INTO `ayangw_config` VALUES ('switch_qqpay', '1');
INSERT INTO `ayangw_config` VALUES ('switch_tenpay', '0');
INSERT INTO `ayangw_config` VALUES ('view', 'default');
INSERT INTO `ayangw_config` VALUES ('epay_url', '');
INSERT INTO `ayangw_config` VALUES ('ftitle', '   ');
DROP TABLE IF EXISTS `ayangw_goods`;
CREATE TABLE `ayangw_goods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `gName` varchar(255) DEFAULT NULL,
  `gInfo` text,
  `imgs` varchar(110) DEFAULT NULL,
  `tpId` int(11) NOT NULL COMMENT 'Ã¦â€°â‚¬Ã¥Â±Å¾Ã¥Ë†â€ Ã§Â±Â»',
  `price` float DEFAULT NULL,
  `state` int(11) DEFAULT '1',
  `sotr` int(4) DEFAULT '1',
  `sales` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ayangw_km`;
CREATE TABLE `ayangw_km` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `gid` int(11) NOT NULL,
  `km` varchar(100) DEFAULT NULL,
  `benTime` datetime DEFAULT NULL,
  `endTime` datetime DEFAULT NULL,
  `out_trade_no` varchar(100) DEFAULT NULL,
  `trade_no` varchar(100) DEFAULT NULL,
  `rel` varchar(50) DEFAULT NULL,
  `stat` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ayangw_order`;
CREATE TABLE `ayangw_order` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `out_trade_no` varchar(100) DEFAULT NULL,
  `trade_no` varchar(100) DEFAULT NULL,
  `md5_trade_no` varchar(100) DEFAULT NULL,
  `gid` int(11) DEFAULT NULL,
  `money` float DEFAULT NULL,
  `rel` varchar(30) DEFAULT NULL,
  `type` varchar(20) DEFAULT NULL,
  `benTime` datetime DEFAULT NULL,
  `endTime` datetime DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `sta` int(11) DEFAULT '0',
  `sendE` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ayangw_syslog`;
CREATE TABLE `ayangw_syslog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `log_name` varchar(20) DEFAULT NULL,
  `log_time` datetime DEFAULT NULL,
  `log_txt` text,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `ayangw_type`;
CREATE TABLE `ayangw_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tName` varchar(100) DEFAULT NULL,
  `sort` int(11) DEFAULT '0',
  `state` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;