|
@@ -1,8 +1,8 @@
|
|
|
DROP TABLE IF EXISTS `am_question`;
|
|
|
CREATE TABLE `am_question` (
|
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
|
- `create_time` datetime(6) DEFAULT NULL,
|
|
|
- `update_time` datetime(6) DEFAULT NULL,
|
|
|
+ `create_time` datetime DEFAULT NULL,
|
|
|
+ `update_time` datetime DEFAULT NULL,
|
|
|
`answer` longtext COLLATE utf8mb4_bin NOT NULL,
|
|
|
`content` longtext COLLATE utf8mb4_bin NOT NULL,
|
|
|
`exam_id` bigint NOT NULL,
|
|
@@ -11,6 +11,7 @@ CREATE TABLE `am_question` (
|
|
|
`main_number` int NOT NULL,
|
|
|
`sub_number` int NOT NULL,
|
|
|
`subject_code` varchar(255) COLLATE utf8mb4_bin NOT NULL,
|
|
|
+ `subject_name` varchar(255) COLLATE utf8mb4_bin NOT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
UNIQUE KEY `IDX_QUESTION_01` (`exam_id`, `subject_code`, `main_number`, `sub_number`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
@@ -18,8 +19,8 @@ CREATE TABLE `am_question` (
|
|
|
DROP TABLE IF EXISTS `am_student`;
|
|
|
CREATE TABLE `am_student` (
|
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
|
- `create_time` datetime(6) DEFAULT NULL,
|
|
|
- `update_time` datetime(6) DEFAULT NULL,
|
|
|
+ `create_time` datetime DEFAULT NULL,
|
|
|
+ `update_time` datetime DEFAULT NULL,
|
|
|
`data_status` varchar(255) NOT NULL,
|
|
|
`exam_id` bigint NOT NULL,
|
|
|
`student_code` varchar(255) COLLATE utf8mb4_bin NOT NULL,
|
|
@@ -32,11 +33,11 @@ CREATE TABLE `am_student` (
|
|
|
DROP TABLE IF EXISTS `am_student_score`;
|
|
|
CREATE TABLE `am_student_score` (
|
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
|
- `create_time` datetime(6) DEFAULT NULL,
|
|
|
- `update_time` datetime(6) DEFAULT NULL,
|
|
|
+ `create_time` datetime DEFAULT NULL,
|
|
|
+ `update_time` datetime DEFAULT NULL,
|
|
|
`ai_score` double DEFAULT NULL,
|
|
|
- `answer_status` varchar(255) int NOT NULL,
|
|
|
- `score_status` varchar(255) int NOT NULL,
|
|
|
+ `answer_status` varchar(255) NOT NULL,
|
|
|
+ `score_status` varchar(255) NOT NULL,
|
|
|
`answer` longtext COLLATE utf8mb4_bin DEFAULT NULL,
|
|
|
`err_msg` varchar(1000) COLLATE utf8mb4_bin DEFAULT NULL,
|
|
|
`main_number` int NOT NULL,
|
|
@@ -47,7 +48,7 @@ CREATE TABLE `am_student_score` (
|
|
|
`exam_id` bigint NOT NULL,
|
|
|
`student_code` varchar(255) COLLATE utf8mb4_bin NOT NULL,
|
|
|
`subject_code` varchar(255) COLLATE utf8mb4_bin NOT NULL,
|
|
|
- `sub_number` int NOT NULL,
|
|
|
+ `sub_number` varchar(255) NOT NULL,
|
|
|
PRIMARY KEY (`id`),
|
|
|
UNIQUE KEY `IDX_STUDENT_SCORE_01` (`student_id`, `question_id`),
|
|
|
UNIQUE KEY `IDX_STUDENT_SCORE_02` (`exam_id`, `subject_code`, `student_code`,`main_number`, `sub_number`)
|