-
Notifications
You must be signed in to change notification settings - Fork 2
/
tiny_frame.sql
309 lines (284 loc) · 10.4 KB
/
tiny_frame.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
298
299
300
301
302
303
304
305
306
307
308
309
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 80003
Source Host : localhost:3306
Source Database : tiny_frame
Target Server Type : MYSQL
Target Server Version : 80003
File Encoding : 65001
Date: 2018-01-05 21:19:18
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for char_sayings
-- ----------------------------
DROP TABLE IF EXISTS `char_sayings`;
CREATE TABLE `char_sayings` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`category` varchar(20) NOT NULL,
`content` varchar(1000) NOT NULL,
`likeNum` varchar(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1177 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_cet
-- ----------------------------
DROP TABLE IF EXISTS `edu_cet`;
CREATE TABLE `edu_cet` (
`id` varchar(20) NOT NULL COMMENT '准考证',
`sid` varchar(20) DEFAULT NULL COMMENT '学号',
`name` varchar(15) NOT NULL,
`school` varchar(25) DEFAULT NULL,
`examType` varchar(20) DEFAULT NULL,
`total` varchar(5) DEFAULT NULL,
`listening` varchar(5) DEFAULT NULL,
`reading` varchar(5) DEFAULT NULL,
`writing` varchar(5) DEFAULT NULL,
`oral` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Table structure for edu_cet_backup
-- ----------------------------
DROP TABLE IF EXISTS `edu_cet_backup`;
CREATE TABLE `edu_cet_backup` (
`openid` varchar(32) NOT NULL,
`id` varchar(40) NOT NULL,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`openid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_classroom_activity
-- ----------------------------
DROP TABLE IF EXISTS `edu_classroom_activity`;
CREATE TABLE `edu_classroom_activity` (
`name` varchar(30) CHARACTER SET utf8 NOT NULL,
`room` varchar(25) CHARACTER SET utf8 NOT NULL,
`building` varchar(20) CHARACTER SET utf8 NOT NULL,
`organization` varchar(50) CHARACTER SET utf8 NOT NULL,
`weekHaveClass` varchar(100) CHARACTER SET utf8 NOT NULL,
`weekly` varchar(2) CHARACTER SET utf8 NOT NULL,
`weekDay` varchar(10) CHARACTER SET utf8 NOT NULL,
`sectionStart` varchar(2) CHARACTER SET utf8 NOT NULL,
`sectionEnd` varchar(2) CHARACTER SET utf8 NOT NULL,
KEY `room` (`room`),
KEY `weekly` (`weekly`),
KEY `weekHaveClass` (`weekHaveClass`),
KEY `building` (`building`),
KEY `weekDay` (`weekDay`),
KEY `sectionStart` (`sectionStart`),
KEY `sectionEnd` (`sectionEnd`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_classroom_course
-- ----------------------------
DROP TABLE IF EXISTS `edu_classroom_course`;
CREATE TABLE `edu_classroom_course` (
`id` varchar(10) CHARACTER SET utf8 NOT NULL,
`name` varchar(100) CHARACTER SET utf8 NOT NULL,
`teacher` varchar(50) CHARACTER SET utf8 NOT NULL,
`weekHaveClass` varchar(100) CHARACTER SET utf8 NOT NULL,
`weekly` varchar(2) CHARACTER SET utf8 NOT NULL,
`weekDay` varchar(10) CHARACTER SET utf8 NOT NULL,
`sectionStart` varchar(2) CHARACTER SET utf8 NOT NULL,
`sectionEnd` varchar(2) CHARACTER SET utf8 NOT NULL,
`room` varchar(25) CHARACTER SET utf8 NOT NULL,
`building` varchar(25) CHARACTER SET utf8 NOT NULL,
`class` varchar(6000) CHARACTER SET utf8 NOT NULL,
KEY `name` (`name`),
KEY `weekHaveClass` (`weekHaveClass`),
KEY `weekDay` (`weekDay`),
KEY `sectionStart` (`sectionStart`),
KEY `sectionEnd` (`sectionEnd`),
KEY `room` (`room`),
KEY `building` (`building`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_classroom_list
-- ----------------------------
DROP TABLE IF EXISTS `edu_classroom_list`;
CREATE TABLE `edu_classroom_list` (
`campus` varchar(15) CHARACTER SET utf8 NOT NULL,
`building` varchar(10) CHARACTER SET utf8 NOT NULL,
`room` varchar(25) CHARACTER SET utf8 NOT NULL,
KEY `campus` (`campus`),
KEY `room` (`room`),
KEY `building` (`building`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_classroom_list_available
-- ----------------------------
DROP TABLE IF EXISTS `edu_classroom_list_available`;
CREATE TABLE `edu_classroom_list_available` (
`room` varchar(100) NOT NULL,
`building` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_class_list
-- ----------------------------
DROP TABLE IF EXISTS `edu_class_list`;
CREATE TABLE `edu_class_list` (
`value` varchar(20) CHARACTER SET utf8 NOT NULL,
`text` varchar(50) CHARACTER SET utf8 NOT NULL,
UNIQUE KEY `text` (`text`),
UNIQUE KEY `value` (`value`),
KEY `value_2` (`value`),
KEY `value_3` (`value`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_courses
-- ----------------------------
DROP TABLE IF EXISTS `edu_courses`;
CREATE TABLE `edu_courses` (
`cid` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`tid` int(11) NOT NULL,
`class` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_homework_receive
-- ----------------------------
DROP TABLE IF EXISTS `edu_homework_receive`;
CREATE TABLE `edu_homework_receive` (
`hid` int(11) NOT NULL,
`sid` int(11) NOT NULL,
`sendTime` int(11) NOT NULL,
`attachment` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_homework_send
-- ----------------------------
DROP TABLE IF EXISTS `edu_homework_send`;
CREATE TABLE `edu_homework_send` (
`hid` int(11) NOT NULL,
`cid` int(11) NOT NULL,
`content` varchar(2000) NOT NULL,
`start` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`end` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`whichTime` int(11) NOT NULL COMMENT '第几次作业'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_major_info
-- ----------------------------
DROP TABLE IF EXISTS `edu_major_info`;
CREATE TABLE `edu_major_info` (
`id` varchar(20) NOT NULL,
`name` varchar(200) NOT NULL,
`teacher` varchar(60) NOT NULL COMMENT '教师',
`classType` varchar(100) NOT NULL COMMENT '课程类别',
`class` varchar(20000) NOT NULL COMMENT '上课班级构成',
`weekly` varchar(2) NOT NULL COMMENT '0每周/1单周/2双周',
`weekDay` varchar(10) NOT NULL COMMENT '星期几',
`sectionStart` varchar(5) NOT NULL COMMENT '第几节开始',
`sectionEnd` varchar(5) NOT NULL COMMENT '第几节结束',
`weekHaveClass` varchar(50) NOT NULL COMMENT '开课的周',
`room` varchar(100) NOT NULL COMMENT '哪里上课',
KEY `major_name` (`name`),
KEY `major_id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_major_list
-- ----------------------------
DROP TABLE IF EXISTS `edu_major_list`;
CREATE TABLE `edu_major_list` (
`id` varchar(20) NOT NULL,
`name` varchar(200) NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`),
KEY `major_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_mandarin
-- ----------------------------
DROP TABLE IF EXISTS `edu_mandarin`;
CREATE TABLE `edu_mandarin` (
`id` varchar(20) DEFAULT NULL,
`cardId` varchar(30) DEFAULT NULL,
`name` varchar(10) DEFAULT NULL,
`examTime` varchar(20) DEFAULT NULL,
`score` varchar(15) DEFAULT NULL,
`grade` varchar(15) DEFAULT NULL,
`certificateId` varchar(20) DEFAULT NULL,
`province` varchar(25) DEFAULT NULL,
`examLocation` varchar(50) DEFAULT NULL,
`selfieUrl` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_mandarin_backup
-- ----------------------------
DROP TABLE IF EXISTS `edu_mandarin_backup`;
CREATE TABLE `edu_mandarin_backup` (
`openid` varchar(32) NOT NULL,
`id` varchar(30) DEFAULT NULL,
`cardId` varchar(30) DEFAULT NULL,
`name` varchar(20) DEFAULT NULL,
PRIMARY KEY (`openid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_nerc
-- ----------------------------
DROP TABLE IF EXISTS `edu_nerc`;
CREATE TABLE `edu_nerc` (
`name` varchar(20) NOT NULL,
`cardId` varchar(20) NOT NULL,
`examTime` varchar(20) NOT NULL,
`examLevel` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for edu_students
-- ----------------------------
DROP TABLE IF EXISTS `edu_students`;
CREATE TABLE `edu_students` (
`sid` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`class` varchar(20) NOT NULL,
`openid` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for edu_teachers
-- ----------------------------
DROP TABLE IF EXISTS `edu_teachers`;
CREATE TABLE `edu_teachers` (
`tid` int(11) NOT NULL,
`name` varchar(20) NOT NULL,
`phone` varchar(20) NOT NULL,
`email` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for module_comment
-- ----------------------------
DROP TABLE IF EXISTS `module_comment`;
CREATE TABLE `module_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`moduleName` varchar(50) NOT NULL,
`sid` varchar(20) DEFAULT NULL,
`name` varchar(20) DEFAULT NULL,
`content` varchar(1000) NOT NULL,
`reply` varchar(1000) DEFAULT NULL,
`markStar` varchar(1) DEFAULT NULL COMMENT '精选留言',
`likeNum` varchar(11) NOT NULL DEFAULT '0',
`time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`isRead` varchar(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for module_statistics
-- ----------------------------
DROP TABLE IF EXISTS `module_statistics`;
CREATE TABLE `module_statistics` (
`moduleName` varchar(20) CHARACTER SET utf8 NOT NULL,
`useNum` int(11) NOT NULL DEFAULT '0',
`likeNum` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`moduleName`),
UNIQUE KEY `moduleName` (`moduleName`),
KEY `moduleName_2` (`moduleName`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`sid` varchar(20) NOT NULL,
`openid` varchar(32) DEFAULT NULL,
`name` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;