|
@@ -1,3 +1,7 @@
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_course_paper"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_course_paper;
|
|
DROP TABLE IF EXISTS ec_prt_course_paper;
|
|
CREATE TABLE ec_prt_course_paper (
|
|
CREATE TABLE ec_prt_course_paper (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -15,9 +19,14 @@ CREATE TABLE ec_prt_course_paper (
|
|
paper_p int(11) DEFAULT NULL,
|
|
paper_p int(11) DEFAULT NULL,
|
|
PRIMARY KEY (id),
|
|
PRIMARY KEY (id),
|
|
KEY INDEX_PRT_COURSE_PAPER_01 (org_id),
|
|
KEY INDEX_PRT_COURSE_PAPER_01 (org_id),
|
|
- KEY INDEX_PRT_COURSE_PAPER_02 (exam_id)
|
|
|
|
|
|
+ KEY INDEX_PRT_COURSE_PAPER_02 (exam_id),
|
|
|
|
+ KEY INDEX_PRT_COURSE_PAPER_03 (course_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_course_statistic"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_course_statistic;
|
|
DROP TABLE IF EXISTS ec_prt_course_statistic;
|
|
CREATE TABLE ec_prt_course_statistic (
|
|
CREATE TABLE ec_prt_course_statistic (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -26,15 +35,24 @@ CREATE TABLE ec_prt_course_statistic (
|
|
course_code varchar(50) DEFAULT NULL,
|
|
course_code varchar(50) DEFAULT NULL,
|
|
course_id bigint(20) DEFAULT NULL,
|
|
course_id bigint(20) DEFAULT NULL,
|
|
course_name varchar(50) DEFAULT NULL,
|
|
course_name varchar(50) DEFAULT NULL,
|
|
- course_paper_id bigint(20) DEFAULT NULL,
|
|
|
|
exam_id bigint(20) DEFAULT NULL,
|
|
exam_id bigint(20) DEFAULT NULL,
|
|
org_id bigint(20) DEFAULT NULL,
|
|
org_id bigint(20) DEFAULT NULL,
|
|
|
|
+ paper_status int(11) DEFAULT NULL,
|
|
paper_type varchar(50) DEFAULT NULL,
|
|
paper_type varchar(50) DEFAULT NULL,
|
|
|
|
+ total_student int(11) DEFAULT NULL,
|
|
|
|
+ course_paper_id bigint(20) DEFAULT NULL,
|
|
PRIMARY KEY (id),
|
|
PRIMARY KEY (id),
|
|
KEY INDEX_PRT_COURSE_STATISTIC_01 (org_id),
|
|
KEY INDEX_PRT_COURSE_STATISTIC_01 (org_id),
|
|
- KEY INDEX_PRT_COURSE_STATISTIC_02 (exam_id)
|
|
|
|
|
|
+ KEY INDEX_PRT_COURSE_STATISTIC_02 (exam_id),
|
|
|
|
+ KEY INDEX_PRT_COURSE_STATISTIC_03 (course_id),
|
|
|
|
+ KEY FK7nnn568j5img7r3fjbsni2t25 (course_paper_id),
|
|
|
|
+ CONSTRAINT FK7nnn568j5img7r3fjbsni2t25 FOREIGN KEY (course_paper_id) REFERENCES ec_prt_course_paper (id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_exam_structure"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_exam_structure;
|
|
DROP TABLE IF EXISTS ec_prt_exam_structure;
|
|
CREATE TABLE ec_prt_exam_structure (
|
|
CREATE TABLE ec_prt_exam_structure (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -50,6 +68,10 @@ CREATE TABLE ec_prt_exam_structure (
|
|
UNIQUE KEY INDEX_PRT_EXAM_STRUCTURE_01 (org_id, exam_id)
|
|
UNIQUE KEY INDEX_PRT_EXAM_STRUCTURE_01 (org_id, exam_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_objective_question_structure"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_objective_question_structure;
|
|
DROP TABLE IF EXISTS ec_prt_objective_question_structure;
|
|
CREATE TABLE ec_prt_objective_question_structure (
|
|
CREATE TABLE ec_prt_objective_question_structure (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -72,6 +94,10 @@ CREATE TABLE ec_prt_objective_question_structure (
|
|
KEY INDEX_PRT_OBJECTIVE_QUESTION_02 (paper_id)
|
|
KEY INDEX_PRT_OBJECTIVE_QUESTION_02 (paper_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_project"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_project;
|
|
DROP TABLE IF EXISTS ec_prt_project;
|
|
CREATE TABLE ec_prt_project (
|
|
CREATE TABLE ec_prt_project (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -96,6 +122,10 @@ CREATE TABLE ec_prt_project (
|
|
UNIQUE KEY INDEX_PRT_PROJECT_01 (org_id, exam_id)
|
|
UNIQUE KEY INDEX_PRT_PROJECT_01 (org_id, exam_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_project_backup_setting"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_project_backup_setting;
|
|
DROP TABLE IF EXISTS ec_prt_project_backup_setting;
|
|
CREATE TABLE ec_prt_project_backup_setting (
|
|
CREATE TABLE ec_prt_project_backup_setting (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -113,6 +143,10 @@ CREATE TABLE ec_prt_project_backup_setting (
|
|
UNIQUE KEY INDEX_PRT_PROJECT_BACKUP_01 (project_id)
|
|
UNIQUE KEY INDEX_PRT_PROJECT_BACKUP_01 (project_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_project_other_setting"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_project_other_setting;
|
|
DROP TABLE IF EXISTS ec_prt_project_other_setting;
|
|
CREATE TABLE ec_prt_project_other_setting (
|
|
CREATE TABLE ec_prt_project_other_setting (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -124,6 +158,32 @@ CREATE TABLE ec_prt_project_other_setting (
|
|
KEY INDEX_PRT_PROJECT_OTHER_01 (project_id)
|
|
KEY INDEX_PRT_PROJECT_OTHER_01 (project_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_project_statistic"
|
|
|
|
+#
|
|
|
|
+
|
|
|
|
+DROP TABLE IF EXISTS ec_prt_project_statistic;
|
|
|
|
+CREATE TABLE ec_prt_project_statistic (
|
|
|
|
+ id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
|
+ creation_time datetime DEFAULT NULL,
|
|
|
|
+ update_time datetime DEFAULT NULL,
|
|
|
|
+ backupa3 int(11) DEFAULT NULL,
|
|
|
|
+ backupa4 int(11) DEFAULT NULL,
|
|
|
|
+ normala3 int(11) DEFAULT NULL,
|
|
|
|
+ normala4 int(11) DEFAULT NULL,
|
|
|
|
+ project_id bigint(20) DEFAULT NULL,
|
|
|
|
+ total_course int(11) DEFAULT NULL,
|
|
|
|
+ total_paper int(11) DEFAULT NULL,
|
|
|
|
+ total_pkg int(11) DEFAULT NULL,
|
|
|
|
+ total_student int(11) DEFAULT NULL,
|
|
|
|
+ PRIMARY KEY (id),
|
|
|
|
+ UNIQUE KEY INDEX_PRT_PROJECT_STATISTIC_01 (project_id)
|
|
|
|
+) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
+
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_subjective_question_structure"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_subjective_question_structure;
|
|
DROP TABLE IF EXISTS ec_prt_subjective_question_structure;
|
|
CREATE TABLE ec_prt_subjective_question_structure (
|
|
CREATE TABLE ec_prt_subjective_question_structure (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -145,6 +205,10 @@ CREATE TABLE ec_prt_subjective_question_structure (
|
|
KEY INDEX_PRT_SUBJECTIVE_QUESTION_02 (paper_id)
|
|
KEY INDEX_PRT_SUBJECTIVE_QUESTION_02 (paper_id)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# Structure for table "ec_prt_template"
|
|
|
|
+#
|
|
|
|
+
|
|
DROP TABLE IF EXISTS ec_prt_template;
|
|
DROP TABLE IF EXISTS ec_prt_template;
|
|
CREATE TABLE ec_prt_template (
|
|
CREATE TABLE ec_prt_template (
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|