-
Notifications
You must be signed in to change notification settings - Fork 53
/
eshop_user.sql
297 lines (273 loc) · 25.1 KB
/
eshop_user.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
/*
Navicat MySQL Data Transfer
Source Server : user写库
Source Server Version : 50719
Source Host : 192.168.1.106:3306
Source Database : eshop_user
Target Server Type : MYSQL
Target Server Version : 50719
File Encoding : 65001
Date: 2017-12-27 22:09:24
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `balance`
-- ----------------------------
DROP TABLE IF EXISTS `balance`;
CREATE TABLE `balance` (
`user` bigint(20) NOT NULL,
`balance` double DEFAULT NULL,
`payment_password` varchar(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`user`),
CONSTRAINT `fk_user_balance` FOREIGN KEY (`user`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of balance
-- ----------------------------
INSERT INTO `balance` VALUES ('1', '7600', '$2a$10$uxEBWbLxAZOL4GtJs24qjelPN1pQUgFCHK5F1J/Qwey8XYHYEK0KW');
INSERT INTO `balance` VALUES ('2', '2000', '$2a$10$PkRJNfvMvBnDLzGReXvUXOyX5F.IKEkFAj0VQ6HkrJUSXnhxXnPwu');
INSERT INTO `balance` VALUES ('5', '0', null);
INSERT INTO `balance` VALUES ('6', '0', null);
INSERT INTO `balance` VALUES ('7', '0', null);
-- ----------------------------
-- Table structure for `mail`
-- ----------------------------
DROP TABLE IF EXISTS `mail`;
CREATE TABLE `mail` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`sender` bigint(20) NOT NULL,
`receiver` bigint(20) NOT NULL,
`mail_status` smallint(5) unsigned zerofill NOT NULL DEFAULT '00000',
`text` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_mail_text` (`text`),
KEY `fk_mail_user_sender` (`sender`),
KEY `fk_mail_user_receiver` (`receiver`),
CONSTRAINT `fk_mail_text` FOREIGN KEY (`text`) REFERENCES `mail_text` (`id`),
CONSTRAINT `fk_mail_user_receiver` FOREIGN KEY (`receiver`) REFERENCES `user` (`id`),
CONSTRAINT `fk_mail_user_sender` FOREIGN KEY (`sender`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of mail
-- ----------------------------
INSERT INTO `mail` VALUES ('1', '1', '2', '00000', '1');
INSERT INTO `mail` VALUES ('2', '1', '5', '00000', '2');
INSERT INTO `mail` VALUES ('14', '5', '1', '00001', '14');
INSERT INTO `mail` VALUES ('15', '1', '2', '00000', '14');
INSERT INTO `mail` VALUES ('16', '1', '5', '00000', '14');
INSERT INTO `mail` VALUES ('17', '5', '1', '00000', '18');
INSERT INTO `mail` VALUES ('18', '5', '1', '00000', '18');
INSERT INTO `mail` VALUES ('19', '6', '1', '00000', '19');
INSERT INTO `mail` VALUES ('20', '6', '1', '00000', '18');
INSERT INTO `mail` VALUES ('21', '2', '1', '00000', '1');
INSERT INTO `mail` VALUES ('22', '2', '1', '00001', '14');
INSERT INTO `mail` VALUES ('23', '1', '6', '00000', '21');
INSERT INTO `mail` VALUES ('24', '1', '7', '00000', '21');
-- ----------------------------
-- Table structure for `mail_text`
-- ----------------------------
DROP TABLE IF EXISTS `mail_text`;
CREATE TABLE `mail_text` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`mail_text` text,
`send_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of mail_text
-- ----------------------------
INSERT INTO `mail_text` VALUES ('1', 'hehe', '2017-05-04 16:18:08');
INSERT INTO `mail_text` VALUES ('2', 'dada', '2017-05-04 16:18:15');
INSERT INTO `mail_text` VALUES ('14', 'HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1HelloWorld1', '2017-05-09 19:22:09');
INSERT INTO `mail_text` VALUES ('15', 'HelloWorld2', '2017-05-09 19:40:05');
INSERT INTO `mail_text` VALUES ('16', 'HelloWorld3', '2017-07-12 13:34:36');
INSERT INTO `mail_text` VALUES ('17', 'HelloWorld4', '2017-07-12 16:27:25');
INSERT INTO `mail_text` VALUES ('18', 'HelloWorld5', '2017-10-16 10:01:10');
INSERT INTO `mail_text` VALUES ('19', 'HelloWorld6', '2017-10-16 10:01:13');
INSERT INTO `mail_text` VALUES ('20', 'HelloWorld7', '2017-10-16 10:03:43');
INSERT INTO `mail_text` VALUES ('21', '呵呵呵', '2017-10-16 20:26:26');
-- ----------------------------
-- Table structure for `news`
-- ----------------------------
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`body` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of news
-- ----------------------------
INSERT INTO `news` VALUES ('1', '新增课程:Java程序设计', 'JavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSEJavaSE', '2017-10-06 16:32:50');
INSERT INTO `news` VALUES ('2', '新增课程:.Net程序设计', '.Net', '2017-10-06 16:33:13');
INSERT INTO `news` VALUES ('3', '课程降价:JavaSE', 'JavaSE', '2017-10-06 16:33:30');
INSERT INTO `news` VALUES ('4', 'JavaSE课程本学期结束', 'JavaSE', '2017-10-06 16:33:57');
INSERT INTO `news` VALUES ('5', '课程取消:DBA培训', 'DBA', '2017-10-06 16:34:19');
INSERT INTO `news` VALUES ('6', '新增课程:C++语法', 'C++', '2017-10-06 22:23:01');
INSERT INTO `news` VALUES ('8', '新增课程:React.js开发', 'React.js', '2017-10-07 12:48:38');
-- ----------------------------
-- Table structure for `producer_transaction_message`
-- ----------------------------
DROP TABLE IF EXISTS `producer_transaction_message`;
CREATE TABLE `producer_transaction_message` (
`msgId` bigint(20) NOT NULL,
`body` blob,
`message_status` smallint(6) DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`create_time` datetime DEFAULT NULL,
`send_times` int(6) DEFAULT NULL,
`topic` varchar(50) DEFAULT NULL,
PRIMARY KEY (`msgId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of producer_transaction_message
-- ----------------------------
INSERT INTO `producer_transaction_message` VALUES ('39', 0x0827130818120852656163742E6A73190000000000407F4023080312035765622218576562E5BC80E58F91E79A84E69CAAE69DA5E8B68BE58ABF2801323B687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F5765622E706E67242802320F576562E9AB98E7BAA7E8AFBEE7A88B3801423D687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F6361726F7573656C2F72656163742E6A7067141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C18170C13080D102218372000142C310000000000407F403800, '3', '2017-12-27 21:43:40', '2017-12-27 21:42:16', '0', 'account');
INSERT INTO `producer_transaction_message` VALUES ('40', 0x0828130818120852656163742E6A73190000000000407F4023080312035765622218576562E5BC80E58F91E79A84E69CAAE69DA5E8B68BE58ABF2801323B687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F5765622E706E67242802320F576562E9AB98E7BAA7E8AFBEE7A88B3801423D687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F6361726F7573656C2F72656163742E6A7067141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C18170C1308161016181B2000142C310000000000407F403800, '1', '2017-12-27 20:55:17', '2017-12-27 20:53:17', '0', 'account');
INSERT INTO `producer_transaction_message` VALUES ('41', 0x0829130815120D416E64726F6964E8AFADE6B395190000000000C072402308091207416E64726F696422380D0AE8AEA9E4BDA0E69BB4E5AEB9E69893E8BFBDE6B182E5B9B8E7A68FE7949FE6B4BBEFBC8CE4BAABE58F97E7BE8EE5A5BDE7949FE6B4BB2801323F687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F416E64726F69642E706E672428003213416E64726F6964E59FBAE7A180E8AFBEE7A88B3800425C687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F70726F647563742F4A6176612F3539393135303037303030313939333530363030303333382D3234302D3133352E6A7067141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C18170C130816101618242000142C310000000000C072403800, '1', '2017-12-27 20:41:49', '2017-12-27 20:05:17', '1', 'account');
INSERT INTO `producer_transaction_message` VALUES ('42', 0x082A13081212074153502E4E6574190000000000C0724023080212042E4E657422042E4E65742800323C687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F2E4E65742E706E6724280032102E4E6574E59FBAE7A180E8AFBEE7A88B38004243687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F70726F647563742F4A6176612F4153502E4E65742E706E67141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C181B0C130815103018332000142C310000000000C072403800, '1', '2017-12-27 21:55:40', '2017-12-27 21:53:01', '0', 'account');
INSERT INTO `producer_transaction_message` VALUES ('43', 0x082B13081212074153502E4E6574190000000000C0724023080212042E4E657422042E4E65742800323C687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F2E4E65742E706E6724280032102E4E6574E59FBAE7A180E8AFBEE7A88B38004243687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F70726F647563742F4A6176612F4153502E4E65742E706E67141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C181B0C1308161005182A2000142C310000000000C072403800, '1', '2017-12-27 22:07:40', '2017-12-27 22:05:53', '0', 'account');
INSERT INTO `producer_transaction_message` VALUES ('44', 0x082C13081212074153502E4E6574190000000000C0724023080212042E4E657422042E4E65742800323C687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F63617465676F72792F2E4E65742E706E6724280032102E4E6574E59FBAE7A180E8AFBEE7A88B38004243687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F70726F647563742F4A6176612F4153502E4E65742E706E67141801230801120561646D696E1A3C24326124313024544B316F374A416C536447552E49596E58487834794F466F4C6641784B45416C394253784B63626A442F776E692E5976525A486E6D220C6F72616E67652773206361742A0E777777777777777777777777777732014D3B08CC0F100C181A3C430B08E10F1004181B0C1308131023181D200014444A15736F6E6778696E6A69616E7A78403136332E636F6D520A343534343434343434345B0801120A524F4C455F41444D494E5C5B08021209524F4C455F555345525C60016A60687474703A2F2F6573686F702D313235323635313139352E636F7373682E6D7971636C6F75642E636F6D2F757365722F6176617461722F253238492535443557465346323125374455364F4C4C3925354425323848253742253238392E6A7067242B0B08E10F100C181B0C130816100818022000142C310000000000C072403800, '0', '2017-12-27 22:08:19', '2017-12-27 22:08:19', '0', 'account');
-- ----------------------------
-- Table structure for `product`
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price` double DEFAULT NULL,
`category` bigint(20) DEFAULT NULL,
`type` smallint(4) DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_on_promotion` tinyint(4) unsigned zerofill DEFAULT '0000',
`image_url` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_product_product_category` (`category`),
KEY `unique_product_name` (`name`),
CONSTRAINT `fk_product_product_category` FOREIGN KEY (`category`) REFERENCES `product_category` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of product
-- ----------------------------
INSERT INTO `product` VALUES ('1', 'JavaSE基础', '300', '1', '0', 'JavaSE基础学习视频', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/57035ff200014b8a06000338-240-135.jpg');
INSERT INTO `product` VALUES ('2', 'JavaSE进阶', '400', '1', '1', 'JavaSE提高学习视频', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/570360620001390f06000338-240-135.jpg');
INSERT INTO `product` VALUES ('3', 'JavaSE高级', '500', '1', '2', 'JavaSE高级学习视频', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/5703604a0001694406000338-240-135.jpg');
INSERT INTO `product` VALUES ('4', 'HTML+CSS', '300', '3', '0', 'Web基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/59030cc50001144806000338.jpg');
INSERT INTO `product` VALUES ('5', 'JavaScript', '400', '3', '1', 'Web提高课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/59ae66c5000139d906000338.jpg');
INSERT INTO `product` VALUES ('6', 'Vue.js', '500', '3', '2', 'Web高级课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/58ca659a00017c3705400300-360-202.jpg');
INSERT INTO `product` VALUES ('7', 'JQuery', '500', '3', '2', 'Web高级课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/570b05f4000194e506000338-240-135.jpg');
INSERT INTO `product` VALUES ('8', 'Spring', '500', '1', '2', 'JavaEE课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/591138710001e41305400300-360-202.jpg');
INSERT INTO `product` VALUES ('17', 'C#', '300', '2', '0', '.Net基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/57035f2c000106fa06000338-240-135.jpg');
INSERT INTO `product` VALUES ('18', 'ASP.Net', '300', '2', '0', '.Net基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/ASP.Net.png');
INSERT INTO `product` VALUES ('19', 'PHP语法', '300', '4', '0', 'PHP基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/572b06470001a42e06000338-240-135.jpg');
INSERT INTO `product` VALUES ('20', 'Laravel', '500', '4', '2', 'PHP高级课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/593a7a470001bcff05400300-360-202.jpg');
INSERT INTO `product` VALUES ('21', 'Android语法', '300', '9', '0', 'Android基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/599150070001993506000338-240-135.jpg');
INSERT INTO `product` VALUES ('22', 'Swift语法', '300', '10', '0', 'IOS基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/579193580001000306000338-240-135.jpg');
INSERT INTO `product` VALUES ('23', '随机算法', '300', '11', '0', 'ML基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/59dada7100016d9405400300-360-202.jpg');
INSERT INTO `product` VALUES ('24', 'React.js', '500', '3', '2', 'Web高级课程', '0001', 'http://eshop-1252651195.cossh.myqcloud.com/carousel/react.jpg');
INSERT INTO `product` VALUES ('25', 'Android组件化开发', '500', '9', '2', 'Android高级课程', '0001', 'http://eshop-1252651195.cossh.myqcloud.com/carousel/android.jpg');
INSERT INTO `product` VALUES ('26', '算法面试', '500', '1', '2', 'Java高级课程', '0001', 'http://eshop-1252651195.cossh.myqcloud.com/carousel/algo.jpg');
INSERT INTO `product` VALUES ('27', 'react-native', '500', '3', '2', 'Web高级课程', '0001', 'http://eshop-1252651195.cossh.myqcloud.com/carousel/react-native.jpg');
INSERT INTO `product` VALUES ('28', 'Linux基础', '300', '13', '0', '大数据基础课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/53fed63700018a9306000338-240-135.jpg');
INSERT INTO `product` VALUES ('29', '需求文档', '300', '14', '0', '产品经理基础课程', '0000', null);
INSERT INTO `product` VALUES ('30', 'Python语法', '300', '15', '0', '数据分析基础课程', '0000', null);
INSERT INTO `product` VALUES ('31', 'Photoshop教程', '300', '12', '0', 'UI基础课程', '0000', null);
INSERT INTO `product` VALUES ('33', '测试基础', '300', '16', '0', '软件测试基础课程', '0000', null);
INSERT INTO `product` VALUES ('34', 'SpringBoot实战', '500', '1', '2', 'JavaEE课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/SpringBoot.png');
INSERT INTO `product` VALUES ('35', 'SpringMVC', '500', '1', '2', 'JavaEE课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/570765d90001bf1406000338-240-135.jpg');
INSERT INTO `product` VALUES ('36', 'SpringData', '500', '1', '2', 'JavaEE数据课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/58e6081c00012ec206000338-240-135.jpg');
INSERT INTO `product` VALUES ('37', 'SpringSecurity', '500', '1', '2', 'JavaEE安全课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/591138710001e41305400300-360-202.jpg');
INSERT INTO `product` VALUES ('38', 'ElasticSearch', '500', '1', '2', 'JavaEE搜索课程', '0000', 'http://eshop-1252651195.cossh.myqcloud.com/product/Java/59b77bac0001985906000338-240-135.jpg');
-- ----------------------------
-- Table structure for `product_category`
-- ----------------------------
DROP TABLE IF EXISTS `product_category`;
CREATE TABLE `product_category` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_on_board` tinyint(1) unsigned zerofill DEFAULT '0',
`image_url` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of product_category
-- ----------------------------
INSERT INTO `product_category` VALUES ('1', 'Java', '就业面最广的职业方向', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/JavaEE.png');
INSERT INTO `product_category` VALUES ('2', '.Net', '.Net', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/.Net.png');
INSERT INTO `product_category` VALUES ('3', 'Web', 'Web开发的未来趋势', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/Web.png');
INSERT INTO `product_category` VALUES ('4', 'PHP', 'PHP', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/PHP.png');
INSERT INTO `product_category` VALUES ('9', 'Android', '\r\n让你更容易追求幸福生活,享受美好生活', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/Android.png');
INSERT INTO `product_category` VALUES ('10', 'IOS', '企业必争的人才资源', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/IOS.png');
INSERT INTO `product_category` VALUES ('11', 'ML', 'ML', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/ML.png');
INSERT INTO `product_category` VALUES ('12', 'UI', '最流行用户交互设计语言', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/UI.png');
INSERT INTO `product_category` VALUES ('13', '大数据', '大数据', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/BigData.png');
INSERT INTO `product_category` VALUES ('14', '产品经理', '产品经理', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/ProductManager.png');
INSERT INTO `product_category` VALUES ('15', '数据分析', '人才需求量大,收入水平高', '1', 'http://eshop-1252651195.cossh.myqcloud.com/category/DataAnalysis.png');
INSERT INTO `product_category` VALUES ('16', '测试', '测试', '0', 'http://eshop-1252651195.cossh.myqcloud.com/category/SoftwareTest.png');
-- ----------------------------
-- Table structure for `role`
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_name` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of role
-- ----------------------------
INSERT INTO `role` VALUES ('1', 'ROLE_ADMIN');
INSERT INTO `role` VALUES ('2', 'ROLE_USER');
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(30) NOT NULL,
`password` varchar(60) NOT NULL,
`nickname` varchar(30) DEFAULT NULL,
`real_name` varchar(30) DEFAULT NULL,
`sex` char(1) DEFAULT NULL,
`birthday` date DEFAULT NULL,
`reg_time` datetime DEFAULT NULL,
`email` varchar(30) DEFAULT NULL,
`phone` varchar(30) DEFAULT NULL,
`user_status` smallint(6) unsigned zerofill NOT NULL DEFAULT '000000',
`avatar` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'admin', '$2a$10$TK1o7JAlSdGU.IYnXHx4yOFoLfAxKEAl9BSxKcbjD/wni.YvRZHnm', 'orange\'s cat', 'wwwwwwwwwwwwww', 'M', '1996-12-26', '2017-04-27 19:35:29', 'songxinjianzx@163.com', '4544444444', '000001', 'http://eshop-1252651195.cossh.myqcloud.com/user/avatar/%28I%5D5WFSF21%7DU6OLL9%5D%28H%7B%289.jpg');
INSERT INTO `user` VALUES ('2', 'admin2', '$2a$10$PkRJNfvMvBnDLzGReXvUXOyX5F.IKEkFAj0VQ6HkrJUSXnhxXnPwu', 'admin2', 'hahaha', 'M', '1995-12-10', '2017-04-28 09:03:38', 'hahaha@163.com', '13088721239', '000001', 'http://eshop-1252651195.cossh.myqcloud.com/user/avatar/4A78%7D0WHV8KK1_9KX7M2D6C.jpg');
INSERT INTO `user` VALUES ('5', 'admin3', '$2a$10$zTZqrJTOM7Gs2NzBeTPa3.A/ex39v68utE4WaUPVN04dNYFGNhNdu', 'admin3', 'dadada', 'M', '1995-12-10', '2017-04-28 13:37:37', 'songxinjianzx@126.com', '13088721239', '000001', 'http://eshop-1252651195.cossh.myqcloud.com/user/avatar/MLNON%40639_88AWPRZE%28EGB5.jpg');
INSERT INTO `user` VALUES ('6', 'user1', '$2a$10$vhtyeS2t/UD6aACZ678ilemF2lYv2bq7CHlh8s8JIdqkBALyOulq2', 'user1', 'user1', 'M', '2017-10-01', '2017-10-15 17:15:03', 'songxinjianzx@126.com', '123123123123123', '000001', 'http://eshop-1252651195.cossh.myqcloud.com/user/avatar/1455889557450.jpeg');
INSERT INTO `user` VALUES ('7', 'user2', '$2a$10$n8xZeYUnoq.VhVpl4J2LIOgLm9gkuGBOaIv6733Ea20Zcpqx51yRG', 'user2', 'user2', 'M', '2017-10-01', '2017-10-16 20:22:55', 'songxinjianzx@126.com', '123123123123', '000001', 'http://eshop-1252651195.cossh.myqcloud.com/user/avatar/24f819978ec22758.jpg');
-- ----------------------------
-- Table structure for `user_role`
-- ----------------------------
DROP TABLE IF EXISTS `user_role`;
CREATE TABLE `user_role` (
`user` bigint(20) NOT NULL,
`role` bigint(20) NOT NULL,
PRIMARY KEY (`user`,`role`),
KEY `user_role_role_id` (`role`),
CONSTRAINT `user_role_role_id` FOREIGN KEY (`role`) REFERENCES `role` (`id`),
CONSTRAINT `user_role_user_id` FOREIGN KEY (`user`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_role
-- ----------------------------
INSERT INTO `user_role` VALUES ('1', '1');
INSERT INTO `user_role` VALUES ('2', '1');
INSERT INTO `user_role` VALUES ('5', '1');
INSERT INTO `user_role` VALUES ('1', '2');
INSERT INTO `user_role` VALUES ('2', '2');
INSERT INTO `user_role` VALUES ('5', '2');
INSERT INTO `user_role` VALUES ('6', '2');
INSERT INTO `user_role` VALUES ('7', '2');