|
@@ -2,8 +2,7 @@ USE teachreport_db;
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_attachment
|
|
-- Table structure for basic_attachment
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_attachment`;
|
|
|
|
-CREATE TABLE `basic_attachment` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_attachment` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
@@ -23,8 +22,7 @@ CREATE TABLE `basic_attachment` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_campus
|
|
-- Table structure for basic_campus
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_campus`;
|
|
|
|
-CREATE TABLE `basic_campus` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_campus` (
|
|
`id` bigint NOT NULL COMMENT '校区id',
|
|
`id` bigint NOT NULL COMMENT '校区id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`campus_name` varchar(64) DEFAULT NULL COMMENT '校区名称',
|
|
`campus_name` varchar(64) DEFAULT NULL COMMENT '校区名称',
|
|
@@ -43,8 +41,7 @@ CREATE TABLE `basic_campus` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_course
|
|
-- Table structure for basic_course
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_course`;
|
|
|
|
-CREATE TABLE `basic_course` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_course` (
|
|
`id` bigint NOT NULL COMMENT '课程主键',
|
|
`id` bigint NOT NULL COMMENT '课程主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`code` varchar(100) DEFAULT NULL COMMENT '课程编号',
|
|
`code` varchar(100) DEFAULT NULL COMMENT '课程编号',
|
|
@@ -64,8 +61,7 @@ CREATE TABLE `basic_course` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_school
|
|
-- Table structure for basic_school
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_school`;
|
|
|
|
-CREATE TABLE `basic_school` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_school` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`code` varchar(100) DEFAULT NULL COMMENT '学校编号',
|
|
`code` varchar(100) DEFAULT NULL COMMENT '学校编号',
|
|
`domain_name` varchar(20) DEFAULT NULL COMMENT '域名',
|
|
`domain_name` varchar(20) DEFAULT NULL COMMENT '域名',
|
|
@@ -90,8 +86,7 @@ CREATE TABLE `basic_school` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_semester
|
|
-- Table structure for basic_semester
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_semester`;
|
|
|
|
-CREATE TABLE `basic_semester` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_semester` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`name` varchar(100) NOT NULL COMMENT '学期名称',
|
|
`name` varchar(100) NOT NULL COMMENT '学期名称',
|
|
@@ -112,8 +107,7 @@ CREATE TABLE `basic_semester` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_user_course
|
|
-- Table structure for basic_user_course
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_user_course`;
|
|
|
|
-CREATE TABLE `basic_user_course` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_user_course` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`user_id` bigint DEFAULT NULL COMMENT '用户ID',
|
|
`user_id` bigint DEFAULT NULL COMMENT '用户ID',
|
|
`course_id` bigint DEFAULT NULL COMMENT '课程ID',
|
|
`course_id` bigint DEFAULT NULL COMMENT '课程ID',
|
|
@@ -127,8 +121,7 @@ CREATE TABLE `basic_user_course` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for basic_verify_code
|
|
-- Table structure for basic_verify_code
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `basic_verify_code`;
|
|
|
|
-CREATE TABLE `basic_verify_code` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `basic_verify_code` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`user_id` bigint NOT NULL COMMENT '用户ID',
|
|
`user_id` bigint NOT NULL COMMENT '用户ID',
|
|
`mobile_number` varchar(11) NOT NULL COMMENT '手机号',
|
|
`mobile_number` varchar(11) NOT NULL COMMENT '手机号',
|
|
@@ -147,8 +140,7 @@ CREATE TABLE `basic_verify_code` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for grade_batch_student
|
|
-- Table structure for grade_batch_student
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `grade_batch_student`;
|
|
|
|
-CREATE TABLE `grade_batch_student` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `grade_batch_student` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`batch_id` bigint DEFAULT NULL COMMENT '分析-批次表ID',
|
|
`batch_id` bigint DEFAULT NULL COMMENT '分析-批次表ID',
|
|
`course_code` varchar(50) DEFAULT NULL COMMENT '课程编码',
|
|
`course_code` varchar(50) DEFAULT NULL COMMENT '课程编码',
|
|
@@ -170,8 +162,7 @@ CREATE TABLE `grade_batch_student` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_config
|
|
-- Table structure for sys_config
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_config`;
|
|
|
|
-CREATE TABLE `sys_config` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_config` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
@@ -191,8 +182,7 @@ CREATE TABLE `sys_config` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_org
|
|
-- Table structure for sys_org
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_org`;
|
|
|
|
-CREATE TABLE `sys_org` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_org` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL COMMENT '学校ID',
|
|
`school_id` bigint NOT NULL COMMENT '学校ID',
|
|
`type` varchar(50) NOT NULL DEFAULT 'COLLEGE' COMMENT '类型,SCHOOL:学校,COLLEGE:学院,FACULTY:院系,TEACHING_ROOM:教研室,PRINTING_HOUSE:印刷厂',
|
|
`type` varchar(50) NOT NULL DEFAULT 'COLLEGE' COMMENT '类型,SCHOOL:学校,COLLEGE:学院,FACULTY:院系,TEACHING_ROOM:教研室,PRINTING_HOUSE:印刷厂',
|
|
@@ -213,8 +203,7 @@ CREATE TABLE `sys_org` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_privilege
|
|
-- Table structure for sys_privilege
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_privilege`;
|
|
|
|
-CREATE TABLE `sys_privilege` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_privilege` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`name` varchar(100) NOT NULL COMMENT '菜单名称',
|
|
`name` varchar(100) NOT NULL COMMENT '菜单名称',
|
|
`url` varchar(100) NOT NULL COMMENT 'URL地址',
|
|
`url` varchar(100) NOT NULL COMMENT 'URL地址',
|
|
@@ -233,8 +222,7 @@ CREATE TABLE `sys_privilege` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_role
|
|
-- Table structure for sys_role
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_role`;
|
|
|
|
-CREATE TABLE `sys_role` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_role` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校ID',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校ID',
|
|
`name` varchar(50) NOT NULL COMMENT '角色名称',
|
|
`name` varchar(50) NOT NULL COMMENT '角色名称',
|
|
@@ -254,8 +242,7 @@ CREATE TABLE `sys_role` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_role_privilege
|
|
-- Table structure for sys_role_privilege
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_role_privilege`;
|
|
|
|
-CREATE TABLE `sys_role_privilege` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_role_privilege` (
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
`role_id` bigint NOT NULL COMMENT '角色ID',
|
|
`role_id` bigint NOT NULL COMMENT '角色ID',
|
|
`privilege_id` bigint NOT NULL COMMENT '菜单ID',
|
|
`privilege_id` bigint NOT NULL COMMENT '菜单ID',
|
|
@@ -267,8 +254,7 @@ CREATE TABLE `sys_role_privilege` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_user
|
|
-- Table structure for sys_user
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_user`;
|
|
|
|
-CREATE TABLE `sys_user` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_user` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校ID',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校ID',
|
|
`login_name` varchar(100) NOT NULL COMMENT '用户名',
|
|
`login_name` varchar(100) NOT NULL COMMENT '用户名',
|
|
@@ -297,8 +283,7 @@ CREATE TABLE `sys_user` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for sys_user_role
|
|
-- Table structure for sys_user_role
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `sys_user_role`;
|
|
|
|
-CREATE TABLE `sys_user_role` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `sys_user_role` (
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
`id` bigint NOT NULL AUTO_INCREMENT,
|
|
`user_id` bigint NOT NULL COMMENT '用户ID',
|
|
`user_id` bigint NOT NULL COMMENT '用户ID',
|
|
`role_id` bigint NOT NULL COMMENT '角色ID',
|
|
`role_id` bigint NOT NULL COMMENT '角色ID',
|
|
@@ -310,8 +295,7 @@ CREATE TABLE `sys_user_role` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course
|
|
-- Table structure for t_a_exam_course
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course`;
|
|
|
|
-CREATE TABLE `t_a_exam_course` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course` (
|
|
`id` bigint NOT NULL COMMENT '考试科目分析表id',
|
|
`id` bigint NOT NULL COMMENT '考试科目分析表id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_name` varchar(100) NOT NULL COMMENT '考试名称(冗余)',
|
|
`exam_name` varchar(100) NOT NULL COMMENT '考试名称(冗余)',
|
|
@@ -363,8 +347,7 @@ CREATE TABLE `t_a_exam_course` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_clazz
|
|
-- Table structure for t_a_exam_course_clazz
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_clazz`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_clazz` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_clazz` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -385,8 +368,7 @@ CREATE TABLE `t_a_exam_course_clazz` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_college_inspect
|
|
-- Table structure for t_a_exam_course_college_inspect
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_college_inspect`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_college_inspect` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_college_inspect` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -412,8 +394,7 @@ CREATE TABLE `t_a_exam_course_college_inspect` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_college_inspect_dio
|
|
-- Table structure for t_a_exam_course_college_inspect_dio
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_college_inspect_dio`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_college_inspect_dio` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_college_inspect_dio` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -432,8 +413,7 @@ CREATE TABLE `t_a_exam_course_college_inspect_dio` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_college_paper_struct
|
|
-- Table structure for t_a_exam_course_college_paper_struct
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_college_paper_struct`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_college_paper_struct` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_college_paper_struct` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
@@ -465,8 +445,7 @@ CREATE TABLE `t_a_exam_course_college_paper_struct` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_college_teacher
|
|
-- Table structure for t_a_exam_course_college_teacher
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_college_teacher`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_college_teacher` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_college_teacher` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -510,8 +489,7 @@ CREATE TABLE `t_a_exam_course_college_teacher` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_difficult
|
|
-- Table structure for t_a_exam_course_difficult
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_difficult`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_difficult` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_difficult` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -531,8 +509,7 @@ CREATE TABLE `t_a_exam_course_difficult` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_dio
|
|
-- Table structure for t_a_exam_course_dio
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_dio`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_dio` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_dio` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_Id` bigint DEFAULT NULL,
|
|
`school_Id` bigint DEFAULT NULL,
|
|
@@ -551,8 +528,7 @@ CREATE TABLE `t_a_exam_course_dio` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_record
|
|
-- Table structure for t_a_exam_course_record
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_record`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_record` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_record` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩记录表id',
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩记录表id',
|
|
@@ -585,8 +561,7 @@ CREATE TABLE `t_a_exam_course_record` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_record_dio
|
|
-- Table structure for t_a_exam_course_record_dio
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_record_dio`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_record_dio` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_record_dio` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩记录表id',
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩记录表id',
|
|
@@ -612,8 +587,7 @@ CREATE TABLE `t_a_exam_course_record_dio` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_record_mod
|
|
-- Table structure for t_a_exam_course_record_mod
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_record_mod`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_record_mod` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_record_mod` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩表id',
|
|
`exam_record_id` bigint NOT NULL COMMENT '基础考生成绩表id',
|
|
@@ -640,8 +614,7 @@ CREATE TABLE `t_a_exam_course_record_mod` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher
|
|
-- Table structure for t_a_exam_course_teacher
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher` (
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`id` bigint NOT NULL COMMENT 'id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -668,8 +641,7 @@ CREATE TABLE `t_a_exam_course_teacher` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_college_difficult
|
|
-- Table structure for t_a_exam_course_teacher_college_difficult
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_college_difficult`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_college_difficult` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_college_difficult` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
@@ -692,8 +664,7 @@ CREATE TABLE `t_a_exam_course_teacher_college_difficult` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_college_dio
|
|
-- Table structure for t_a_exam_course_teacher_college_dio
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_college_dio`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_college_dio` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_college_dio` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
@@ -713,8 +684,7 @@ CREATE TABLE `t_a_exam_course_teacher_college_dio` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_college_paper_struct
|
|
-- Table structure for t_a_exam_course_teacher_college_paper_struct
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_college_paper_struct`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_college_paper_struct` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_college_paper_struct` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
@@ -748,8 +718,7 @@ CREATE TABLE `t_a_exam_course_teacher_college_paper_struct` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_difficult
|
|
-- Table structure for t_a_exam_course_teacher_difficult
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_difficult`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_difficult` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_difficult` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -770,8 +739,7 @@ CREATE TABLE `t_a_exam_course_teacher_difficult` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_dio
|
|
-- Table structure for t_a_exam_course_teacher_dio
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_dio`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_dio` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_dio` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
@@ -790,8 +758,7 @@ CREATE TABLE `t_a_exam_course_teacher_dio` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_course_teacher_paper_struct
|
|
-- Table structure for t_a_exam_course_teacher_paper_struct
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_course_teacher_paper_struct`;
|
|
|
|
-CREATE TABLE `t_a_exam_course_teacher_paper_struct` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_course_teacher_paper_struct` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '试卷结构基础表id',
|
|
@@ -823,8 +790,7 @@ CREATE TABLE `t_a_exam_course_teacher_paper_struct` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_exam_total
|
|
-- Table structure for t_a_exam_total
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_exam_total`;
|
|
|
|
-CREATE TABLE `t_a_exam_total` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_exam_total` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '基础考试表id',
|
|
`exam_id` bigint NOT NULL COMMENT '基础考试表id',
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
@@ -846,8 +812,7 @@ CREATE TABLE `t_a_exam_total` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_a_paper_struct
|
|
-- Table structure for t_a_paper_struct
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_a_paper_struct`;
|
|
|
|
-CREATE TABLE `t_a_paper_struct` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_a_paper_struct` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`school_id` bigint DEFAULT NULL,
|
|
`paper_struct_id` bigint NOT NULL COMMENT '基础试卷结构表id',
|
|
`paper_struct_id` bigint NOT NULL COMMENT '基础试卷结构表id',
|
|
@@ -879,8 +844,7 @@ CREATE TABLE `t_a_paper_struct` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_answer
|
|
-- Table structure for t_b_answer
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_answer`;
|
|
|
|
-CREATE TABLE `t_b_answer` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_answer` (
|
|
`id` bigint NOT NULL COMMENT '考生作答记录详情id',
|
|
`id` bigint NOT NULL COMMENT '考生作答记录详情id',
|
|
`exam_record_id` bigint NOT NULL COMMENT '考试记录id',
|
|
`exam_record_id` bigint NOT NULL COMMENT '考试记录id',
|
|
`number_type` varchar(32) NOT NULL COMMENT '题号类型(客观题、主观题)',
|
|
`number_type` varchar(32) NOT NULL COMMENT '题号类型(客观题、主观题)',
|
|
@@ -897,8 +861,7 @@ CREATE TABLE `t_b_answer` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_cloud_exam
|
|
-- Table structure for t_b_cloud_exam
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_cloud_exam`;
|
|
|
|
-CREATE TABLE `t_b_cloud_exam` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_cloud_exam` (
|
|
`id` bigint NOT NULL COMMENT '对应云阅卷主键',
|
|
`id` bigint NOT NULL COMMENT '对应云阅卷主键',
|
|
`exam_id` bigint NOT NULL COMMENT '教研分析考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '教研分析考试id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
@@ -916,8 +879,7 @@ CREATE TABLE `t_b_cloud_exam` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_common_level_config
|
|
-- Table structure for t_b_common_level_config
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_common_level_config`;
|
|
|
|
-CREATE TABLE `t_b_common_level_config` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_common_level_config` (
|
|
`id` bigint NOT NULL COMMENT '常规等级配置表主键',
|
|
`id` bigint NOT NULL COMMENT '常规等级配置表主键',
|
|
`exam_id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL,
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
@@ -934,8 +896,7 @@ CREATE TABLE `t_b_common_level_config` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_common_rank_level_config
|
|
-- Table structure for t_b_common_rank_level_config
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_common_rank_level_config`;
|
|
|
|
-CREATE TABLE `t_b_common_rank_level_config` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_common_rank_level_config` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL,
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
@@ -951,8 +912,7 @@ CREATE TABLE `t_b_common_rank_level_config` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_dimension
|
|
-- Table structure for t_b_dimension
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_dimension`;
|
|
|
|
-CREATE TABLE `t_b_dimension` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_dimension` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint DEFAULT NULL COMMENT '考试id',
|
|
`exam_id` bigint DEFAULT NULL COMMENT '考试id',
|
|
`course_code` varchar(100) DEFAULT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) DEFAULT NULL COMMENT '科目编码',
|
|
@@ -970,8 +930,7 @@ CREATE TABLE `t_b_dimension` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_exam
|
|
-- Table structure for t_b_exam
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_exam`;
|
|
|
|
-CREATE TABLE `t_b_exam` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_exam` (
|
|
`id` bigint NOT NULL COMMENT '教研分析考试主键',
|
|
`id` bigint NOT NULL COMMENT '教研分析考试主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`exam_code` varchar(32) NOT NULL COMMENT '考试编号(在学校下唯一)',
|
|
`exam_code` varchar(32) NOT NULL COMMENT '考试编号(在学校下唯一)',
|
|
@@ -988,8 +947,7 @@ CREATE TABLE `t_b_exam` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_exam_course
|
|
-- Table structure for t_b_exam_course
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_exam_course`;
|
|
|
|
-CREATE TABLE `t_b_exam_course` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_exam_course` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
@@ -1011,8 +969,7 @@ CREATE TABLE `t_b_exam_course` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_exam_record
|
|
-- Table structure for t_b_exam_record
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_exam_record`;
|
|
|
|
-CREATE TABLE `t_b_exam_record` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_exam_record` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`paper_id` bigint NOT NULL COMMENT '试卷id',
|
|
`paper_id` bigint NOT NULL COMMENT '试卷id',
|
|
@@ -1028,8 +985,7 @@ CREATE TABLE `t_b_exam_record` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_exam_student
|
|
-- Table structure for t_b_exam_student
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_exam_student`;
|
|
|
|
-CREATE TABLE `t_b_exam_student` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_exam_student` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
@@ -1053,8 +1009,7 @@ CREATE TABLE `t_b_exam_student` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_examination
|
|
-- Table structure for t_b_examination
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_examination`;
|
|
|
|
-CREATE TABLE `t_b_examination` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_examination` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL,
|
|
@@ -1077,8 +1032,7 @@ CREATE TABLE `t_b_examination` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_examination_relation
|
|
-- Table structure for t_b_examination_relation
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_examination_relation`;
|
|
|
|
-CREATE TABLE `t_b_examination_relation` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_examination_relation` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
@@ -1093,8 +1047,7 @@ CREATE TABLE `t_b_examination_relation` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_module_config
|
|
-- Table structure for t_b_module_config
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_module_config`;
|
|
|
|
-CREATE TABLE `t_b_module_config` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_module_config` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
@@ -1113,8 +1066,7 @@ CREATE TABLE `t_b_module_config` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_module_proficiency
|
|
-- Table structure for t_b_module_proficiency
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_module_proficiency`;
|
|
|
|
-CREATE TABLE `t_b_module_proficiency` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_module_proficiency` (
|
|
`id` bigint NOT NULL COMMENT '模块熟练度主键',
|
|
`id` bigint NOT NULL COMMENT '模块熟练度主键',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
@@ -1133,8 +1085,7 @@ CREATE TABLE `t_b_module_proficiency` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_paper
|
|
-- Table structure for t_b_paper
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_paper`;
|
|
|
|
-CREATE TABLE `t_b_paper` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_paper` (
|
|
`id` bigint NOT NULL COMMENT '试卷id',
|
|
`id` bigint NOT NULL COMMENT '试卷id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`exam_id` bigint NOT NULL COMMENT '考试id',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
`course_code` varchar(100) NOT NULL COMMENT '科目编码',
|
|
@@ -1153,8 +1104,7 @@ CREATE TABLE `t_b_paper` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_paper_struct
|
|
-- Table structure for t_b_paper_struct
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_paper_struct`;
|
|
|
|
-CREATE TABLE `t_b_paper_struct` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_paper_struct` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`paper_id` bigint DEFAULT NULL COMMENT '试卷基础表id',
|
|
`paper_id` bigint DEFAULT NULL COMMENT '试卷基础表id',
|
|
`question_name` varchar(200) DEFAULT NULL COMMENT '大题名称',
|
|
`question_name` varchar(200) DEFAULT NULL COMMENT '大题名称',
|
|
@@ -1175,8 +1125,7 @@ CREATE TABLE `t_b_paper_struct` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_school_clazz
|
|
-- Table structure for t_b_school_clazz
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_school_clazz`;
|
|
|
|
-CREATE TABLE `t_b_school_clazz` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_school_clazz` (
|
|
`id` bigint NOT NULL COMMENT '班级id',
|
|
`id` bigint NOT NULL COMMENT '班级id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`clazz_code` varchar(100) DEFAULT NULL COMMENT '班级编号',
|
|
`clazz_code` varchar(100) DEFAULT NULL COMMENT '班级编号',
|
|
@@ -1192,8 +1141,7 @@ CREATE TABLE `t_b_school_clazz` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_school_major
|
|
-- Table structure for t_b_school_major
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_school_major`;
|
|
|
|
-CREATE TABLE `t_b_school_major` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_school_major` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`major_code` varchar(100) DEFAULT NULL COMMENT '专业编号',
|
|
`major_code` varchar(100) DEFAULT NULL COMMENT '专业编号',
|
|
@@ -1209,8 +1157,7 @@ CREATE TABLE `t_b_school_major` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_session
|
|
-- Table structure for t_b_session
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_session`;
|
|
|
|
-CREATE TABLE `t_b_session` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_session` (
|
|
`id` varchar(100) NOT NULL COMMENT '主键',
|
|
`id` varchar(100) NOT NULL COMMENT '主键',
|
|
`identity` varchar(100) NOT NULL COMMENT '用户标识',
|
|
`identity` varchar(100) NOT NULL COMMENT '用户标识',
|
|
`type` varchar(50) NOT NULL COMMENT '用户类型',
|
|
`type` varchar(50) NOT NULL COMMENT '用户类型',
|
|
@@ -1232,8 +1179,7 @@ CREATE TABLE `t_b_session` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_student
|
|
-- Table structure for t_b_student
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_student`;
|
|
|
|
-CREATE TABLE `t_b_student` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_student` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`name` varchar(100) DEFAULT NULL COMMENT '姓名',
|
|
`name` varchar(100) DEFAULT NULL COMMENT '姓名',
|
|
@@ -1246,8 +1192,7 @@ CREATE TABLE `t_b_student` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_sync_task
|
|
-- Table structure for t_b_sync_task
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_sync_task`;
|
|
|
|
-CREATE TABLE `t_b_sync_task` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_sync_task` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`school_id` bigint DEFAULT NULL COMMENT '学校id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
@@ -1273,8 +1218,7 @@ CREATE TABLE `t_b_sync_task` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_task
|
|
-- Table structure for t_b_task
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_task`;
|
|
|
|
-CREATE TABLE `t_b_task` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_task` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`type` varchar(50) NOT NULL COMMENT '任务类型,QUESTION_MISSION_BATCH_CREATE:批量新建命题任务,\nSAMPLE_EXPORT:导出审核样本,\nEXAMINATION_IMPORT:考务数据导入,\nEXAMINATION_EXPORT:考务数据导出,\nPRINT_PDF_DOWNLOAD:批量下载pdf,\nCREATE_PDF:生成pdf',
|
|
`type` varchar(50) NOT NULL COMMENT '任务类型,QUESTION_MISSION_BATCH_CREATE:批量新建命题任务,\nSAMPLE_EXPORT:导出审核样本,\nEXAMINATION_IMPORT:考务数据导入,\nEXAMINATION_EXPORT:考务数据导出,\nPRINT_PDF_DOWNLOAD:批量下载pdf,\nCREATE_PDF:生成pdf',
|
|
`entity_id` bigint DEFAULT NULL COMMENT '关联业务对象id',
|
|
`entity_id` bigint DEFAULT NULL COMMENT '关联业务对象id',
|
|
@@ -1303,8 +1247,7 @@ CREATE TABLE `t_b_task` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_b_teacher
|
|
-- Table structure for t_b_teacher
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_b_teacher`;
|
|
|
|
-CREATE TABLE `t_b_teacher` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_b_teacher` (
|
|
`id` bigint NOT NULL,
|
|
`id` bigint NOT NULL,
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
`org_id` bigint DEFAULT NULL COMMENT '机构id',
|
|
@@ -1317,8 +1260,7 @@ CREATE TABLE `t_b_teacher` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_g_error
|
|
-- Table structure for t_g_error
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_g_error`;
|
|
|
|
-CREATE TABLE `t_g_error` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_g_error` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`obj_id` bigint DEFAULT NULL COMMENT '实体id',
|
|
`obj_id` bigint DEFAULT NULL COMMENT '实体id',
|
|
`summary` mediumtext COMMENT '实时摘要信息',
|
|
`summary` mediumtext COMMENT '实时摘要信息',
|
|
@@ -1329,8 +1271,7 @@ CREATE TABLE `t_g_error` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_s_auth
|
|
-- Table structure for t_s_auth
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_s_auth`;
|
|
|
|
-CREATE TABLE `t_s_auth` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_s_auth` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`access_key` varchar(255) DEFAULT NULL COMMENT 'accessKey',
|
|
`access_key` varchar(255) DEFAULT NULL COMMENT 'accessKey',
|
|
@@ -1349,8 +1290,7 @@ CREATE TABLE `t_s_auth` (
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-- Table structure for t_school_role
|
|
-- Table structure for t_school_role
|
|
-- ----------------------------
|
|
-- ----------------------------
|
|
-DROP TABLE IF EXISTS `t_school_role`;
|
|
|
|
-CREATE TABLE `t_school_role` (
|
|
|
|
|
|
+CREATE TABLE IF NOT EXISTS `t_school_role` (
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`id` bigint NOT NULL COMMENT '主键',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`school_id` bigint NOT NULL COMMENT '学校id',
|
|
`role_id` bigint NOT NULL COMMENT '菜单权限id',
|
|
`role_id` bigint NOT NULL COMMENT '菜单权限id',
|