3046 lines
146 KiB
SQL
3046 lines
146 KiB
SQL
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8 */;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
DROP TABLE IF EXISTS `assessment_aiclassifier`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_aiclassifier` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`classifier_set_id` int(11) NOT NULL,
|
|
`criterion_id` int(11) NOT NULL,
|
|
`classifier_data` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_aiclassifier_714175dc` (`classifier_set_id`),
|
|
KEY `assessment_aiclassifier_a36470e4` (`criterion_id`),
|
|
CONSTRAINT `classifier_set_id_refs_id_f80cbf6` FOREIGN KEY (`classifier_set_id`) REFERENCES `assessment_aiclassifierset` (`id`),
|
|
CONSTRAINT `criterion_id_refs_id_e6ab97f2` FOREIGN KEY (`criterion_id`) REFERENCES `assessment_criterion` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_aiclassifierset`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_aiclassifierset` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`rubric_id` int(11) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`algorithm_id` varchar(128) NOT NULL,
|
|
`course_id` varchar(40) NOT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_aiclassifierset_27cb9807` (`rubric_id`),
|
|
KEY `assessment_aiclassifierset_3b1c9c31` (`created_at`),
|
|
KEY `assessment_aiclassifierset_53012c1e` (`algorithm_id`),
|
|
KEY `assessment_aiclassifierset_ff48d8e5` (`course_id`),
|
|
KEY `assessment_aiclassifierset_67b70d25` (`item_id`),
|
|
CONSTRAINT `rubric_id_refs_id_c037b8e4` FOREIGN KEY (`rubric_id`) REFERENCES `assessment_rubric` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_aigradingworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_aigradingworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`uuid` varchar(36) NOT NULL,
|
|
`scheduled_at` datetime NOT NULL,
|
|
`completed_at` datetime DEFAULT NULL,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`classifier_set_id` int(11) DEFAULT NULL,
|
|
`algorithm_id` varchar(128) NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
`assessment_id` int(11) DEFAULT NULL,
|
|
`student_id` varchar(40) NOT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
`course_id` varchar(40) NOT NULL,
|
|
`essay_text` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_aigradingworkflow_uuid_492e936265ecbfd2_uniq` (`uuid`),
|
|
KEY `assessment_aigradingworkflow_2bbc74ae` (`uuid`),
|
|
KEY `assessment_aigradingworkflow_4bacaa90` (`scheduled_at`),
|
|
KEY `assessment_aigradingworkflow_a2fd3af6` (`completed_at`),
|
|
KEY `assessment_aigradingworkflow_39d020e6` (`submission_uuid`),
|
|
KEY `assessment_aigradingworkflow_714175dc` (`classifier_set_id`),
|
|
KEY `assessment_aigradingworkflow_53012c1e` (`algorithm_id`),
|
|
KEY `assessment_aigradingworkflow_27cb9807` (`rubric_id`),
|
|
KEY `assessment_aigradingworkflow_c168f2dc` (`assessment_id`),
|
|
KEY `assessment_aigradingworkflow_42ff452e` (`student_id`),
|
|
KEY `assessment_aigradingworkflow_67b70d25` (`item_id`),
|
|
KEY `assessment_aigradingworkflow_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `assessment_id_refs_id_1d8478e7` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `classifier_set_id_refs_id_1e9046d1` FOREIGN KEY (`classifier_set_id`) REFERENCES `assessment_aiclassifierset` (`id`),
|
|
CONSTRAINT `rubric_id_refs_id_dc2a0464` FOREIGN KEY (`rubric_id`) REFERENCES `assessment_rubric` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_aitrainingworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_aitrainingworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`uuid` varchar(36) NOT NULL,
|
|
`algorithm_id` varchar(128) NOT NULL,
|
|
`classifier_set_id` int(11) DEFAULT NULL,
|
|
`scheduled_at` datetime NOT NULL,
|
|
`completed_at` datetime DEFAULT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
`course_id` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_aitrainingworkflow_uuid_284fdaa93019f8ef_uniq` (`uuid`),
|
|
KEY `assessment_aitrainingworkflow_2bbc74ae` (`uuid`),
|
|
KEY `assessment_aitrainingworkflow_53012c1e` (`algorithm_id`),
|
|
KEY `assessment_aitrainingworkflow_714175dc` (`classifier_set_id`),
|
|
KEY `assessment_aitrainingworkflow_4bacaa90` (`scheduled_at`),
|
|
KEY `assessment_aitrainingworkflow_a2fd3af6` (`completed_at`),
|
|
KEY `assessment_aitrainingworkflow_67b70d25` (`item_id`),
|
|
KEY `assessment_aitrainingworkflow_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `classifier_set_id_refs_id_dcc7412` FOREIGN KEY (`classifier_set_id`) REFERENCES `assessment_aiclassifierset` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_aitrainingworkflow_training_examples`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_aitrainingworkflow_training_examples` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`aitrainingworkflow_id` int(11) NOT NULL,
|
|
`trainingexample_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_aitraini_aitrainingworkflow_id_4b50cfbece05470a_uniq` (`aitrainingworkflow_id`,`trainingexample_id`),
|
|
KEY `assessment_aitrainingworkflow_training_examples_a57f9195` (`aitrainingworkflow_id`),
|
|
KEY `assessment_aitrainingworkflow_training_examples_ea4da31f` (`trainingexample_id`),
|
|
CONSTRAINT `trainingexample_id_refs_id_bf13a24` FOREIGN KEY (`trainingexample_id`) REFERENCES `assessment_trainingexample` (`id`),
|
|
CONSTRAINT `aitrainingworkflow_id_refs_id_45c30582` FOREIGN KEY (`aitrainingworkflow_id`) REFERENCES `assessment_aitrainingworkflow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
`scored_at` datetime NOT NULL,
|
|
`scorer_id` varchar(40) NOT NULL,
|
|
`score_type` varchar(2) NOT NULL,
|
|
`feedback` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_assessment_39d020e6` (`submission_uuid`),
|
|
KEY `assessment_assessment_27cb9807` (`rubric_id`),
|
|
KEY `assessment_assessment_3227200` (`scored_at`),
|
|
KEY `assessment_assessment_9f54855a` (`scorer_id`),
|
|
CONSTRAINT `rubric_id_refs_id_1ab6dbc4` FOREIGN KEY (`rubric_id`) REFERENCES `assessment_rubric` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessmentfeedback`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessmentfeedback` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`feedback_text` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessmentfeedback_assessments`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessmentfeedback_assessments` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`assessmentfeedback_id` int(11) NOT NULL,
|
|
`assessment_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_assessmen_assessmentfeedback_id_36925aaa1a839ac_uniq` (`assessmentfeedback_id`,`assessment_id`),
|
|
KEY `assessment_assessmentfeedback_assessments_58f1f0d` (`assessmentfeedback_id`),
|
|
KEY `assessment_assessmentfeedback_assessments_c168f2dc` (`assessment_id`),
|
|
CONSTRAINT `assessment_id_refs_id_e7fd607e` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `assessmentfeedback_id_refs_id_91bbd347` FOREIGN KEY (`assessmentfeedback_id`) REFERENCES `assessment_assessmentfeedback` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessmentfeedback_options`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessmentfeedback_options` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`assessmentfeedback_id` int(11) NOT NULL,
|
|
`assessmentfeedbackoption_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_assessmen_assessmentfeedback_id_14efc9eea8f4c83_uniq` (`assessmentfeedback_id`,`assessmentfeedbackoption_id`),
|
|
KEY `assessment_assessmentfeedback_options_58f1f0d` (`assessmentfeedback_id`),
|
|
KEY `assessment_assessmentfeedback_options_4e523d64` (`assessmentfeedbackoption_id`),
|
|
CONSTRAINT `assessmentfeedbackoption_id_refs_id_cdf28acd` FOREIGN KEY (`assessmentfeedbackoption_id`) REFERENCES `assessment_assessmentfeedbackoption` (`id`),
|
|
CONSTRAINT `assessmentfeedback_id_refs_id_5c27c412` FOREIGN KEY (`assessmentfeedback_id`) REFERENCES `assessment_assessmentfeedback` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessmentfeedbackoption`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessmentfeedbackoption` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`text` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `text` (`text`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_assessmentpart`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_assessmentpart` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`assessment_id` int(11) NOT NULL,
|
|
`option_id` int(11),
|
|
`feedback` longtext NOT NULL,
|
|
`criterion_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_assessmentpart_c168f2dc` (`assessment_id`),
|
|
KEY `assessment_assessmentpart_2f3b0dc9` (`option_id`),
|
|
KEY `assessment_assessmentpart_a36470e4` (`criterion_id`),
|
|
CONSTRAINT `criterion_id_refs_id_eeb3dc44` FOREIGN KEY (`criterion_id`) REFERENCES `assessment_criterion` (`id`),
|
|
CONSTRAINT `assessment_id_refs_id_bff26444` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `option_id_refs_id_4439dd5` FOREIGN KEY (`option_id`) REFERENCES `assessment_criterionoption` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_criterion`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_criterion` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`rubric_id` int(11) NOT NULL,
|
|
`name` varchar(100) NOT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`prompt` longtext NOT NULL,
|
|
`label` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_criterion_27cb9807` (`rubric_id`),
|
|
CONSTRAINT `rubric_id_refs_id_f2f4f3c4` FOREIGN KEY (`rubric_id`) REFERENCES `assessment_rubric` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_criterionoption`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_criterionoption` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`criterion_id` int(11) NOT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`points` int(10) unsigned NOT NULL,
|
|
`name` varchar(100) NOT NULL,
|
|
`explanation` longtext NOT NULL,
|
|
`label` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_criterionoption_a36470e4` (`criterion_id`),
|
|
CONSTRAINT `criterion_id_refs_id_d2645232` FOREIGN KEY (`criterion_id`) REFERENCES `assessment_criterion` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_peerworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_peerworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`student_id` varchar(40) NOT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
`course_id` varchar(40) NOT NULL,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`completed_at` datetime DEFAULT NULL,
|
|
`grading_completed_at` datetime,
|
|
`cancelled_at` datetime,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`),
|
|
KEY `assessment_peerworkflow_42ff452e` (`student_id`),
|
|
KEY `assessment_peerworkflow_67b70d25` (`item_id`),
|
|
KEY `assessment_peerworkflow_ff48d8e5` (`course_id`),
|
|
KEY `assessment_peerworkflow_3b1c9c31` (`created_at`),
|
|
KEY `assessment_peerworkflow_a2fd3af6` (`completed_at`),
|
|
KEY `assessment_peerworkflow_course_id_5ca23fddca9b630d` (`course_id`,`item_id`,`student_id`),
|
|
KEY `assessment_peerworkflow_dcd62131` (`grading_completed_at`),
|
|
KEY `assessment_peerworkflow_853d09a8` (`cancelled_at`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_peerworkflowitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_peerworkflowitem` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`scorer_id` int(11) NOT NULL,
|
|
`author_id` int(11) NOT NULL,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`started_at` datetime NOT NULL,
|
|
`assessment_id` int(11) DEFAULT NULL,
|
|
`scored` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_peerworkflowitem_9f54855a` (`scorer_id`),
|
|
KEY `assessment_peerworkflowitem_cc846901` (`author_id`),
|
|
KEY `assessment_peerworkflowitem_39d020e6` (`submission_uuid`),
|
|
KEY `assessment_peerworkflowitem_d6e710e4` (`started_at`),
|
|
KEY `assessment_peerworkflowitem_c168f2dc` (`assessment_id`),
|
|
CONSTRAINT `assessment_id_refs_id_f69a86a1` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `author_id_refs_id_59547df0` FOREIGN KEY (`author_id`) REFERENCES `assessment_peerworkflow` (`id`),
|
|
CONSTRAINT `scorer_id_refs_id_59547df0` FOREIGN KEY (`scorer_id`) REFERENCES `assessment_peerworkflow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_rubric`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_rubric` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`content_hash` varchar(40) NOT NULL,
|
|
`structure_hash` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `content_hash` (`content_hash`),
|
|
KEY `assessment_rubric_36e74b05` (`structure_hash`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_studenttrainingworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_studenttrainingworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`student_id` varchar(40) NOT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
`course_id` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_studenttrainin_submission_uuid_6d32c6477719d68f_uniq` (`submission_uuid`),
|
|
KEY `assessment_studenttrainingworkflow_39d020e6` (`submission_uuid`),
|
|
KEY `assessment_studenttrainingworkflow_42ff452e` (`student_id`),
|
|
KEY `assessment_studenttrainingworkflow_67b70d25` (`item_id`),
|
|
KEY `assessment_studenttrainingworkflow_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_studenttrainingworkflowitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_studenttrainingworkflowitem` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`workflow_id` int(11) NOT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`started_at` datetime NOT NULL,
|
|
`completed_at` datetime DEFAULT NULL,
|
|
`training_example_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_studenttrainingworkf_order_num_1391289faa95b87c_uniq` (`order_num`,`workflow_id`),
|
|
KEY `assessment_studenttrainingworkflowitem_26cddbc7` (`workflow_id`),
|
|
KEY `assessment_studenttrainingworkflowitem_541d6663` (`training_example_id`),
|
|
CONSTRAINT `training_example_id_refs_id_7d3f36e4` FOREIGN KEY (`training_example_id`) REFERENCES `assessment_trainingexample` (`id`),
|
|
CONSTRAINT `workflow_id_refs_id_ce50a30` FOREIGN KEY (`workflow_id`) REFERENCES `assessment_studenttrainingworkflow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_trainingexample`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_trainingexample` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`raw_answer` longtext NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
`content_hash` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `content_hash` (`content_hash`),
|
|
KEY `assessment_trainingexample_27cb9807` (`rubric_id`),
|
|
CONSTRAINT `rubric_id_refs_id_7750db21` FOREIGN KEY (`rubric_id`) REFERENCES `assessment_rubric` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_trainingexample_options_selected`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_trainingexample_options_selected` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`trainingexample_id` int(11) NOT NULL,
|
|
`criterionoption_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_trainingexa_trainingexample_id_60940991fb17d27d_uniq` (`trainingexample_id`,`criterionoption_id`),
|
|
KEY `assessment_trainingexample_options_selected_ea4da31f` (`trainingexample_id`),
|
|
KEY `assessment_trainingexample_options_selected_843fa247` (`criterionoption_id`),
|
|
CONSTRAINT `criterionoption_id_refs_id_bed5a465` FOREIGN KEY (`criterionoption_id`) REFERENCES `assessment_criterionoption` (`id`),
|
|
CONSTRAINT `trainingexample_id_refs_id_5f0faa8d` FOREIGN KEY (`trainingexample_id`) REFERENCES `assessment_trainingexample` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_group`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_group` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(80) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_group_permissions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_group_permissions` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`group_id` int(11) NOT NULL,
|
|
`permission_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `group_id` (`group_id`,`permission_id`),
|
|
KEY `auth_group_permissions_bda51c3c` (`group_id`),
|
|
KEY `auth_group_permissions_1e014c8f` (`permission_id`),
|
|
CONSTRAINT `group_id_refs_id_3cea63fe` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
|
|
CONSTRAINT `permission_id_refs_id_a7792de1` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_permission`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_permission` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(50) NOT NULL,
|
|
`content_type_id` int(11) NOT NULL,
|
|
`codename` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `content_type_id` (`content_type_id`,`codename`),
|
|
KEY `auth_permission_e4470c6e` (`content_type_id`),
|
|
CONSTRAINT `content_type_id_refs_id_728de91f` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=511 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_registration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_registration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`activation_key` varchar(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
UNIQUE KEY `activation_key` (`activation_key`),
|
|
CONSTRAINT `user_id_refs_id_3e5b0b5` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_user`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_user` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`username` varchar(30) NOT NULL,
|
|
`first_name` varchar(30) NOT NULL,
|
|
`last_name` varchar(30) NOT NULL,
|
|
`email` varchar(75) NOT NULL,
|
|
`password` varchar(128) NOT NULL,
|
|
`is_staff` tinyint(1) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`is_superuser` tinyint(1) NOT NULL,
|
|
`last_login` datetime NOT NULL,
|
|
`date_joined` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `username` (`username`),
|
|
UNIQUE KEY `email` (`email`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_user_groups`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_user_groups` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`,`group_id`),
|
|
KEY `auth_user_groups_fbfc09f1` (`user_id`),
|
|
KEY `auth_user_groups_bda51c3c` (`group_id`),
|
|
CONSTRAINT `user_id_refs_id_831107f1` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `group_id_refs_id_f0ee9890` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_user_user_permissions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_user_user_permissions` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`permission_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`,`permission_id`),
|
|
KEY `auth_user_user_permissions_fbfc09f1` (`user_id`),
|
|
KEY `auth_user_user_permissions_1e014c8f` (`permission_id`),
|
|
CONSTRAINT `user_id_refs_id_f2045483` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `permission_id_refs_id_67e79cb` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `auth_userprofile`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_userprofile` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`language` varchar(255) NOT NULL,
|
|
`location` varchar(255) NOT NULL,
|
|
`meta` longtext NOT NULL,
|
|
`courseware` varchar(255) NOT NULL,
|
|
`gender` varchar(6),
|
|
`mailing_address` longtext,
|
|
`year_of_birth` int(11),
|
|
`level_of_education` varchar(6),
|
|
`goals` longtext,
|
|
`allow_certificate` tinyint(1) NOT NULL,
|
|
`country` varchar(2),
|
|
`city` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `auth_userprofile_52094d6e` (`name`),
|
|
KEY `auth_userprofile_8a7ac9ab` (`language`),
|
|
KEY `auth_userprofile_b54954de` (`location`),
|
|
KEY `auth_userprofile_fca3d292` (`gender`),
|
|
KEY `auth_userprofile_d85587` (`year_of_birth`),
|
|
KEY `auth_userprofile_551e365c` (`level_of_education`),
|
|
CONSTRAINT `user_id_refs_id_628b4c11` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `branding_brandinginfoconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `branding_brandinginfoconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`configuration` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `branding_brandinginfoconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_d2757db8` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bulk_email_courseauthorization`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_courseauthorization` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`email_enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `bulk_email_courseauthorization_course_id_4f6cee675bf93275_uniq` (`course_id`),
|
|
KEY `bulk_email_courseauthorization_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bulk_email_courseemail`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_courseemail` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`sender_id` int(11) DEFAULT NULL,
|
|
`slug` varchar(128) NOT NULL,
|
|
`subject` varchar(128) NOT NULL,
|
|
`html_message` longtext,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`to_option` varchar(64) NOT NULL,
|
|
`text_message` longtext,
|
|
`template_name` varchar(255),
|
|
`from_addr` varchar(255),
|
|
PRIMARY KEY (`id`),
|
|
KEY `bulk_email_courseemail_901f59e9` (`sender_id`),
|
|
KEY `bulk_email_courseemail_36af87d1` (`slug`),
|
|
KEY `bulk_email_courseemail_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `sender_id_refs_id_70ed6279` FOREIGN KEY (`sender_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bulk_email_courseemailtemplate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_courseemailtemplate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`html_template` longtext,
|
|
`plain_template` longtext,
|
|
`name` varchar(255),
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bulk_email_optout`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_optout` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`user_id` int(11),
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `bulk_email_optout_course_id_368f7519b2997e1a_uniq` (`course_id`,`user_id`),
|
|
KEY `bulk_email_optout_ff48d8e5` (`course_id`),
|
|
KEY `bulk_email_optout_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_9e68e67c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `celery_taskmeta`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `celery_taskmeta` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`task_id` varchar(255) NOT NULL,
|
|
`status` varchar(50) NOT NULL,
|
|
`result` longtext,
|
|
`date_done` datetime NOT NULL,
|
|
`traceback` longtext,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
`meta` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `task_id` (`task_id`),
|
|
KEY `celery_taskmeta_c91f1bf` (`hidden`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `celery_tasksetmeta`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `celery_tasksetmeta` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`taskset_id` varchar(255) NOT NULL,
|
|
`result` longtext NOT NULL,
|
|
`date_done` datetime NOT NULL,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `taskset_id` (`taskset_id`),
|
|
KEY `celery_tasksetmeta_c91f1bf` (`hidden`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificategenerationconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificategenerationconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certificategenerationconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_abb3a677` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificategenerationcoursesetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificategenerationcoursesetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certificategenerationcoursesetting_b4b47e7a` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificatehtmlviewconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificatehtmlviewconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`configuration` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certificatehtmlviewconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_8584db17` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificatewhitelist`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificatewhitelist` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`whitelist` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certificatewhitelist_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_a7ba9306` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_examplecertificate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_examplecertificate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`example_cert_set_id` int(11) NOT NULL,
|
|
`description` varchar(255) NOT NULL,
|
|
`uuid` varchar(255) NOT NULL,
|
|
`access_key` varchar(255) NOT NULL,
|
|
`full_name` varchar(255) NOT NULL,
|
|
`template` varchar(255) NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
`error_reason` longtext,
|
|
`download_url` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
KEY `certificates_examplecertificate_uuid_183b9188451b331e` (`uuid`,`access_key`),
|
|
KEY `certificates_examplecertificate_3b9264a` (`example_cert_set_id`),
|
|
KEY `certificates_examplecertificate_752852c3` (`access_key`),
|
|
CONSTRAINT `example_cert_set_id_refs_id_bdd9e28a` FOREIGN KEY (`example_cert_set_id`) REFERENCES `certificates_examplecertificateset` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_examplecertificateset`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_examplecertificateset` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_examplecertificateset_b4b47e7a` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_generatedcertificate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_generatedcertificate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`download_url` varchar(128) NOT NULL,
|
|
`grade` varchar(5) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`key` varchar(32) NOT NULL,
|
|
`distinction` tinyint(1) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`verify_uuid` varchar(32) NOT NULL,
|
|
`download_uuid` varchar(32) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`created_date` datetime NOT NULL,
|
|
`modified_date` datetime NOT NULL,
|
|
`error_reason` varchar(512) NOT NULL,
|
|
`mode` varchar(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `certificates_generatedcertifica_course_id_1389f6b2d72f5e78_uniq` (`course_id`,`user_id`),
|
|
KEY `certificates_generatedcertificate_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_8e23bfe2` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `circuit_servercircuit`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `circuit_servercircuit` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(32) NOT NULL,
|
|
`schematic` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `contentstore_videouploadconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `contentstore_videouploadconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`profile_whitelist` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `contentstore_videouploadconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_209c438f` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `corsheaders_corsmodel`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `corsheaders_corsmodel` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`cors` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_action_state_coursererunstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_action_state_coursererunstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created_time` datetime NOT NULL,
|
|
`updated_time` datetime NOT NULL,
|
|
`created_user_id` int(11) DEFAULT NULL,
|
|
`updated_user_id` int(11) DEFAULT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`action` varchar(100) NOT NULL,
|
|
`state` varchar(50) NOT NULL,
|
|
`should_display` tinyint(1) NOT NULL,
|
|
`message` varchar(1000) NOT NULL,
|
|
`source_course_key` varchar(255) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_action_state_coursererun_course_key_cf5da77ed3032d6_uniq` (`course_key`,`action`),
|
|
KEY `course_action_state_coursererunstate_5b876fa2` (`created_user_id`),
|
|
KEY `course_action_state_coursererunstate_ceb2e2e7` (`updated_user_id`),
|
|
KEY `course_action_state_coursererunstate_b4b47e7a` (`course_key`),
|
|
KEY `course_action_state_coursererunstate_1bd4707b` (`action`),
|
|
KEY `course_action_state_coursererunstate_ebfe36dd` (`source_course_key`),
|
|
CONSTRAINT `created_user_id_refs_id_1744bdeb` FOREIGN KEY (`created_user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `updated_user_id_refs_id_1744bdeb` FOREIGN KEY (`updated_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_creators_coursecreator`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_creators_coursecreator` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`state_changed` datetime NOT NULL,
|
|
`state` varchar(24) NOT NULL,
|
|
`note` varchar(512) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_6a0e6044` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_groups_coursecohort`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_coursecohort` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
`assignment_type` varchar(20) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_user_group_id` (`course_user_group_id`),
|
|
CONSTRAINT `course_user_group_id_refs_id_8febc00f` FOREIGN KEY (`course_user_group_id`) REFERENCES `course_groups_courseusergroup` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_groups_coursecohortssettings`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_coursecohortssettings` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`is_cohorted` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`cohorted_discussions` longtext,
|
|
`always_cohort_inline_discussions` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_id` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_groups_courseusergroup`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_courseusergroup` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`group_type` varchar(20) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_groups_courseusergroup_name_63f7511804c52f38_uniq` (`name`,`course_id`),
|
|
KEY `course_groups_courseusergroup_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_groups_courseusergroup_users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_courseusergroup_users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`courseusergroup_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_groups_courseus_courseusergroup_id_46691806058983eb_uniq` (`courseusergroup_id`,`user_id`),
|
|
KEY `course_groups_courseusergroup_users_caee1c64` (`courseusergroup_id`),
|
|
KEY `course_groups_courseusergroup_users_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_bf33b47a` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `courseusergroup_id_refs_id_d26180aa` FOREIGN KEY (`courseusergroup_id`) REFERENCES `course_groups_courseusergroup` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_groups_courseusergrouppartitiongroup`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_courseusergrouppartitiongroup` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
`partition_id` int(11) NOT NULL,
|
|
`group_id` int(11) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`updated_at` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_user_group_id` (`course_user_group_id`),
|
|
CONSTRAINT `course_user_group_id_refs_id_145383c4` FOREIGN KEY (`course_user_group_id`) REFERENCES `course_groups_courseusergroup` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_modes_coursemode`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_modes_coursemode` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`mode_slug` varchar(100) NOT NULL,
|
|
`mode_display_name` varchar(255) NOT NULL,
|
|
`min_price` int(11) NOT NULL,
|
|
`suggested_prices` varchar(255) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`expiration_date` date DEFAULT NULL,
|
|
`expiration_datetime` datetime DEFAULT NULL,
|
|
`description` longtext,
|
|
`sku` varchar(255),
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_modes_coursemode_course_id_69505c92fc09856_uniq` (`course_id`,`currency`,`mode_slug`),
|
|
KEY `course_modes_coursemode_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_modes_coursemodesarchive`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_modes_coursemodesarchive` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`mode_slug` varchar(100) NOT NULL,
|
|
`mode_display_name` varchar(255) NOT NULL,
|
|
`min_price` int(11) NOT NULL,
|
|
`suggested_prices` varchar(255) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`expiration_date` date DEFAULT NULL,
|
|
`expiration_datetime` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_modes_coursemodesarchive_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_structures_coursestructure`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_structures_coursestructure` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`structure_json` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_id` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_offlinecomputedgrade`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_offlinecomputedgrade` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`updated` datetime NOT NULL,
|
|
`gradeset` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_offlinecomputedgrade_user_id_46133bbd0926078f_uniq` (`user_id`,`course_id`),
|
|
KEY `courseware_offlinecomputedgrade_fbfc09f1` (`user_id`),
|
|
KEY `courseware_offlinecomputedgrade_ff48d8e5` (`course_id`),
|
|
KEY `courseware_offlinecomputedgrade_3216ff68` (`created`),
|
|
KEY `courseware_offlinecomputedgrade_8aac229` (`updated`),
|
|
CONSTRAINT `user_id_refs_id_38cf339d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_offlinecomputedgradelog`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_offlinecomputedgradelog` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`seconds` int(11) NOT NULL,
|
|
`nstudents` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_offlinecomputedgradelog_ff48d8e5` (`course_id`),
|
|
KEY `courseware_offlinecomputedgradelog_3216ff68` (`created`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_studentmodule`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_studentmodule` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`module_type` varchar(32) NOT NULL,
|
|
`module_id` varchar(255) NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
`state` longtext,
|
|
`grade` double DEFAULT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`max_grade` double,
|
|
`done` varchar(8) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_studentmodule_student_id_635d77aea1256de5_uniq` (`student_id`,`module_id`,`course_id`),
|
|
KEY `courseware_studentmodule_42ff452e` (`student_id`),
|
|
KEY `courseware_studentmodule_3216ff68` (`created`),
|
|
KEY `courseware_studentmodule_6dff86b5` (`grade`),
|
|
KEY `courseware_studentmodule_5436e97a` (`modified`),
|
|
KEY `courseware_studentmodule_2d8768ff` (`module_type`),
|
|
KEY `courseware_studentmodule_f53ed95e` (`module_id`),
|
|
KEY `courseware_studentmodule_1923c03f` (`done`),
|
|
KEY `courseware_studentmodule_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `student_id_refs_id_79ba2570` FOREIGN KEY (`student_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_studentmodulehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_studentmodulehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`student_module_id` int(11) NOT NULL,
|
|
`version` varchar(255),
|
|
`created` datetime NOT NULL,
|
|
`state` longtext,
|
|
`grade` double DEFAULT NULL,
|
|
`max_grade` double DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_studentmodulehistory_5656f5fe` (`student_module_id`),
|
|
KEY `courseware_studentmodulehistory_659105e4` (`version`),
|
|
KEY `courseware_studentmodulehistory_3216ff68` (`created`),
|
|
CONSTRAINT `student_module_id_refs_id_e48636f4` FOREIGN KEY (`student_module_id`) REFERENCES `courseware_studentmodule` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_xmodulestudentinfofield`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_xmodulestudentinfofield` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`field_name` varchar(64) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmodulestudentinfof_student_id_33f2f772c49db067_uniq` (`student_id`,`field_name`),
|
|
KEY `courseware_xmodulestudentinfofield_7e1499` (`field_name`),
|
|
KEY `courseware_xmodulestudentinfofield_42ff452e` (`student_id`),
|
|
KEY `courseware_xmodulestudentinfofield_3216ff68` (`created`),
|
|
KEY `courseware_xmodulestudentinfofield_5436e97a` (`modified`),
|
|
CONSTRAINT `student_id_refs_id_bfcfbe68` FOREIGN KEY (`student_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_xmodulestudentprefsfield`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_xmodulestudentprefsfield` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`field_name` varchar(64) NOT NULL,
|
|
`module_type` varchar(64) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmodulestudentprefs_student_id_2a5d275498b7a407_uniq` (`student_id`,`module_type`,`field_name`),
|
|
KEY `courseware_xmodulestudentprefsfield_7e1499` (`field_name`),
|
|
KEY `courseware_xmodulestudentprefsfield_2d8768ff` (`module_type`),
|
|
KEY `courseware_xmodulestudentprefsfield_42ff452e` (`student_id`),
|
|
KEY `courseware_xmodulestudentprefsfield_3216ff68` (`created`),
|
|
KEY `courseware_xmodulestudentprefsfield_5436e97a` (`modified`),
|
|
CONSTRAINT `student_id_refs_id_d7b9940b` FOREIGN KEY (`student_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_xmoduleuserstatesummaryfield`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_xmoduleuserstatesummaryfield` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`field_name` varchar(64) NOT NULL,
|
|
`usage_id` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmodulecontentfi_definition_id_50fa4fd570cf2f4a_uniq` (`usage_id`,`field_name`),
|
|
KEY `courseware_xmodulecontentfield_7e1499` (`field_name`),
|
|
KEY `courseware_xmodulecontentfield_1d304ded` (`usage_id`),
|
|
KEY `courseware_xmodulecontentfield_3216ff68` (`created`),
|
|
KEY `courseware_xmodulecontentfield_5436e97a` (`modified`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `dark_lang_darklangconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `dark_lang_darklangconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`released_languages` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `dark_lang_darklangconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_5c5fe834` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_admin_log`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_admin_log` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`action_time` datetime NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`content_type_id` int(11) DEFAULT NULL,
|
|
`object_id` longtext,
|
|
`object_repr` varchar(200) NOT NULL,
|
|
`action_flag` smallint(5) unsigned NOT NULL,
|
|
`change_message` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_admin_log_fbfc09f1` (`user_id`),
|
|
KEY `django_admin_log_e4470c6e` (`content_type_id`),
|
|
CONSTRAINT `content_type_id_refs_id_288599e6` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
|
|
CONSTRAINT `user_id_refs_id_c8665aa` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_comment_client_permission`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_client_permission` (
|
|
`name` varchar(30) NOT NULL,
|
|
PRIMARY KEY (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_comment_client_permission_roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_client_permission_roles` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`permission_id` varchar(30) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `django_comment_client_permi_permission_id_7a766da089425952_uniq` (`permission_id`,`role_id`),
|
|
KEY `django_comment_client_permission_roles_1e014c8f` (`permission_id`),
|
|
KEY `django_comment_client_permission_roles_bf07f040` (`role_id`),
|
|
CONSTRAINT `role_id_refs_id_c1b5c854` FOREIGN KEY (`role_id`) REFERENCES `django_comment_client_role` (`id`),
|
|
CONSTRAINT `permission_id_refs_name_b6302d27` FOREIGN KEY (`permission_id`) REFERENCES `django_comment_client_permission` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_comment_client_role`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_client_role` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(30) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_comment_client_role_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_comment_client_role_users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_client_role_users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`role_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `django_comment_client_role_users_role_id_78e483f531943614_uniq` (`role_id`,`user_id`),
|
|
KEY `django_comment_client_role_users_bf07f040` (`role_id`),
|
|
KEY `django_comment_client_role_users_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_441b79e7` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `role_id_refs_id_ab82c838` FOREIGN KEY (`role_id`) REFERENCES `django_comment_client_role` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_content_type`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_content_type` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(100) NOT NULL,
|
|
`app_label` varchar(100) NOT NULL,
|
|
`model` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `app_label` (`app_label`,`model`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=170 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_openid_auth_association`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_openid_auth_association` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`server_url` longtext NOT NULL,
|
|
`handle` varchar(255) NOT NULL,
|
|
`secret` longtext NOT NULL,
|
|
`issued` int(11) NOT NULL,
|
|
`lifetime` int(11) NOT NULL,
|
|
`assoc_type` longtext NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_openid_auth_nonce`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_openid_auth_nonce` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`server_url` varchar(2047) NOT NULL,
|
|
`timestamp` int(11) NOT NULL,
|
|
`salt` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_openid_auth_useropenid`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_openid_auth_useropenid` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`claimed_id` longtext NOT NULL,
|
|
`display_id` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_openid_auth_useropenid_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_be7162f0` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_session`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_session` (
|
|
`session_key` varchar(40) NOT NULL,
|
|
`session_data` longtext NOT NULL,
|
|
`expire_date` datetime NOT NULL,
|
|
PRIMARY KEY (`session_key`),
|
|
KEY `django_session_c25c2c28` (`expire_date`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_site`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_site` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`domain` varchar(100) NOT NULL,
|
|
`name` varchar(50) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_crontabschedule`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_crontabschedule` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`minute` varchar(64) NOT NULL,
|
|
`hour` varchar(64) NOT NULL,
|
|
`day_of_week` varchar(64) NOT NULL,
|
|
`day_of_month` varchar(64) NOT NULL,
|
|
`month_of_year` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_intervalschedule`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_intervalschedule` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`every` int(11) NOT NULL,
|
|
`period` varchar(24) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_periodictask`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_periodictask` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(200) NOT NULL,
|
|
`task` varchar(200) NOT NULL,
|
|
`interval_id` int(11) DEFAULT NULL,
|
|
`crontab_id` int(11) DEFAULT NULL,
|
|
`args` longtext NOT NULL,
|
|
`kwargs` longtext NOT NULL,
|
|
`queue` varchar(200) DEFAULT NULL,
|
|
`exchange` varchar(200) DEFAULT NULL,
|
|
`routing_key` varchar(200) DEFAULT NULL,
|
|
`expires` datetime DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`last_run_at` datetime DEFAULT NULL,
|
|
`total_run_count` int(10) unsigned NOT NULL,
|
|
`date_changed` datetime NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`),
|
|
KEY `djcelery_periodictask_17d2d99d` (`interval_id`),
|
|
KEY `djcelery_periodictask_7aa5fda` (`crontab_id`),
|
|
CONSTRAINT `interval_id_refs_id_f2054349` FOREIGN KEY (`interval_id`) REFERENCES `djcelery_intervalschedule` (`id`),
|
|
CONSTRAINT `crontab_id_refs_id_ebff5e74` FOREIGN KEY (`crontab_id`) REFERENCES `djcelery_crontabschedule` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_periodictasks`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_periodictasks` (
|
|
`ident` smallint(6) NOT NULL,
|
|
`last_update` datetime NOT NULL,
|
|
PRIMARY KEY (`ident`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_taskstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_taskstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`state` varchar(64) NOT NULL,
|
|
`task_id` varchar(36) NOT NULL,
|
|
`name` varchar(200) DEFAULT NULL,
|
|
`tstamp` datetime NOT NULL,
|
|
`args` longtext,
|
|
`kwargs` longtext,
|
|
`eta` datetime DEFAULT NULL,
|
|
`expires` datetime DEFAULT NULL,
|
|
`result` longtext,
|
|
`traceback` longtext,
|
|
`runtime` double DEFAULT NULL,
|
|
`retries` int(11) NOT NULL,
|
|
`worker_id` int(11) DEFAULT NULL,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `task_id` (`task_id`),
|
|
KEY `djcelery_taskstate_355bfc27` (`state`),
|
|
KEY `djcelery_taskstate_52094d6e` (`name`),
|
|
KEY `djcelery_taskstate_f0ba6500` (`tstamp`),
|
|
KEY `djcelery_taskstate_20fc5b84` (`worker_id`),
|
|
KEY `djcelery_taskstate_c91f1bf` (`hidden`),
|
|
CONSTRAINT `worker_id_refs_id_4e3453a` FOREIGN KEY (`worker_id`) REFERENCES `djcelery_workerstate` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `djcelery_workerstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `djcelery_workerstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`hostname` varchar(255) NOT NULL,
|
|
`last_heartbeat` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `hostname` (`hostname`),
|
|
KEY `djcelery_workerstate_eb8ac7e4` (`last_heartbeat`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_coursevideo`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_coursevideo` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`video_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edxval_coursevideo_course_id_42cecee05cff2d8c_uniq` (`course_id`,`video_id`),
|
|
KEY `edxval_coursevideo_fa26288c` (`video_id`),
|
|
CONSTRAINT `video_id_refs_id_7520c050` FOREIGN KEY (`video_id`) REFERENCES `edxval_video` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_encodedvideo`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_encodedvideo` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`url` varchar(200) NOT NULL,
|
|
`file_size` int(10) unsigned NOT NULL,
|
|
`bitrate` int(10) unsigned NOT NULL,
|
|
`profile_id` int(11) NOT NULL,
|
|
`video_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `edxval_encodedvideo_141c6eec` (`profile_id`),
|
|
KEY `edxval_encodedvideo_fa26288c` (`video_id`),
|
|
CONSTRAINT `video_id_refs_id_176ce1a0` FOREIGN KEY (`video_id`) REFERENCES `edxval_video` (`id`),
|
|
CONSTRAINT `profile_id_refs_id_692d754` FOREIGN KEY (`profile_id`) REFERENCES `edxval_profile` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_profile`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_profile` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`profile_name` varchar(50) NOT NULL,
|
|
`extension` varchar(10) DEFAULT 'mp4',
|
|
`width` int(10) unsigned DEFAULT '1',
|
|
`height` int(10) unsigned DEFAULT '1',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `profile_name` (`profile_name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_subtitle`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_subtitle` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`video_id` int(11) NOT NULL,
|
|
`fmt` varchar(20) NOT NULL,
|
|
`language` varchar(8) NOT NULL,
|
|
`content` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `edxval_subtitle_fa26288c` (`video_id`),
|
|
KEY `edxval_subtitle_306df28f` (`fmt`),
|
|
KEY `edxval_subtitle_8a7ac9ab` (`language`),
|
|
CONSTRAINT `video_id_refs_id_788bc3d3` FOREIGN KEY (`video_id`) REFERENCES `edxval_video` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_video`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_video` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`edx_video_id` varchar(100) NOT NULL,
|
|
`client_video_id` varchar(255) NOT NULL,
|
|
`duration` double NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edx_video_id` (`edx_video_id`),
|
|
KEY `edxval_video_de3f5709` (`client_video_id`),
|
|
KEY `edxval_video_c9ad71dd` (`status`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_country`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_country` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`country` varchar(2) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `country` (`country`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=250 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_countryaccessrule`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_countryaccessrule` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`rule_type` varchar(255) NOT NULL,
|
|
`restricted_course_id` int(11) NOT NULL,
|
|
`country_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `embargo_countryacces_restricted_course_id_6f340c36c633cb0a_uniq` (`restricted_course_id`,`country_id`),
|
|
KEY `embargo_countryaccessrule_3cd064f4` (`restricted_course_id`),
|
|
KEY `embargo_countryaccessrule_534dd89` (`country_id`),
|
|
CONSTRAINT `country_id_refs_id_f679fa73` FOREIGN KEY (`country_id`) REFERENCES `embargo_country` (`id`),
|
|
CONSTRAINT `restricted_course_id_refs_id_c792331c` FOREIGN KEY (`restricted_course_id`) REFERENCES `embargo_restrictedcourse` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_courseaccessrulehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_courseaccessrulehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`timestamp` datetime NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`snapshot` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_courseaccessrulehistory_67f1b7ce` (`timestamp`),
|
|
KEY `embargo_courseaccessrulehistory_b4b47e7a` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_embargoedcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_embargoedcourse` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`embargoed` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_id` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_embargoedstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_embargoedstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`embargoed_countries` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_embargoedstate_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_d0205d39` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_ipfilter`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_ipfilter` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`whitelist` longtext NOT NULL,
|
|
`blacklist` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_ipfilter_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_22c1f5d3` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `embargo_restrictedcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `embargo_restrictedcourse` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`enroll_msg_key` varchar(255) NOT NULL,
|
|
`access_msg_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_key` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `external_auth_externalauthmap`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `external_auth_externalauthmap` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`external_id` varchar(255) NOT NULL,
|
|
`external_domain` varchar(255) NOT NULL,
|
|
`external_credentials` longtext NOT NULL,
|
|
`external_email` varchar(255) NOT NULL,
|
|
`external_name` varchar(255) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`internal_password` varchar(31) NOT NULL,
|
|
`dtcreated` datetime NOT NULL,
|
|
`dtsignup` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `external_auth_externalauthmap_external_id_7f035ef8bc4d313e_uniq` (`external_id`,`external_domain`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `external_auth_externalauthmap_d5e787` (`external_id`),
|
|
KEY `external_auth_externalauthmap_a570024c` (`external_domain`),
|
|
KEY `external_auth_externalauthmap_a142061d` (`external_email`),
|
|
KEY `external_auth_externalauthmap_c1a016f` (`external_name`),
|
|
CONSTRAINT `user_id_refs_id_f8635f67` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `foldit_puzzlecomplete`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `foldit_puzzlecomplete` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`unique_user_id` varchar(50) NOT NULL,
|
|
`puzzle_id` int(11) NOT NULL,
|
|
`puzzle_set` int(11) NOT NULL,
|
|
`puzzle_subset` int(11) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `foldit_puzzlecomplete_user_id_4c63656af6674331_uniq` (`user_id`,`puzzle_id`,`puzzle_set`,`puzzle_subset`),
|
|
KEY `foldit_puzzlecomplete_fbfc09f1` (`user_id`),
|
|
KEY `foldit_puzzlecomplete_8027477e` (`unique_user_id`),
|
|
KEY `foldit_puzzlecomplete_4798a2b8` (`puzzle_set`),
|
|
KEY `foldit_puzzlecomplete_59f06bcd` (`puzzle_subset`),
|
|
CONSTRAINT `user_id_refs_id_37e9437b` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `foldit_score`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `foldit_score` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`unique_user_id` varchar(50) NOT NULL,
|
|
`puzzle_id` int(11) NOT NULL,
|
|
`best_score` double NOT NULL,
|
|
`current_score` double NOT NULL,
|
|
`score_version` int(11) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `foldit_score_fbfc09f1` (`user_id`),
|
|
KEY `foldit_score_8027477e` (`unique_user_id`),
|
|
KEY `foldit_score_3624c060` (`best_score`),
|
|
KEY `foldit_score_b4627792` (`current_score`),
|
|
CONSTRAINT `user_id_refs_id_4c07957f` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `instructor_task_instructortask`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `instructor_task_instructortask` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`task_type` varchar(50) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`task_key` varchar(255) NOT NULL,
|
|
`task_input` varchar(255) NOT NULL,
|
|
`task_id` varchar(255) NOT NULL,
|
|
`task_state` varchar(50) DEFAULT NULL,
|
|
`task_output` varchar(1024) DEFAULT NULL,
|
|
`requester_id` int(11) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`updated` datetime NOT NULL,
|
|
`subtasks` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `instructor_task_instructortask_8ae638b4` (`task_type`),
|
|
KEY `instructor_task_instructortask_ff48d8e5` (`course_id`),
|
|
KEY `instructor_task_instructortask_cfc55170` (`task_key`),
|
|
KEY `instructor_task_instructortask_c00fe455` (`task_id`),
|
|
KEY `instructor_task_instructortask_731e67a4` (`task_state`),
|
|
KEY `instructor_task_instructortask_b8ca8b9f` (`requester_id`),
|
|
CONSTRAINT `requester_id_refs_id_a97278e6` FOREIGN KEY (`requester_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `licenses_coursesoftware`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `licenses_coursesoftware` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`full_name` varchar(255) NOT NULL,
|
|
`url` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `licenses_userlicense`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `licenses_userlicense` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`software_id` int(11) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`serial` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `licenses_userlicense_4c6ed3c1` (`software_id`),
|
|
KEY `licenses_userlicense_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_2f3a1cb3` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `software_id_refs_id_f9e27be8` FOREIGN KEY (`software_id`) REFERENCES `licenses_coursesoftware` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `lms_xblock_xblockasidesconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `lms_xblock_xblockasidesconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`disabled_blocks` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `lms_xblock_xblockasidesconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_552627bc` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `milestones_coursecontentmilestone`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `milestones_coursecontentmilestone` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`content_id` varchar(255) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
`milestone_relationship_type_id` int(11) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_coursecontentmilesto_course_id_68d1457cd52d6dff_uniq` (`course_id`,`content_id`,`milestone_id`),
|
|
KEY `milestones_coursecontentmilestone_ff48d8e5` (`course_id`),
|
|
KEY `milestones_coursecontentmilestone_cc8ff3c` (`content_id`),
|
|
KEY `milestones_coursecontentmilestone_9cfa291f` (`milestone_id`),
|
|
KEY `milestones_coursecontentmilestone_595c57ff` (`milestone_relationship_type_id`),
|
|
CONSTRAINT `milestone_relationship_type_id_refs_id_d7ab186` FOREIGN KEY (`milestone_relationship_type_id`) REFERENCES `milestones_milestonerelationshiptype` (`id`),
|
|
CONSTRAINT `milestone_id_refs_id_d7fabedc` FOREIGN KEY (`milestone_id`) REFERENCES `milestones_milestone` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `milestones_coursemilestone`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `milestones_coursemilestone` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
`milestone_relationship_type_id` int(11) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_coursemilestone_course_id_5a06e10579eab3b7_uniq` (`course_id`,`milestone_id`),
|
|
KEY `milestones_coursemilestone_ff48d8e5` (`course_id`),
|
|
KEY `milestones_coursemilestone_9cfa291f` (`milestone_id`),
|
|
KEY `milestones_coursemilestone_595c57ff` (`milestone_relationship_type_id`),
|
|
CONSTRAINT `milestone_relationship_type_id_refs_id_874a03b6` FOREIGN KEY (`milestone_relationship_type_id`) REFERENCES `milestones_milestonerelationshiptype` (`id`),
|
|
CONSTRAINT `milestone_id_refs_id_cd764354` FOREIGN KEY (`milestone_id`) REFERENCES `milestones_milestone` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `milestones_milestone`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `milestones_milestone` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`namespace` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_milestone_namespace_460a2f6943016c0b_uniq` (`namespace`,`name`),
|
|
KEY `milestones_milestone_eb040977` (`namespace`),
|
|
KEY `milestones_milestone_52094d6e` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `milestones_milestonerelationshiptype`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `milestones_milestonerelationshiptype` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`name` varchar(25) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `milestones_usermilestone`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `milestones_usermilestone` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
`source` longtext NOT NULL,
|
|
`collected` datetime DEFAULT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_usermilestone_user_id_10206aa452468351_uniq` (`user_id`,`milestone_id`),
|
|
KEY `milestones_usermilestone_fbfc09f1` (`user_id`),
|
|
KEY `milestones_usermilestone_9cfa291f` (`milestone_id`),
|
|
CONSTRAINT `milestone_id_refs_id_af7fa460` FOREIGN KEY (`milestone_id`) REFERENCES `milestones_milestone` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `mobile_api_mobileapiconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `mobile_api_mobileapiconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`video_profiles` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `mobile_api_mobileapiconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_97c2f4c8` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notes_note`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notes_note` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`uri` varchar(255) NOT NULL,
|
|
`text` longtext NOT NULL,
|
|
`quote` longtext NOT NULL,
|
|
`range_start` varchar(2048) NOT NULL,
|
|
`range_start_offset` int(11) NOT NULL,
|
|
`range_end` varchar(2048) NOT NULL,
|
|
`range_end_offset` int(11) NOT NULL,
|
|
`tags` longtext NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`updated` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notes_note_fbfc09f1` (`user_id`),
|
|
KEY `notes_note_ff48d8e5` (`course_id`),
|
|
KEY `notes_note_a9794fa` (`uri`),
|
|
KEY `notes_note_3216ff68` (`created`),
|
|
KEY `notes_note_8aac229` (`updated`),
|
|
CONSTRAINT `user_id_refs_id_360715cc` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notifications_articlesubscription`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notifications_articlesubscription` (
|
|
`subscription_ptr_id` int(11) NOT NULL,
|
|
`articleplugin_ptr_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
UNIQUE KEY `subscription_ptr_id` (`subscription_ptr_id`),
|
|
CONSTRAINT `articleplugin_ptr_id_refs_id_71ed584a` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`),
|
|
CONSTRAINT `subscription_ptr_id_refs_id_75c0b518` FOREIGN KEY (`subscription_ptr_id`) REFERENCES `notify_subscription` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notify_notification`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notify_notification` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`subscription_id` int(11) DEFAULT NULL,
|
|
`message` longtext NOT NULL,
|
|
`url` varchar(200) DEFAULT NULL,
|
|
`is_viewed` tinyint(1) NOT NULL,
|
|
`is_emailed` tinyint(1) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notify_notification_104f5ac1` (`subscription_id`),
|
|
CONSTRAINT `subscription_id_refs_id_baf93d4f` FOREIGN KEY (`subscription_id`) REFERENCES `notify_subscription` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notify_notificationtype`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notify_notificationtype` (
|
|
`key` varchar(128) NOT NULL,
|
|
`label` varchar(128) DEFAULT NULL,
|
|
`content_type_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`key`),
|
|
KEY `notify_notificationtype_e4470c6e` (`content_type_id`),
|
|
CONSTRAINT `content_type_id_refs_id_f2478378` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notify_settings`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notify_settings` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`interval` smallint(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notify_settings_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_9a2911e6` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `notify_subscription`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `notify_subscription` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`settings_id` int(11) NOT NULL,
|
|
`notification_type_id` varchar(128) NOT NULL,
|
|
`object_id` varchar(64) DEFAULT NULL,
|
|
`send_emails` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notify_subscription_83326d99` (`settings_id`),
|
|
KEY `notify_subscription_9955f091` (`notification_type_id`),
|
|
CONSTRAINT `notification_type_id_refs_key_baa41a19` FOREIGN KEY (`notification_type_id`) REFERENCES `notify_notificationtype` (`key`),
|
|
CONSTRAINT `settings_id_refs_id_3b7225d5` FOREIGN KEY (`settings_id`) REFERENCES `notify_settings` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_accesstoken`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_accesstoken` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`token` varchar(255) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`expires` datetime NOT NULL,
|
|
`scope` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_accesstoken_fbfc09f1` (`user_id`),
|
|
KEY `oauth2_accesstoken_4a4e8ffb` (`client_id`),
|
|
KEY `oauth2_accesstoken_bfac9f99` (`token`),
|
|
CONSTRAINT `client_id_refs_id_e566ebcc` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `user_id_refs_id_c740ddb9` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_client`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_client` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11),
|
|
`url` varchar(200) NOT NULL,
|
|
`redirect_uri` varchar(200) NOT NULL,
|
|
`client_id` varchar(255) NOT NULL,
|
|
`client_secret` varchar(255) NOT NULL,
|
|
`client_type` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_client_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_c2e3e9a0` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_grant`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_grant` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`code` varchar(255) NOT NULL,
|
|
`expires` datetime NOT NULL,
|
|
`redirect_uri` varchar(255) NOT NULL,
|
|
`scope` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_grant_fbfc09f1` (`user_id`),
|
|
KEY `oauth2_grant_4a4e8ffb` (`client_id`),
|
|
CONSTRAINT `client_id_refs_id_b2f66ded` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `user_id_refs_id_37f50fe6` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_provider_trustedclient`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_provider_trustedclient` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`client_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_provider_trustedclient_4a4e8ffb` (`client_id`),
|
|
CONSTRAINT `client_id_refs_id_f6dfcacc` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_refreshtoken`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_refreshtoken` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`token` varchar(255) NOT NULL,
|
|
`access_token_id` int(11) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`expired` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `access_token_id` (`access_token_id`),
|
|
KEY `oauth2_refreshtoken_fbfc09f1` (`user_id`),
|
|
KEY `oauth2_refreshtoken_4a4e8ffb` (`client_id`),
|
|
CONSTRAINT `client_id_refs_id_798730c8` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `access_token_id_refs_id_df7961b9` FOREIGN KEY (`access_token_id`) REFERENCES `oauth2_accesstoken` (`id`),
|
|
CONSTRAINT `user_id_refs_id_78216905` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `psychometrics_psychometricdata`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `psychometrics_psychometricdata` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`studentmodule_id` int(11) NOT NULL,
|
|
`done` tinyint(1) NOT NULL,
|
|
`attempts` int(11) NOT NULL,
|
|
`checktimes` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `studentmodule_id` (`studentmodule_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `reverification_midcoursereverificationwindow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `reverification_midcoursereverificationwindow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`start_date` datetime DEFAULT NULL,
|
|
`end_date` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `reverification_midcoursereverificationwindow_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_certificateitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_certificateitem` (
|
|
`orderitem_ptr_id` int(11) NOT NULL,
|
|
`course_id` varchar(128) NOT NULL,
|
|
`course_enrollment_id` int(11) NOT NULL,
|
|
`mode` varchar(50) NOT NULL,
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_certificateitem_ff48d8e5` (`course_id`),
|
|
KEY `shoppingcart_certificateitem_9e513f0b` (`course_enrollment_id`),
|
|
KEY `shoppingcart_certificateitem_4160619e` (`mode`),
|
|
CONSTRAINT `course_enrollment_id_refs_id_8048c435` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `orderitem_ptr_id_refs_id_d3ebc4d0` FOREIGN KEY (`orderitem_ptr_id`) REFERENCES `shoppingcart_orderitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_coupon`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_coupon` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`code` varchar(32) NOT NULL,
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`percentage_discount` int(11) NOT NULL,
|
|
`created_by_id` int(11) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`expiration_date` datetime,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_coupon_65da3d2c` (`code`),
|
|
KEY `shoppingcart_coupon_b5de30be` (`created_by_id`),
|
|
CONSTRAINT `created_by_id_refs_id_259aadc` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_couponredemption`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_couponredemption` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`order_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`coupon_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_couponredemption_8337030b` (`order_id`),
|
|
KEY `shoppingcart_couponredemption_fbfc09f1` (`user_id`),
|
|
KEY `shoppingcart_couponredemption_c29b2e60` (`coupon_id`),
|
|
CONSTRAINT `coupon_id_refs_id_c11a8022` FOREIGN KEY (`coupon_id`) REFERENCES `shoppingcart_coupon` (`id`),
|
|
CONSTRAINT `order_id_refs_id_f5db1967` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `user_id_refs_id_5e9b8167` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_courseregcodeitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_courseregcodeitem` (
|
|
`orderitem_ptr_id` int(11) NOT NULL,
|
|
`course_id` varchar(128) NOT NULL,
|
|
`mode` varchar(50) NOT NULL,
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_courseregcodeitem_ff48d8e5` (`course_id`),
|
|
KEY `shoppingcart_courseregcodeitem_4160619e` (`mode`),
|
|
CONSTRAINT `orderitem_ptr_id_refs_id_a466f07f` FOREIGN KEY (`orderitem_ptr_id`) REFERENCES `shoppingcart_orderitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_courseregcodeitemannotation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_courseregcodeitemannotation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(128) NOT NULL,
|
|
`annotation` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_id` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_courseregistrationcode`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_courseregistrationcode` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`code` varchar(32) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created_by_id` int(11) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`invoice_id` int(11),
|
|
`order_id` int(11),
|
|
`mode_slug` varchar(100),
|
|
`invoice_item_id` int(11),
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `shoppingcart_courseregistrationcode_code_6614bad3cae62199_uniq` (`code`),
|
|
KEY `shoppingcart_courseregistrationcode_65da3d2c` (`code`),
|
|
KEY `shoppingcart_courseregistrationcode_ff48d8e5` (`course_id`),
|
|
KEY `shoppingcart_courseregistrationcode_b5de30be` (`created_by_id`),
|
|
KEY `shoppingcart_courseregistrationcode_59f72b12` (`invoice_id`),
|
|
KEY `shoppingcart_courseregistrationcode_8337030b` (`order_id`),
|
|
KEY `shoppingcart_courseregistrationcode_80766641` (`invoice_item_id`),
|
|
CONSTRAINT `invoice_item_id_refs_invoiceitem_ptr_id_8a5558e6` FOREIGN KEY (`invoice_item_id`) REFERENCES `shoppingcart_courseregistrationcodeinvoiceitem` (`invoiceitem_ptr_id`),
|
|
CONSTRAINT `created_by_id_refs_id_38397037` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `invoice_id_refs_id_995f0ae8` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`),
|
|
CONSTRAINT `order_id_refs_id_be36d837` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_courseregistrationcodeinvoiceitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_courseregistrationcodeinvoiceitem` (
|
|
`invoiceitem_ptr_id` int(11) NOT NULL,
|
|
`course_id` varchar(128) NOT NULL,
|
|
PRIMARY KEY (`invoiceitem_ptr_id`),
|
|
KEY `shoppingcart_courseregistrationcodeinvoiceitem_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `invoiceitem_ptr_id_refs_id_74a11b46` FOREIGN KEY (`invoiceitem_ptr_id`) REFERENCES `shoppingcart_invoiceitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_donation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_donation` (
|
|
`orderitem_ptr_id` int(11) NOT NULL,
|
|
`donation_type` varchar(32) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_donation_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `orderitem_ptr_id_refs_id_b7138a4b` FOREIGN KEY (`orderitem_ptr_id`) REFERENCES `shoppingcart_orderitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_donationconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_donationconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_donationconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_b4a26b7f` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_invoice`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_invoice` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`total_amount` double NOT NULL,
|
|
`company_name` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`internal_reference` varchar(255),
|
|
`is_valid` tinyint(1) NOT NULL,
|
|
`address_line_1` varchar(255) NOT NULL,
|
|
`address_line_2` varchar(255),
|
|
`address_line_3` varchar(255),
|
|
`city` varchar(255),
|
|
`state` varchar(255),
|
|
`zip` varchar(15),
|
|
`country` varchar(64),
|
|
`recipient_name` varchar(255) NOT NULL,
|
|
`recipient_email` varchar(255) NOT NULL,
|
|
`customer_reference_number` varchar(63),
|
|
`company_contact_name` varchar(255) NOT NULL,
|
|
`company_contact_email` varchar(255) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoice_ca9021a2` (`company_name`),
|
|
KEY `shoppingcart_invoice_ff48d8e5` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_invoicehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_invoicehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`timestamp` datetime NOT NULL,
|
|
`invoice_id` int(11) NOT NULL,
|
|
`snapshot` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoicehistory_67f1b7ce` (`timestamp`),
|
|
KEY `shoppingcart_invoicehistory_59f72b12` (`invoice_id`),
|
|
CONSTRAINT `invoice_id_refs_id_239c2b7c` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_invoiceitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_invoiceitem` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`invoice_id` int(11) NOT NULL,
|
|
`qty` int(11) NOT NULL,
|
|
`unit_price` decimal(30,2) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoiceitem_59f72b12` (`invoice_id`),
|
|
CONSTRAINT `invoice_id_refs_id_5c894802` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_invoicetransaction`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_invoicetransaction` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`invoice_id` int(11) NOT NULL,
|
|
`amount` decimal(30,2) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`comments` longtext,
|
|
`status` varchar(32) NOT NULL,
|
|
`created_by_id` int(11) NOT NULL,
|
|
`last_modified_by_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoicetransaction_59f72b12` (`invoice_id`),
|
|
KEY `shoppingcart_invoicetransaction_b5de30be` (`created_by_id`),
|
|
KEY `shoppingcart_invoicetransaction_bcd6c6d2` (`last_modified_by_id`),
|
|
CONSTRAINT `last_modified_by_id_refs_id_7259d0bb` FOREIGN KEY (`last_modified_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `created_by_id_refs_id_7259d0bb` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `invoice_id_refs_id_8e5b62ec` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_order`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_order` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`purchase_time` datetime DEFAULT NULL,
|
|
`bill_to_first` varchar(64) NOT NULL,
|
|
`bill_to_last` varchar(64) NOT NULL,
|
|
`bill_to_street1` varchar(128) NOT NULL,
|
|
`bill_to_street2` varchar(128) NOT NULL,
|
|
`bill_to_city` varchar(64) NOT NULL,
|
|
`bill_to_state` varchar(8) NOT NULL,
|
|
`bill_to_postalcode` varchar(16) NOT NULL,
|
|
`bill_to_country` varchar(64) NOT NULL,
|
|
`bill_to_ccnum` varchar(8) NOT NULL,
|
|
`bill_to_cardtype` varchar(32) NOT NULL,
|
|
`processor_reply_dump` longtext NOT NULL,
|
|
`refunded_time` datetime,
|
|
`company_name` varchar(255),
|
|
`company_contact_name` varchar(255),
|
|
`company_contact_email` varchar(255),
|
|
`recipient_name` varchar(255),
|
|
`recipient_email` varchar(255),
|
|
`customer_reference_number` varchar(63),
|
|
`order_type` varchar(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_order_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_e1195673` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_orderitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_orderitem` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`order_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`qty` int(11) NOT NULL,
|
|
`unit_cost` decimal(30,2) NOT NULL,
|
|
`line_desc` varchar(1024) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`fulfilled_time` datetime,
|
|
`report_comments` longtext NOT NULL,
|
|
`refund_requested_time` datetime,
|
|
`service_fee` decimal(30,2) NOT NULL,
|
|
`list_price` decimal(30,2),
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_orderitem_8337030b` (`order_id`),
|
|
KEY `shoppingcart_orderitem_fbfc09f1` (`user_id`),
|
|
KEY `shoppingcart_orderitem_c9ad71dd` (`status`),
|
|
KEY `shoppingcart_orderitem_8457f26a` (`fulfilled_time`),
|
|
KEY `shoppingcart_orderitem_416112c1` (`refund_requested_time`),
|
|
CONSTRAINT `order_id_refs_id_7c77b3f0` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `user_id_refs_id_d92ae410` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_paidcourseregistration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_paidcourseregistration` (
|
|
`orderitem_ptr_id` int(11) NOT NULL,
|
|
`course_id` varchar(128) NOT NULL,
|
|
`mode` varchar(50) NOT NULL,
|
|
`course_enrollment_id` int(11),
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_paidcourseregistration_ff48d8e5` (`course_id`),
|
|
KEY `shoppingcart_paidcourseregistration_4160619e` (`mode`),
|
|
KEY `shoppingcart_paidcourseregistration_9e513f0b` (`course_enrollment_id`),
|
|
CONSTRAINT `course_enrollment_id_refs_id_dc061be6` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `orderitem_ptr_id_refs_id_d8709d99` FOREIGN KEY (`orderitem_ptr_id`) REFERENCES `shoppingcart_orderitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_paidcourseregistrationannotation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_paidcourseregistrationannotation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(128) NOT NULL,
|
|
`annotation` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_id` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `shoppingcart_registrationcoderedemption`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `shoppingcart_registrationcoderedemption` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`order_id` int(11),
|
|
`registration_code_id` int(11) NOT NULL,
|
|
`redeemed_by_id` int(11) NOT NULL,
|
|
`redeemed_at` datetime DEFAULT NULL,
|
|
`course_enrollment_id` int(11),
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_registrationcoderedemption_8337030b` (`order_id`),
|
|
KEY `shoppingcart_registrationcoderedemption_d25b37dc` (`registration_code_id`),
|
|
KEY `shoppingcart_registrationcoderedemption_e151467a` (`redeemed_by_id`),
|
|
KEY `shoppingcart_registrationcoderedemption_9e513f0b` (`course_enrollment_id`),
|
|
CONSTRAINT `course_enrollment_id_refs_id_c9486127` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `order_id_refs_id_53a8a5c9` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `redeemed_by_id_refs_id_4e320dc9` FOREIGN KEY (`redeemed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `registration_code_id_refs_id_4d01e47b` FOREIGN KEY (`registration_code_id`) REFERENCES `shoppingcart_courseregistrationcode` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `south_migrationhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `south_migrationhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`app_name` varchar(255) NOT NULL,
|
|
`migration` varchar(255) NOT NULL,
|
|
`applied` datetime NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=228 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `splash_splashconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `splash_splashconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`cookie_name` longtext NOT NULL,
|
|
`cookie_allowed_values` longtext NOT NULL,
|
|
`unaffected_usernames` longtext NOT NULL,
|
|
`redirect_url` varchar(200) NOT NULL,
|
|
`unaffected_url_paths` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `splash_splashconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_9125b21c` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_anonymoususerid`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_anonymoususerid` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`anonymous_user_id` varchar(32) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `anonymous_user_id` (`anonymous_user_id`),
|
|
KEY `student_anonymoususerid_fbfc09f1` (`user_id`),
|
|
KEY `student_anonymoususerid_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `user_id_refs_id_c38f7a2a` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_courseaccessrole`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_courseaccessrole` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`org` varchar(64) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`role` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseaccessrole_user_id_3203176c4f474414_uniq` (`user_id`,`org`,`course_id`,`role`),
|
|
KEY `student_courseaccessrole_fbfc09f1` (`user_id`),
|
|
KEY `student_courseaccessrole_4f5f82e2` (`org`),
|
|
KEY `student_courseaccessrole_ff48d8e5` (`course_id`),
|
|
KEY `student_courseaccessrole_e0b082a1` (`role`),
|
|
CONSTRAINT `user_id_refs_id_6ac23885` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_courseenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_courseenrollment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseenrollment_user_id_2d2a572f07dd8e37_uniq` (`user_id`,`course_id`),
|
|
KEY `student_courseenrollment_fbfc09f1` (`user_id`),
|
|
KEY `student_courseenrollment_ff48d8e5` (`course_id`),
|
|
KEY `student_courseenrollment_3216ff68` (`created`),
|
|
CONSTRAINT `user_id_refs_id_ed37bc9d` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_courseenrollmentallowed`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_courseenrollmentallowed` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`email` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`auto_enroll` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseenrollmentallowed_email_6f3eafd4a6c58591_uniq` (`email`,`course_id`),
|
|
KEY `student_courseenrollmentallowed_3904588a` (`email`),
|
|
KEY `student_courseenrollmentallowed_ff48d8e5` (`course_id`),
|
|
KEY `student_courseenrollmentallowed_3216ff68` (`created`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_dashboardconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_dashboardconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`recent_enrollment_time_delta` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_dashboardconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_eec78c18` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_entranceexamconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_entranceexamconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime DEFAULT NULL,
|
|
`updated` datetime NOT NULL,
|
|
`skip_entrance_exam` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_entranceexamconfiguration_user_id_714c2ef6a88504f0_uniq` (`user_id`,`course_id`),
|
|
KEY `student_entranceexamconfiguration_fbfc09f1` (`user_id`),
|
|
KEY `student_entranceexamconfiguration_ff48d8e5` (`course_id`),
|
|
KEY `student_entranceexamconfiguration_3216ff68` (`created`),
|
|
KEY `student_entranceexamconfiguration_8aac229` (`updated`),
|
|
CONSTRAINT `user_id_refs_id_9c93dc16` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_linkedinaddtoprofileconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_linkedinaddtoprofileconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`dashboard_tracking_code` longtext NOT NULL,
|
|
`company_identifier` longtext NOT NULL,
|
|
`trk_partner_name` varchar(10) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_linkedinaddtoprofileconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_9469646a` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_loginfailures`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_loginfailures` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`failure_count` int(11) NOT NULL,
|
|
`lockout_until` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_loginfailures_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_e6a71045` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_passwordhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_passwordhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`password` varchar(128) NOT NULL,
|
|
`time_set` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_passwordhistory_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_ed0987da` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_pendingemailchange`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_pendingemailchange` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`new_email` varchar(255) NOT NULL,
|
|
`activation_key` varchar(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
UNIQUE KEY `activation_key` (`activation_key`),
|
|
KEY `student_pendingemailchange_856c86d7` (`new_email`),
|
|
CONSTRAINT `user_id_refs_id_a525fa67` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_pendingnamechange`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_pendingnamechange` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`new_name` varchar(255) NOT NULL,
|
|
`rationale` varchar(1024) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_d9359b27` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_usersignupsource`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_usersignupsource` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`site` varchar(255) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_usersignupsource_e00a881a` (`site`),
|
|
KEY `student_usersignupsource_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `user_id_refs_id_38a4bd6e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_userstanding`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_userstanding` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`account_status` varchar(31) NOT NULL,
|
|
`changed_by_id` int(11) NOT NULL,
|
|
`standing_last_changed_at` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `student_userstanding_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_450a33b` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `user_id_refs_id_450a33b` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_usertestgroup`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_usertestgroup` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(32) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_usertestgroup_52094d6e` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_usertestgroup_users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_usertestgroup_users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`usertestgroup_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_usertestgroup_us_usertestgroup_id_63c588e0372991b0_uniq` (`usertestgroup_id`,`user_id`),
|
|
KEY `student_usertestgroup_users_44f27cdf` (`usertestgroup_id`),
|
|
KEY `student_usertestgroup_users_fbfc09f1` (`user_id`),
|
|
CONSTRAINT `usertestgroup_id_refs_id_6d724f9e` FOREIGN KEY (`usertestgroup_id`) REFERENCES `student_usertestgroup` (`id`),
|
|
CONSTRAINT `user_id_refs_id_8947584c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `submissions_score`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `submissions_score` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`student_item_id` int(11) NOT NULL,
|
|
`submission_id` int(11) DEFAULT NULL,
|
|
`points_earned` int(10) unsigned NOT NULL,
|
|
`points_possible` int(10) unsigned NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`reset` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `submissions_score_fa84001` (`student_item_id`),
|
|
KEY `submissions_score_b3d6235a` (`submission_id`),
|
|
KEY `submissions_score_3b1c9c31` (`created_at`),
|
|
CONSTRAINT `student_item_id_refs_id_8cd97385` FOREIGN KEY (`student_item_id`) REFERENCES `submissions_studentitem` (`id`),
|
|
CONSTRAINT `submission_id_refs_id_9e39cf2e` FOREIGN KEY (`submission_id`) REFERENCES `submissions_submission` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `submissions_scoresummary`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `submissions_scoresummary` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`student_item_id` int(11) NOT NULL,
|
|
`highest_id` int(11) NOT NULL,
|
|
`latest_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_item_id` (`student_item_id`),
|
|
KEY `submissions_scoresummary_d65f9365` (`highest_id`),
|
|
KEY `submissions_scoresummary_1efb24d9` (`latest_id`),
|
|
CONSTRAINT `latest_id_refs_id_1bdc0a18` FOREIGN KEY (`latest_id`) REFERENCES `submissions_score` (`id`),
|
|
CONSTRAINT `highest_id_refs_id_1bdc0a18` FOREIGN KEY (`highest_id`) REFERENCES `submissions_score` (`id`),
|
|
CONSTRAINT `student_item_id_refs_id_bd51e768` FOREIGN KEY (`student_item_id`) REFERENCES `submissions_studentitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `submissions_studentitem`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `submissions_studentitem` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`student_id` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`item_id` varchar(255) NOT NULL,
|
|
`item_type` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submissions_studentitem_course_id_6a6eccbdec6ffd0b_uniq` (`course_id`,`student_id`,`item_id`),
|
|
KEY `submissions_studentitem_42ff452e` (`student_id`),
|
|
KEY `submissions_studentitem_ff48d8e5` (`course_id`),
|
|
KEY `submissions_studentitem_67b70d25` (`item_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `submissions_submission`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `submissions_submission` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`uuid` varchar(36) NOT NULL,
|
|
`student_item_id` int(11) NOT NULL,
|
|
`attempt_number` int(10) unsigned NOT NULL,
|
|
`submitted_at` datetime NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`raw_answer` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `submissions_submission_2bbc74ae` (`uuid`),
|
|
KEY `submissions_submission_fa84001` (`student_item_id`),
|
|
KEY `submissions_submission_4452d192` (`submitted_at`),
|
|
KEY `submissions_submission_3b1c9c31` (`created_at`),
|
|
CONSTRAINT `student_item_id_refs_id_b5cccc` FOREIGN KEY (`student_item_id`) REFERENCES `submissions_studentitem` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `survey_surveyanswer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `survey_surveyanswer` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`form_id` int(11) NOT NULL,
|
|
`field_name` varchar(255) NOT NULL,
|
|
`field_value` varchar(1024) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `survey_surveyanswer_fbfc09f1` (`user_id`),
|
|
KEY `survey_surveyanswer_1d0aabf2` (`form_id`),
|
|
KEY `survey_surveyanswer_7e1499` (`field_name`),
|
|
CONSTRAINT `form_id_refs_id_f4c79f29` FOREIGN KEY (`form_id`) REFERENCES `survey_surveyform` (`id`),
|
|
CONSTRAINT `user_id_refs_id_e0ad4b5e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `survey_surveyform`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `survey_surveyform` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`form` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `track_trackinglog`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `track_trackinglog` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`dtcreated` datetime NOT NULL,
|
|
`username` varchar(32) NOT NULL,
|
|
`ip` varchar(32) NOT NULL,
|
|
`event_source` varchar(32) NOT NULL,
|
|
`event_type` varchar(512) NOT NULL,
|
|
`event` longtext NOT NULL,
|
|
`agent` varchar(256) NOT NULL,
|
|
`page` varchar(512),
|
|
`time` datetime NOT NULL,
|
|
`host` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `user_api_usercoursetag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_usercoursetag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_usercoursetags_user_id_a734720a0483b08_uniq` (`user_id`,`course_id`,`key`),
|
|
KEY `user_api_usercoursetags_fbfc09f1` (`user_id`),
|
|
KEY `user_api_usercoursetags_45544485` (`key`),
|
|
KEY `user_api_usercoursetags_ff48d8e5` (`course_id`),
|
|
CONSTRAINT `user_id_refs_id_47a9a367` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `user_api_userorgtag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_userorgtag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`org` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_userorgtag_user_id_694f9e3322120c6f_uniq` (`user_id`,`org`,`key`),
|
|
KEY `user_api_userorgtag_user_id_694f9e3322120c6f` (`user_id`,`org`,`key`),
|
|
KEY `user_api_userorgtag_fbfc09f1` (`user_id`),
|
|
KEY `user_api_userorgtag_45544485` (`key`),
|
|
KEY `user_api_userorgtag_4f5f82e2` (`org`),
|
|
CONSTRAINT `user_id_refs_id_e54b717f` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `user_api_userpreference`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_userpreference` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_userpreference_user_id_4e4942d73f760072_uniq` (`user_id`,`key`),
|
|
KEY `user_api_userpreference_fbfc09f1` (`user_id`),
|
|
KEY `user_api_userpreference_45544485` (`key`),
|
|
CONSTRAINT `user_id_refs_id_f3473b9e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `util_ratelimitconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `util_ratelimitconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `util_ratelimitconfiguration_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_76a26307` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `verify_student_softwaresecurephotoverification`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verify_student_softwaresecurephotoverification` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`status` varchar(100) NOT NULL,
|
|
`status_changed` datetime NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`face_image_url` varchar(255) NOT NULL,
|
|
`photo_id_image_url` varchar(255) NOT NULL,
|
|
`receipt_id` varchar(255) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`updated_at` datetime NOT NULL,
|
|
`submitted_at` datetime DEFAULT NULL,
|
|
`reviewing_user_id` int(11) DEFAULT NULL,
|
|
`reviewing_service` varchar(255) NOT NULL,
|
|
`error_msg` longtext NOT NULL,
|
|
`error_code` varchar(50) NOT NULL,
|
|
`photo_id_key` longtext NOT NULL,
|
|
`window_id` int(11),
|
|
`display` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `verify_student_softwaresecurephotoverification_fbfc09f1` (`user_id`),
|
|
KEY `verify_student_softwaresecurephotoverification_8713c555` (`receipt_id`),
|
|
KEY `verify_student_softwaresecurephotoverification_3b1c9c31` (`created_at`),
|
|
KEY `verify_student_softwaresecurephotoverification_f84f7de6` (`updated_at`),
|
|
KEY `verify_student_softwaresecurephotoverification_4452d192` (`submitted_at`),
|
|
KEY `verify_student_softwaresecurephotoverification_b2c165b4` (`reviewing_user_id`),
|
|
KEY `verify_student_softwaresecurephotoverification_7343ffda` (`window_id`),
|
|
KEY `verify_student_softwaresecurephotoverification_35eebcb6` (`display`),
|
|
CONSTRAINT `reviewing_user_id_refs_id_d6ea4207` FOREIGN KEY (`reviewing_user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `user_id_refs_id_d6ea4207` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `window_id_refs_id_fce8f38a` FOREIGN KEY (`window_id`) REFERENCES `reverification_midcoursereverificationwindow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_article`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_article` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`current_revision_id` int(11) DEFAULT NULL,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`owner_id` int(11) DEFAULT NULL,
|
|
`group_id` int(11) DEFAULT NULL,
|
|
`group_read` tinyint(1) NOT NULL,
|
|
`group_write` tinyint(1) NOT NULL,
|
|
`other_read` tinyint(1) NOT NULL,
|
|
`other_write` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `current_revision_id` (`current_revision_id`),
|
|
KEY `wiki_article_5d52dd10` (`owner_id`),
|
|
KEY `wiki_article_bda51c3c` (`group_id`),
|
|
CONSTRAINT `group_id_refs_id_108bfee4` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
|
|
CONSTRAINT `current_revision_id_refs_id_bafac304` FOREIGN KEY (`current_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `owner_id_refs_id_9e14b583` FOREIGN KEY (`owner_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_articleforobject`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_articleforobject` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`article_id` int(11) NOT NULL,
|
|
`content_type_id` int(11) NOT NULL,
|
|
`object_id` int(10) unsigned NOT NULL,
|
|
`is_mptt` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_articleforobject_content_type_id_27c4cce189b3bcab_uniq` (`content_type_id`,`object_id`),
|
|
KEY `wiki_articleforobject_30525a19` (`article_id`),
|
|
KEY `wiki_articleforobject_e4470c6e` (`content_type_id`),
|
|
CONSTRAINT `content_type_id_refs_id_37828764` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
|
|
CONSTRAINT `article_id_refs_id_5099436` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_articleplugin`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_articleplugin` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`article_id` int(11) NOT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_articleplugin_30525a19` (`article_id`),
|
|
CONSTRAINT `article_id_refs_id_92c648ca` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_articlerevision`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_articlerevision` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`revision_number` int(11) NOT NULL,
|
|
`user_message` longtext NOT NULL,
|
|
`automatic_log` longtext NOT NULL,
|
|
`ip_address` char(15) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`previous_revision_id` int(11) DEFAULT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`locked` tinyint(1) NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
`content` longtext NOT NULL,
|
|
`title` varchar(512) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_articlerevision_article_id_4b4e7910c8e7b2d0_uniq` (`article_id`,`revision_number`),
|
|
KEY `wiki_articlerevision_fbfc09f1` (`user_id`),
|
|
KEY `wiki_articlerevision_49bc38cc` (`previous_revision_id`),
|
|
KEY `wiki_articlerevision_30525a19` (`article_id`),
|
|
CONSTRAINT `article_id_refs_id_5c88570a` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `previous_revision_id_refs_id_a951e36b` FOREIGN KEY (`previous_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `user_id_refs_id_fbb26714` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_articlesubscription`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_articlesubscription` (
|
|
`subscription_ptr_id` int(11) NOT NULL,
|
|
`articleplugin_ptr_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
UNIQUE KEY `subscription_ptr_id` (`subscription_ptr_id`),
|
|
CONSTRAINT `articleplugin_ptr_id_refs_id_cbce00e3` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`),
|
|
CONSTRAINT `subscription_ptr_id_refs_id_ae89f475` FOREIGN KEY (`subscription_ptr_id`) REFERENCES `notify_subscription` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_attachment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_attachment` (
|
|
`reusableplugin_ptr_id` int(11) NOT NULL,
|
|
`current_revision_id` int(11) DEFAULT NULL,
|
|
`original_filename` varchar(256) DEFAULT NULL,
|
|
PRIMARY KEY (`reusableplugin_ptr_id`),
|
|
UNIQUE KEY `current_revision_id` (`current_revision_id`),
|
|
CONSTRAINT `current_revision_id_refs_id_2198feb4` FOREIGN KEY (`current_revision_id`) REFERENCES `wiki_attachmentrevision` (`id`),
|
|
CONSTRAINT `reusableplugin_ptr_id_refs_articleplugin_ptr_id_6644e87a` FOREIGN KEY (`reusableplugin_ptr_id`) REFERENCES `wiki_reusableplugin` (`articleplugin_ptr_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_attachmentrevision`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_attachmentrevision` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`revision_number` int(11) NOT NULL,
|
|
`user_message` longtext NOT NULL,
|
|
`automatic_log` longtext NOT NULL,
|
|
`ip_address` char(15) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`previous_revision_id` int(11) DEFAULT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`locked` tinyint(1) NOT NULL,
|
|
`attachment_id` int(11) NOT NULL,
|
|
`file` varchar(100) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_attachmentrevision_fbfc09f1` (`user_id`),
|
|
KEY `wiki_attachmentrevision_49bc38cc` (`previous_revision_id`),
|
|
KEY `wiki_attachmentrevision_edee6011` (`attachment_id`),
|
|
CONSTRAINT `attachment_id_refs_reusableplugin_ptr_id_640583da` FOREIGN KEY (`attachment_id`) REFERENCES `wiki_attachment` (`reusableplugin_ptr_id`),
|
|
CONSTRAINT `previous_revision_id_refs_id_41bbf5` FOREIGN KEY (`previous_revision_id`) REFERENCES `wiki_attachmentrevision` (`id`),
|
|
CONSTRAINT `user_id_refs_id_2eaca84c` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_image`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_image` (
|
|
`revisionplugin_ptr_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`revisionplugin_ptr_id`),
|
|
CONSTRAINT `revisionplugin_ptr_id_refs_articleplugin_ptr_id_fc42a0b1` FOREIGN KEY (`revisionplugin_ptr_id`) REFERENCES `wiki_revisionplugin` (`articleplugin_ptr_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_imagerevision`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_imagerevision` (
|
|
`revisionpluginrevision_ptr_id` int(11) NOT NULL,
|
|
`image` varchar(2000),
|
|
`width` smallint(6),
|
|
`height` smallint(6),
|
|
PRIMARY KEY (`revisionpluginrevision_ptr_id`),
|
|
CONSTRAINT `revisionpluginrevision_ptr_id_refs_id_5b9fc791` FOREIGN KEY (`revisionpluginrevision_ptr_id`) REFERENCES `wiki_revisionpluginrevision` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_reusableplugin`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_reusableplugin` (
|
|
`articleplugin_ptr_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
CONSTRAINT `articleplugin_ptr_id_refs_id_4ca661fd` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_reusableplugin_articles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_reusableplugin_articles` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`reusableplugin_id` int(11) NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_reusableplugin_art_reusableplugin_id_6e34ac94afa8f9f2_uniq` (`reusableplugin_id`,`article_id`),
|
|
KEY `wiki_reusableplugin_articles_28b0b358` (`reusableplugin_id`),
|
|
KEY `wiki_reusableplugin_articles_30525a19` (`article_id`),
|
|
CONSTRAINT `article_id_refs_id_2f51faad` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `reusableplugin_id_refs_articleplugin_ptr_id_44b45e30` FOREIGN KEY (`reusableplugin_id`) REFERENCES `wiki_reusableplugin` (`articleplugin_ptr_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_revisionplugin`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_revisionplugin` (
|
|
`articleplugin_ptr_id` int(11) NOT NULL,
|
|
`current_revision_id` int(11),
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
UNIQUE KEY `current_revision_id` (`current_revision_id`),
|
|
CONSTRAINT `current_revision_id_refs_id_44938e26` FOREIGN KEY (`current_revision_id`) REFERENCES `wiki_revisionpluginrevision` (`id`),
|
|
CONSTRAINT `articleplugin_ptr_id_refs_id_cac31401` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_revisionpluginrevision`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_revisionpluginrevision` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`revision_number` int(11) NOT NULL,
|
|
`user_message` longtext NOT NULL,
|
|
`automatic_log` longtext NOT NULL,
|
|
`ip_address` char(15) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`created` datetime NOT NULL,
|
|
`previous_revision_id` int(11) DEFAULT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`locked` tinyint(1) NOT NULL,
|
|
`plugin_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_revisionpluginrevision_fbfc09f1` (`user_id`),
|
|
KEY `wiki_revisionpluginrevision_49bc38cc` (`previous_revision_id`),
|
|
KEY `wiki_revisionpluginrevision_2857ccbf` (`plugin_id`),
|
|
CONSTRAINT `plugin_id_refs_articleplugin_ptr_id_41bbc69c` FOREIGN KEY (`plugin_id`) REFERENCES `wiki_revisionplugin` (`articleplugin_ptr_id`),
|
|
CONSTRAINT `previous_revision_id_refs_id_78fffe43` FOREIGN KEY (`previous_revision_id`) REFERENCES `wiki_revisionpluginrevision` (`id`),
|
|
CONSTRAINT `user_id_refs_id_32d8f395` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_simpleplugin`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_simpleplugin` (
|
|
`articleplugin_ptr_id` int(11) NOT NULL,
|
|
`article_revision_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
KEY `wiki_simpleplugin_b3dc49fe` (`article_revision_id`),
|
|
CONSTRAINT `article_revision_id_refs_id_6df37b12` FOREIGN KEY (`article_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `articleplugin_ptr_id_refs_id_a25cbfd2` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `wiki_urlpath`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_urlpath` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`slug` varchar(50) DEFAULT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`lft` int(10) unsigned NOT NULL,
|
|
`rght` int(10) unsigned NOT NULL,
|
|
`tree_id` int(10) unsigned NOT NULL,
|
|
`level` int(10) unsigned NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_urlpath_site_id_124f6aa7b2cc9b82_uniq` (`site_id`,`parent_id`,`slug`),
|
|
KEY `wiki_urlpath_a951d5d6` (`slug`),
|
|
KEY `wiki_urlpath_6223029` (`site_id`),
|
|
KEY `wiki_urlpath_63f17a16` (`parent_id`),
|
|
KEY `wiki_urlpath_42b06ff6` (`lft`),
|
|
KEY `wiki_urlpath_91543e5a` (`rght`),
|
|
KEY `wiki_urlpath_efd07f28` (`tree_id`),
|
|
KEY `wiki_urlpath_2a8f42e8` (`level`),
|
|
KEY `wiki_urlpath_30525a19` (`article_id`),
|
|
CONSTRAINT `article_id_refs_id_971759c9` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `parent_id_refs_id_52d1e703` FOREIGN KEY (`parent_id`) REFERENCES `wiki_urlpath` (`id`),
|
|
CONSTRAINT `site_id_refs_id_f4bbaaa2` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `workflow_assessmentworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `workflow_assessmentworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime NOT NULL,
|
|
`modified` datetime NOT NULL,
|
|
`status` varchar(100) NOT NULL,
|
|
`status_changed` datetime NOT NULL,
|
|
`submission_uuid` varchar(36) NOT NULL,
|
|
`uuid` varchar(36) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`item_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
KEY `workflow_assessmentworkflow_course_id_21b427c69fc666ad` (`course_id`,`item_id`,`status`),
|
|
KEY `workflow_assessmentworkflow_ff48d8e5` (`course_id`),
|
|
KEY `workflow_assessmentworkflow_67b70d25` (`item_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `workflow_assessmentworkflowcancellation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `workflow_assessmentworkflowcancellation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`workflow_id` int(11) NOT NULL,
|
|
`comments` longtext NOT NULL,
|
|
`cancelled_by_id` varchar(40) NOT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `workflow_assessmentworkflowcancellation_26cddbc7` (`workflow_id`),
|
|
KEY `workflow_assessmentworkflowcancellation_8569167` (`cancelled_by_id`),
|
|
KEY `workflow_assessmentworkflowcancellation_3b1c9c31` (`created_at`),
|
|
CONSTRAINT `workflow_id_refs_id_9b9e066a` FOREIGN KEY (`workflow_id`) REFERENCES `workflow_assessmentworkflow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `workflow_assessmentworkflowstep`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `workflow_assessmentworkflowstep` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`workflow_id` int(11) NOT NULL,
|
|
`name` varchar(20) NOT NULL,
|
|
`submitter_completed_at` datetime DEFAULT NULL,
|
|
`assessment_completed_at` datetime DEFAULT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `workflow_assessmentworkflowstep_26cddbc7` (`workflow_id`),
|
|
CONSTRAINT `workflow_id_refs_id_69d0b483` FOREIGN KEY (`workflow_id`) REFERENCES `workflow_assessmentworkflow` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `xblock_config_studioconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xblock_config_studioconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`disabled_blocks` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_config_studioconfig_16905482` (`changed_by_id`),
|
|
CONSTRAINT `changed_by_id_refs_id_6ef7f7d7` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|