|
@@ -18,7 +18,6 @@ CREATE TABLE ec_prt_course_paper (
|
|
|
KEY INDEX_PRT_COURSE_PAPER_02 (exam_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_course_statistic;
|
|
|
CREATE TABLE ec_prt_course_statistic (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -36,7 +35,6 @@ CREATE TABLE ec_prt_course_statistic (
|
|
|
KEY INDEX_PRT_COURSE_STATISTIC_02 (exam_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_exam_structure;
|
|
|
CREATE TABLE ec_prt_exam_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -52,7 +50,6 @@ CREATE TABLE ec_prt_exam_structure (
|
|
|
UNIQUE KEY INDEX_PRT_EXAM_STRUCTURE_01 (org_id, exam_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_objective_question_structure;
|
|
|
CREATE TABLE ec_prt_objective_question_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -75,7 +72,6 @@ CREATE TABLE ec_prt_objective_question_structure (
|
|
|
KEY INDEX_PRT_OBJECTIVE_QUESTION_02 (paper_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_project;
|
|
|
CREATE TABLE ec_prt_project (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -100,7 +96,6 @@ CREATE TABLE ec_prt_project (
|
|
|
UNIQUE KEY INDEX_PRT_PROJECT_01 (org_id, exam_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_project_backup_setting;
|
|
|
CREATE TABLE ec_prt_project_backup_setting (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -118,7 +113,6 @@ CREATE TABLE ec_prt_project_backup_setting (
|
|
|
UNIQUE KEY INDEX_PRT_PROJECT_BACKUP_01 (project_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_project_other_setting;
|
|
|
CREATE TABLE ec_prt_project_other_setting (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -130,7 +124,6 @@ CREATE TABLE ec_prt_project_other_setting (
|
|
|
KEY INDEX_PRT_PROJECT_OTHER_01 (project_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_subjective_question_structure;
|
|
|
CREATE TABLE ec_prt_subjective_question_structure (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
@@ -152,20 +145,16 @@ CREATE TABLE ec_prt_subjective_question_structure (
|
|
|
KEY INDEX_PRT_SUBJECTIVE_QUESTION_02 (paper_id)
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
|
|
|
|
|
-
|
|
|
DROP TABLE IF EXISTS ec_prt_template;
|
|
|
CREATE TABLE ec_prt_template (
|
|
|
id bigint(20) NOT NULL AUTO_INCREMENT,
|
|
|
creation_time datetime DEFAULT NULL,
|
|
|
update_time datetime DEFAULT NULL,
|
|
|
exam_id bigint(20) DEFAULT NULL,
|
|
|
- exam_name varchar(50) DEFAULT NULL,
|
|
|
file_name varchar(50) DEFAULT NULL,
|
|
|
- order_num int(11) DEFAULT NULL,
|
|
|
+ file_url varchar(200) DEFAULT NULL,
|
|
|
org_id bigint(20) DEFAULT NULL,
|
|
|
- org_name varchar(50) DEFAULT NULL,
|
|
|
- template_type varchar(50) DEFAULT NULL,
|
|
|
- template_url varchar(200) DEFAULT NULL,
|
|
|
+ template_type int(11) DEFAULT NULL,
|
|
|
PRIMARY KEY (id),
|
|
|
KEY INDEX_PRT_TEMPLATE_01 (org_id),
|
|
|
KEY INDEX_PRT_TEMPLATE_02 (exam_id)
|