-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
76 lines (69 loc) · 2.57 KB
/
readme.txt
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
mysql数据库
CREATE TABLE `exam` (
`id` int NOT NULL AUTO_INCREMENT,
`grade` varchar(45) DEFAULT NULL,
`major` varchar(45) DEFAULT NULL,
`name` varchar(45) DEFAULT NULL,
`startTime` datetime DEFAULT NULL,
`endTime` datetime DEFAULT NULL,
`subject` varchar(45) DEFAULT NULL,
`examcol` varchar(45) DEFAULT NULL,
`duration` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `classroom` (
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(450) DEFAULT NULL,
`area` varchar(45) DEFAULT NULL,
`type` varchar(45) DEFAULT NULL,
`floorNum` varchar(45) DEFAULT NULL,
`numTotal` int DEFAULT NULL,
`numExam` int DEFAULT NULL,
`canClass` varchar(45) DEFAULT NULL,
`canBorrow` varchar(45) DEFAULT NULL,
`canExam` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=889 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `student` (
`id` varchar(45) NOT NULL,
`name` varchar(45) DEFAULT NULL,
`level` varchar(45) DEFAULT NULL,
`major` varchar(45) DEFAULT NULL,
`classNum` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `teacher` (
`id` int NOT NULL AUTO_INCREMENT,
`major` varchar(45) NOT NULL,
`name` varchar(45) DEFAULT NULL,
`phone` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`,`major`)
) ENGINE=InnoDB AUTO_INCREMENT=6463 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `relation` (
`id` int NOT NULL AUTO_INCREMENT,
`examId` int DEFAULT NULL,
`studentId` varchar(45) DEFAULT NULL,
`teacherId` int DEFAULT NULL,
`classroomId` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `relation_student` (
`id` int NOT NULL AUTO_INCREMENT,
`relationId` int DEFAULT NULL,
`studentId` varchar(45) DEFAULT NULL,
`order` int DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6958 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `setting` (
`id` int NOT NULL AUTO_INCREMENT,
`type` varchar(45) DEFAULT NULL,
`time` datetime(2) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user` (
`id` int NOT NULL AUTO_INCREMENT,
`account` varchar(45) DEFAULT NULL,
`password` varchar(45) DEFAULT NULL,
`role` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9873 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;