-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpay.sql
82 lines (74 loc) · 2.69 KB
/
pay.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for application
-- ----------------------------
DROP TABLE IF EXISTS `application`;
CREATE TABLE `application` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
`website` varchar(256) NOT NULL,
`apikey` varchar(64) NOT NULL,
`owner` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `apikey` (`apikey`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of application
-- ----------------------------
INSERT INTO `application` VALUES ('1', '插入订单数据 API 接口', 'http://pay.qiyichao.cn/', 'input_you_API_KEY', '1');
-- ----------------------------
-- Table structure for member
-- ----------------------------
DROP TABLE IF EXISTS `member`;
CREATE TABLE `member` (
`uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`salt` varchar(6) NOT NULL,
`email` varchar(128) DEFAULT NULL,
`register_time` int(11) unsigned NOT NULL,
`money` double unsigned DEFAULT NULL,
PRIMARY KEY (`uid`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of member
-- ----------------------------
INSERT INTO `member` VALUES ('1', 'test', '9ae0147d65724f72f74804af4aac6f13', 'asd', '', '0', null);
-- ----------------------------
-- Table structure for member_online
-- ----------------------------
DROP TABLE IF EXISTS `member_online`;
CREATE TABLE `member_online` (
`token` varchar(255) NOT NULL,
`uid` int(10) unsigned NOT NULL,
`name` varchar(32) NOT NULL,
`register_time` int(11) unsigned NOT NULL,
`login_time` int(11) unsigned NOT NULL,
`expired_time` int(11) unsigned NOT NULL,
PRIMARY KEY (`token`),
UNIQUE KEY `token` (`token`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of member_online
-- ----------------------------
-- ----------------------------
-- Table structure for order
-- ----------------------------
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
`tradeNo` varchar(128) NOT NULL,
`payname` varchar(128) DEFAULT NULL,
`time` varchar(128) DEFAULT NULL,
`username` varchar(128) DEFAULT NULL,
`userid` varchar(128) DEFAULT NULL,
`amount` double DEFAULT NULL,
`status` varchar(128) DEFAULT NULL,
`use_timestamp` varchar(12) DEFAULT NULL,
`use_appid` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`tradeNo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of order
-- ----------------------------