7081 lines
364 KiB
SQL
7081 lines
364 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 `announcements_announcement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `announcements_announcement` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`content` varchar(1000) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `api_admin_apiaccessconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `api_admin_apiaccessconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `api_admin_apiaccessconfig_changed_by_id_d2f4cd88_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `api_admin_apiaccessconfig_changed_by_id_d2f4cd88_fk_auth_user_id` 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 `api_admin_apiaccessrequest`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `api_admin_apiaccessrequest` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
`website` varchar(200) NOT NULL,
|
|
`reason` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`company_address` varchar(255) NOT NULL,
|
|
`company_name` varchar(255) NOT NULL,
|
|
`contacted` tinyint(1) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `api_admin_apiaccessrequest_user_id_eb0cc217_uniq` (`user_id`),
|
|
KEY `api_admin_apiaccessrequest_status_f8039aea` (`status`),
|
|
KEY `api_admin_apiaccessrequest_site_id_b78f5161_fk_django_site_id` (`site_id`),
|
|
CONSTRAINT `api_admin_apiaccessrequest_site_id_b78f5161_fk_django_site_id` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`),
|
|
CONSTRAINT `api_admin_apiaccessrequest_user_id_eb0cc217_fk_auth_user_id` 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 `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,
|
|
`scored_at` datetime(6) NOT NULL,
|
|
`scorer_id` varchar(40) NOT NULL,
|
|
`score_type` varchar(2) NOT NULL,
|
|
`feedback` longtext NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_assessment_submission_uuid_cf5817c5` (`submission_uuid`),
|
|
KEY `assessment_assessment_scored_at_a1a213d6` (`scored_at`),
|
|
KEY `assessment_assessment_scorer_id_ad1a38cb` (`scorer_id`),
|
|
KEY `assessment_assessment_rubric_id_2ed0d5db_fk_assessment_rubric_id` (`rubric_id`),
|
|
CONSTRAINT `assessment_assessment_rubric_id_2ed0d5db_fk_assessment_rubric_id` 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_assessmentfee_assessmentfeedback_id_as_f8246578_uniq` (`assessmentfeedback_id`,`assessment_id`),
|
|
KEY `assessment_assessmen_assessment_id_033f1121_fk_assessmen` (`assessment_id`),
|
|
CONSTRAINT `assessment_assessmen_assessment_id_033f1121_fk_assessmen` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `assessment_assessmen_assessmentfeedback_i_6634a3b4_fk_assessmen` 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_assessmentfee_assessmentfeedback_id_as_4e554cc7_uniq` (`assessmentfeedback_id`,`assessmentfeedbackoption_id`),
|
|
KEY `assessment_assessmen_assessmentfeedbackop_a9af45f6_fk_assessmen` (`assessmentfeedbackoption_id`),
|
|
CONSTRAINT `assessment_assessmen_assessmentfeedback_i_004e1bf0_fk_assessmen` FOREIGN KEY (`assessmentfeedback_id`) REFERENCES `assessment_assessmentfeedback` (`id`),
|
|
CONSTRAINT `assessment_assessmen_assessmentfeedbackop_a9af45f6_fk_assessmen` FOREIGN KEY (`assessmentfeedbackoption_id`) REFERENCES `assessment_assessmentfeedbackoption` (`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,
|
|
`feedback` longtext NOT NULL,
|
|
`assessment_id` int(11) NOT NULL,
|
|
`criterion_id` int(11) NOT NULL,
|
|
`option_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_assessmen_assessment_id_de1999cd_fk_assessmen` (`assessment_id`),
|
|
KEY `assessment_assessmen_criterion_id_5bc40925_fk_assessmen` (`criterion_id`),
|
|
KEY `assessment_assessmen_option_id_dd35c2c5_fk_assessmen` (`option_id`),
|
|
CONSTRAINT `assessment_assessmen_assessment_id_de1999cd_fk_assessmen` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `assessment_assessmen_criterion_id_5bc40925_fk_assessmen` FOREIGN KEY (`criterion_id`) REFERENCES `assessment_criterion` (`id`),
|
|
CONSTRAINT `assessment_assessmen_option_id_dd35c2c5_fk_assessmen` 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,
|
|
`name` varchar(100) NOT NULL,
|
|
`label` varchar(100) NOT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`prompt` longtext NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_criterion_rubric_id_fe236962_fk_assessment_rubric_id` (`rubric_id`),
|
|
CONSTRAINT `assessment_criterion_rubric_id_fe236962_fk_assessment_rubric_id` 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,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`points` int(10) unsigned NOT NULL,
|
|
`name` varchar(100) NOT NULL,
|
|
`label` varchar(100) NOT NULL,
|
|
`explanation` longtext NOT NULL,
|
|
`criterion_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_criterion_criterion_id_53928be7_fk_assessmen` (`criterion_id`),
|
|
CONSTRAINT `assessment_criterion_criterion_id_53928be7_fk_assessmen` 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(255) NOT NULL,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`completed_at` datetime(6) DEFAULT NULL,
|
|
`grading_completed_at` datetime(6) DEFAULT NULL,
|
|
`cancelled_at` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`),
|
|
KEY `assessment_peerworkflow_student_id_9382ae54` (`student_id`),
|
|
KEY `assessment_peerworkflow_item_id_c17d799e` (`item_id`),
|
|
KEY `assessment_peerworkflow_course_id_875599e3` (`course_id`),
|
|
KEY `assessment_peerworkflow_created_at_b8aaf4a5` (`created_at`),
|
|
KEY `assessment_peerworkflow_completed_at_681f19e1` (`completed_at`),
|
|
KEY `assessment_peerworkflow_grading_completed_at_33e2560c` (`grading_completed_at`),
|
|
KEY `assessment_peerworkflow_cancelled_at_0e258929` (`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,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`started_at` datetime(6) NOT NULL,
|
|
`scored` tinyint(1) NOT NULL,
|
|
`assessment_id` int(11) DEFAULT NULL,
|
|
`author_id` int(11) NOT NULL,
|
|
`scorer_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `assessment_peerworkf_assessment_id_27f9ef1f_fk_assessmen` (`assessment_id`),
|
|
KEY `assessment_peerworkf_author_id_0e3ed804_fk_assessmen` (`author_id`),
|
|
KEY `assessment_peerworkf_scorer_id_27e47cd4_fk_assessmen` (`scorer_id`),
|
|
KEY `assessment_peerworkflowitem_submission_uuid_edd446aa` (`submission_uuid`),
|
|
KEY `assessment_peerworkflowitem_started_at_8644e7a0` (`started_at`),
|
|
CONSTRAINT `assessment_peerworkf_assessment_id_27f9ef1f_fk_assessmen` FOREIGN KEY (`assessment_id`) REFERENCES `assessment_assessment` (`id`),
|
|
CONSTRAINT `assessment_peerworkf_author_id_0e3ed804_fk_assessmen` FOREIGN KEY (`author_id`) REFERENCES `assessment_peerworkflow` (`id`),
|
|
CONSTRAINT `assessment_peerworkf_scorer_id_27e47cd4_fk_assessmen` 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_structure_hash_fb456373` (`structure_hash`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `assessment_staffworkflow`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `assessment_staffworkflow` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`scorer_id` varchar(40) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`item_id` varchar(128) NOT NULL,
|
|
`submission_uuid` varchar(128) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`grading_completed_at` datetime(6) DEFAULT NULL,
|
|
`grading_started_at` datetime(6) DEFAULT NULL,
|
|
`cancelled_at` datetime(6) DEFAULT NULL,
|
|
`assessment` varchar(128) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`),
|
|
KEY `assessment_staffworkflow_scorer_id_ae799ebc` (`scorer_id`),
|
|
KEY `assessment_staffworkflow_course_id_3f18693d` (`course_id`),
|
|
KEY `assessment_staffworkflow_item_id_4fa3697b` (`item_id`),
|
|
KEY `assessment_staffworkflow_created_at_a253bc02` (`created_at`),
|
|
KEY `assessment_staffworkflow_grading_completed_at_acd0199f` (`grading_completed_at`),
|
|
KEY `assessment_staffworkflow_grading_started_at_90f99005` (`grading_started_at`),
|
|
KEY `assessment_staffworkflow_cancelled_at_bc8f93d5` (`cancelled_at`),
|
|
KEY `assessment_staffworkflow_assessment_7c1dcc5d` (`assessment`)
|
|
) 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(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `submission_uuid` (`submission_uuid`),
|
|
KEY `assessment_studenttrainingworkflow_student_id_ea8fdfa8` (`student_id`),
|
|
KEY `assessment_studenttrainingworkflow_item_id_f5812a25` (`item_id`),
|
|
KEY `assessment_studenttrainingworkflow_course_id_a14d6cde` (`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,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`started_at` datetime(6) NOT NULL,
|
|
`completed_at` datetime(6) DEFAULT NULL,
|
|
`training_example_id` int(11) NOT NULL,
|
|
`workflow_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `assessment_studenttraini_workflow_id_order_num_1ab60238_uniq` (`workflow_id`,`order_num`),
|
|
KEY `assessment_studenttr_training_example_id_881dddbd_fk_assessmen` (`training_example_id`),
|
|
CONSTRAINT `assessment_studenttr_training_example_id_881dddbd_fk_assessmen` FOREIGN KEY (`training_example_id`) REFERENCES `assessment_trainingexample` (`id`),
|
|
CONSTRAINT `assessment_studenttr_workflow_id_a75a9a2e_fk_assessmen` 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,
|
|
`content_hash` varchar(40) NOT NULL,
|
|
`rubric_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `content_hash` (`content_hash`),
|
|
KEY `assessment_traininge_rubric_id_cfb4afc3_fk_assessmen` (`rubric_id`),
|
|
CONSTRAINT `assessment_traininge_rubric_id_cfb4afc3_fk_assessmen` 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_trainingexamp_trainingexample_id_crite_4b6b8b90_uniq` (`trainingexample_id`,`criterionoption_id`),
|
|
KEY `assessment_traininge_criterionoption_id_de6716f1_fk_assessmen` (`criterionoption_id`),
|
|
CONSTRAINT `assessment_traininge_criterionoption_id_de6716f1_fk_assessmen` FOREIGN KEY (`criterionoption_id`) REFERENCES `assessment_criterionoption` (`id`),
|
|
CONSTRAINT `assessment_traininge_trainingexample_id_7a04b572_fk_assessmen` 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_accountrecovery`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_accountrecovery` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`secondary_email` varchar(254) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `secondary_email` (`secondary_email`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `auth_accountrecovery_user_id_0c61e73c_fk_auth_user_id` 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_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 AUTO_INCREMENT=2 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 `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
|
|
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
|
|
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
|
|
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` 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_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(255) NOT NULL,
|
|
`content_type_id` int(11) NOT NULL,
|
|
`codename` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
|
|
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2333 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,
|
|
`activation_key` varchar(32) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `activation_key` (`activation_key`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `auth_registration_user_id_f99bc297_fk_auth_user_id` 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,
|
|
`password` varchar(128) NOT NULL,
|
|
`last_login` datetime(6) DEFAULT NULL,
|
|
`is_superuser` tinyint(1) NOT NULL,
|
|
`username` varchar(150) NOT NULL,
|
|
`first_name` varchar(30) NOT NULL,
|
|
`last_name` varchar(30) NOT NULL,
|
|
`email` varchar(254) NOT NULL,
|
|
`is_staff` tinyint(1) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`date_joined` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `username` (`username`),
|
|
UNIQUE KEY `email` (`email`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 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 `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
|
|
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
|
|
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
|
|
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` 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_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 `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
|
|
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
|
|
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
|
|
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` 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_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,
|
|
`name` varchar(255) NOT NULL,
|
|
`meta` longtext NOT NULL,
|
|
`courseware` varchar(255) NOT NULL,
|
|
`language` varchar(255) NOT NULL,
|
|
`location` varchar(255) NOT NULL,
|
|
`year_of_birth` int(11) DEFAULT NULL,
|
|
`gender` varchar(6) DEFAULT NULL,
|
|
`level_of_education` varchar(6) DEFAULT NULL,
|
|
`mailing_address` longtext,
|
|
`city` longtext,
|
|
`country` varchar(2) DEFAULT NULL,
|
|
`goals` longtext,
|
|
`allow_certificate` tinyint(1) NOT NULL,
|
|
`bio` varchar(3000) DEFAULT NULL,
|
|
`profile_image_uploaded_at` datetime(6) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `auth_userprofile_name_50909f10` (`name`),
|
|
KEY `auth_userprofile_language_8948d814` (`language`),
|
|
KEY `auth_userprofile_location_ca92e4f6` (`location`),
|
|
KEY `auth_userprofile_year_of_birth_6559b9a5` (`year_of_birth`),
|
|
KEY `auth_userprofile_gender_44a122fb` (`gender`),
|
|
KEY `auth_userprofile_level_of_education_93927e04` (`level_of_education`),
|
|
CONSTRAINT `auth_userprofile_user_id_62634b27_fk_auth_user_id` 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 `badges_badgeassertion`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `badges_badgeassertion` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`data` longtext NOT NULL,
|
|
`backend` varchar(50) NOT NULL,
|
|
`image_url` varchar(200) NOT NULL,
|
|
`assertion_url` varchar(200) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`badge_class_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `badges_badgeassertion_created_d098832e` (`created`),
|
|
KEY `badges_badgeassertio_badge_class_id_902ac30e_fk_badges_ba` (`badge_class_id`),
|
|
KEY `badges_badgeassertion_user_id_13665630_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `badges_badgeassertio_badge_class_id_902ac30e_fk_badges_ba` FOREIGN KEY (`badge_class_id`) REFERENCES `badges_badgeclass` (`id`),
|
|
CONSTRAINT `badges_badgeassertion_user_id_13665630_fk_auth_user_id` 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 `badges_badgeclass`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `badges_badgeclass` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`slug` varchar(255) NOT NULL,
|
|
`issuing_component` varchar(50) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
`criteria` longtext NOT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
`image` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `badges_badgeclass_slug_issuing_component_course_id_92cd3912_uniq` (`slug`,`issuing_component`,`course_id`),
|
|
KEY `badges_badgeclass_slug_5f420f6f` (`slug`),
|
|
KEY `badges_badgeclass_issuing_component_85b6d93d` (`issuing_component`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `badges_coursecompleteimageconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `badges_coursecompleteimageconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`mode` varchar(125) NOT NULL,
|
|
`icon` varchar(100) NOT NULL,
|
|
`default` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `mode` (`mode`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `badges_courseeventbadgesconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `badges_courseeventbadgesconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`courses_completed` longtext NOT NULL,
|
|
`courses_enrolled` longtext NOT NULL,
|
|
`course_groups` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `badges_courseeventba_changed_by_id_db04ed01_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `badges_courseeventba_changed_by_id_db04ed01_fk_auth_user` 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 `block_structure`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `block_structure` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`data_usage_key` varchar(255) NOT NULL,
|
|
`data_version` varchar(255) DEFAULT NULL,
|
|
`data_edit_timestamp` datetime(6) DEFAULT NULL,
|
|
`transformers_schema_version` varchar(255) NOT NULL,
|
|
`block_structure_schema_version` varchar(255) NOT NULL,
|
|
`data` varchar(500) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `data_usage_key` (`data_usage_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `block_structure_config`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `block_structure_config` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`num_versions_to_keep` int(11) DEFAULT NULL,
|
|
`cache_timeout_in_seconds` int(11) DEFAULT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `block_structure_config_changed_by_id_45af0b10_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `block_structure_config_changed_by_id_45af0b10_fk_auth_user_id` 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 `bookmarks_bookmark`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bookmarks_bookmark` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`usage_key` varchar(255) NOT NULL,
|
|
`path` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`xblock_cache_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `bookmarks_bookmark_user_id_usage_key_61eac24b_uniq` (`user_id`,`usage_key`),
|
|
KEY `bookmarks_bookmark_course_key_46609583` (`course_key`),
|
|
KEY `bookmarks_bookmark_usage_key_d07927c9` (`usage_key`),
|
|
KEY `bookmarks_bookmark_xblock_cache_id_808a7639_fk_bookmarks` (`xblock_cache_id`),
|
|
CONSTRAINT `bookmarks_bookmark_user_id_a26bf17c_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `bookmarks_bookmark_xblock_cache_id_808a7639_fk_bookmarks` FOREIGN KEY (`xblock_cache_id`) REFERENCES `bookmarks_xblockcache` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bookmarks_xblockcache`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bookmarks_xblockcache` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`usage_key` varchar(255) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`paths` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `usage_key` (`usage_key`),
|
|
KEY `bookmarks_xblockcache_course_key_5297fa77` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `branding_brandingapiconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `branding_brandingapiconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `branding_brandingapi_changed_by_id_bab2730f_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `branding_brandingapi_changed_by_id_bab2730f_fk_auth_user` 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 `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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`configuration` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `branding_brandinginf_changed_by_id_616dd172_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `branding_brandinginf_changed_by_id_616dd172_fk_auth_user` 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_bulkemailflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_bulkemailflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`require_course_email_auth` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `bulk_email_bulkemailflag_changed_by_id_c510754b_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `bulk_email_bulkemailflag_changed_by_id_c510754b_fk_auth_user_id` 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_cohorttarget`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_cohorttarget` (
|
|
`target_ptr_id` int(11) NOT NULL,
|
|
`cohort_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`target_ptr_id`),
|
|
KEY `bulk_email_cohorttar_cohort_id_096f39c9_fk_course_gr` (`cohort_id`),
|
|
CONSTRAINT `bulk_email_cohorttar_cohort_id_096f39c9_fk_course_gr` FOREIGN KEY (`cohort_id`) REFERENCES `course_groups_courseusergroup` (`id`),
|
|
CONSTRAINT `bulk_email_cohorttar_target_ptr_id_7e1a1a40_fk_bulk_emai` FOREIGN KEY (`target_ptr_id`) REFERENCES `bulk_email_target` (`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 `course_id` (`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,
|
|
`slug` varchar(128) NOT NULL,
|
|
`subject` varchar(128) NOT NULL,
|
|
`html_message` longtext,
|
|
`text_message` longtext,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`to_option` varchar(64) NOT NULL,
|
|
`template_name` varchar(255) DEFAULT NULL,
|
|
`from_addr` varchar(255) DEFAULT NULL,
|
|
`sender_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `bulk_email_courseemail_sender_id_865f6979_fk_auth_user_id` (`sender_id`),
|
|
KEY `bulk_email_courseemail_slug_bd25801f` (`slug`),
|
|
KEY `bulk_email_courseemail_course_id_b7b8a9a2` (`course_id`),
|
|
CONSTRAINT `bulk_email_courseemail_sender_id_865f6979_fk_auth_user_id` 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_courseemail_targets`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_courseemail_targets` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`courseemail_id` int(11) NOT NULL,
|
|
`target_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `bulk_email_courseemail_t_courseemail_id_target_id_e0440acc_uniq` (`courseemail_id`,`target_id`),
|
|
KEY `bulk_email_courseema_target_id_52b11fa9_fk_bulk_emai` (`target_id`),
|
|
CONSTRAINT `bulk_email_courseema_courseemail_id_83f5bdcd_fk_bulk_emai` FOREIGN KEY (`courseemail_id`) REFERENCES `bulk_email_courseemail` (`id`),
|
|
CONSTRAINT `bulk_email_courseema_target_id_52b11fa9_fk_bulk_emai` FOREIGN KEY (`target_id`) REFERENCES `bulk_email_target` (`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) DEFAULT 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 `bulk_email_coursemodetarget`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_coursemodetarget` (
|
|
`target_ptr_id` int(11) NOT NULL,
|
|
`track_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`target_ptr_id`),
|
|
KEY `bulk_email_coursemod_track_id_2b68bb43_fk_course_mo` (`track_id`),
|
|
CONSTRAINT `bulk_email_coursemod_target_ptr_id_f2f054ce_fk_bulk_emai` FOREIGN KEY (`target_ptr_id`) REFERENCES `bulk_email_target` (`id`),
|
|
CONSTRAINT `bulk_email_coursemod_track_id_2b68bb43_fk_course_mo` FOREIGN KEY (`track_id`) REFERENCES `course_modes_coursemode` (`id`)
|
|
) 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) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `bulk_email_optout_user_id_course_id_e0e2d6a6_uniq` (`user_id`,`course_id`),
|
|
KEY `bulk_email_optout_course_id_5c5836a8` (`course_id`),
|
|
CONSTRAINT `bulk_email_optout_user_id_ff6223d6_fk_auth_user_id` 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 `bulk_email_target`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_email_target` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`target_type` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `bulk_grades_scoreoverrider`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `bulk_grades_scoreoverrider` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`modified` datetime(6) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`module_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `bulk_grades_scoreove_module_id_33617068_fk_coursewar` (`module_id`),
|
|
KEY `bulk_grades_scoreoverrider_user_id_9768d9f6_fk_auth_user_id` (`user_id`),
|
|
KEY `bulk_grades_scoreoverrider_created_2d9c74a5` (`created`),
|
|
CONSTRAINT `bulk_grades_scoreoverrider_user_id_9768d9f6_fk_auth_user_id` 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 `catalog_catalogintegration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `catalog_catalogintegration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`internal_api_url` varchar(200) NOT NULL,
|
|
`cache_ttl` int(10) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`service_username` varchar(100) NOT NULL,
|
|
`page_size` int(10) unsigned NOT NULL,
|
|
`long_term_cache_ttl` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `catalog_cataloginteg_changed_by_id_cde406de_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `catalog_cataloginteg_changed_by_id_cde406de_fk_auth_user` 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 `ccx_ccxfieldoverride`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `ccx_ccxfieldoverride` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`location` varchar(255) NOT NULL,
|
|
`field` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`ccx_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `ccx_ccxfieldoverride_ccx_id_location_field_1f8bd86f_uniq` (`ccx_id`,`location`,`field`),
|
|
KEY `ccx_ccxfieldoverride_location_a4031d17` (`location`),
|
|
CONSTRAINT `ccx_ccxfieldoverride_ccx_id_21c0d0f9_fk_ccx_custo` FOREIGN KEY (`ccx_id`) REFERENCES `ccx_customcourseforedx` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `ccx_customcourseforedx`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `ccx_customcourseforedx` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`coach_id` int(11) NOT NULL,
|
|
`structure_json` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `ccx_customcourseforedx_coach_id_efe121f7_fk_auth_user_id` (`coach_id`),
|
|
KEY `ccx_customcourseforedx_course_id_30e79b52` (`course_id`),
|
|
CONSTRAINT `ccx_customcourseforedx_coach_id_efe121f7_fk_auth_user_id` FOREIGN KEY (`coach_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `ccxcon_ccxcon`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `ccxcon_ccxcon` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`url` varchar(200) NOT NULL,
|
|
`oauth_client_id` varchar(255) NOT NULL,
|
|
`oauth_client_secret` varchar(255) NOT NULL,
|
|
`title` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `url` (`url`)
|
|
) 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(6) NOT NULL,
|
|
`traceback` longtext,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
`meta` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `task_id` (`task_id`),
|
|
KEY `celery_taskmeta_hidden_23fd02dc` (`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(6) NOT NULL,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `taskset_id` (`taskset_id`),
|
|
KEY `celery_tasksetmeta_hidden_593cfc24` (`hidden`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `celery_utils_chorddata`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `celery_utils_chorddata` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`serialized_callback` longtext NOT NULL,
|
|
`callback_result_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `callback_result_id` (`callback_result_id`),
|
|
CONSTRAINT `celery_utils_chordda_callback_result_id_08132c0d_fk_celery_ta` FOREIGN KEY (`callback_result_id`) REFERENCES `celery_taskmeta` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `celery_utils_chorddata_completed_results`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `celery_utils_chorddata_completed_results` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`chorddata_id` int(11) NOT NULL,
|
|
`taskmeta_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `celery_utils_chorddata_c_chorddata_id_taskmeta_id_ad5ac372_uniq` (`chorddata_id`,`taskmeta_id`),
|
|
KEY `celery_utils_chordda_taskmeta_id_f86c2999_fk_celery_ta` (`taskmeta_id`),
|
|
CONSTRAINT `celery_utils_chordda_chorddata_id_216509e3_fk_celery_ut` FOREIGN KEY (`chorddata_id`) REFERENCES `celery_utils_chorddata` (`id`),
|
|
CONSTRAINT `celery_utils_chordda_taskmeta_id_f86c2999_fk_celery_ta` FOREIGN KEY (`taskmeta_id`) REFERENCES `celery_taskmeta` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `celery_utils_failedtask`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `celery_utils_failedtask` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`task_name` varchar(255) NOT NULL,
|
|
`task_id` varchar(255) NOT NULL,
|
|
`args` longtext NOT NULL,
|
|
`kwargs` longtext NOT NULL,
|
|
`exc` varchar(255) NOT NULL,
|
|
`datetime_resolved` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `celery_utils_failedtask_task_name_exc_efb8c9be_idx` (`task_name`,`exc`),
|
|
KEY `celery_utils_failedtask_task_id_37af0933` (`task_id`),
|
|
KEY `celery_utils_failedtask_datetime_resolved_8160e407` (`datetime_resolved`)
|
|
) 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certifi_changed_by_id_a6d06e99_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `certificates_certifi_changed_by_id_a6d06e99_fk_auth_user` 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`language_specific_templates_enabled` tinyint(1) NOT NULL,
|
|
`self_generation_enabled` tinyint(1) NOT NULL,
|
|
`include_hours_of_effort` tinyint(1) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certificategen_course_key_dd10af41` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificategenerationhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificategenerationhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`is_regeneration` tinyint(1) NOT NULL,
|
|
`generated_by_id` int(11) NOT NULL,
|
|
`instructor_task_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certifi_generated_by_id_e9d4b7f2_fk_auth_user` (`generated_by_id`),
|
|
KEY `certificates_certifi_instructor_task_id_8f7176a6_fk_instructo` (`instructor_task_id`),
|
|
CONSTRAINT `certificates_certifi_generated_by_id_e9d4b7f2_fk_auth_user` FOREIGN KEY (`generated_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `certificates_certifi_instructor_task_id_8f7176a6_fk_instructo` FOREIGN KEY (`instructor_task_id`) REFERENCES `instructor_task_instructortask` (`id`)
|
|
) 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`configuration` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certifi_changed_by_id_bcf656f2_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `certificates_certifi_changed_by_id_bcf656f2_fk_auth_user` 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_certificateinvalidation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificateinvalidation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`notes` longtext,
|
|
`active` tinyint(1) NOT NULL,
|
|
`generated_certificate_id` int(11) NOT NULL,
|
|
`invalidated_by_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certifi_generated_certificat_31bed498_fk_certifica` (`generated_certificate_id`),
|
|
KEY `certificates_certifi_invalidated_by_id_e3c101f1_fk_auth_user` (`invalidated_by_id`),
|
|
CONSTRAINT `certificates_certifi_generated_certificat_31bed498_fk_certifica` FOREIGN KEY (`generated_certificate_id`) REFERENCES `certificates_generatedcertificate` (`id`),
|
|
CONSTRAINT `certificates_certifi_invalidated_by_id_e3c101f1_fk_auth_user` FOREIGN KEY (`invalidated_by_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificatetemplate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificatetemplate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`template` longtext NOT NULL,
|
|
`organization_id` int(11) DEFAULT NULL,
|
|
`course_key` varchar(255) DEFAULT NULL,
|
|
`mode` varchar(125) DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`language` varchar(2) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `certificates_certificate_organization_id_course_k_88e26c0d_uniq` (`organization_id`,`course_key`,`mode`,`language`),
|
|
KEY `certificates_certificatetemplate_organization_id_030a747d` (`organization_id`),
|
|
KEY `certificates_certificatetemplate_course_key_9a6a823d` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `certificates_certificatetemplateasset`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `certificates_certificatetemplateasset` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`asset` varchar(255) NOT NULL,
|
|
`asset_slug` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `asset_slug` (`asset_slug`)
|
|
) ENGINE=InnoDB 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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`whitelist` tinyint(1) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`notes` longtext,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_certifi_user_id_c2ab1b7c_fk_auth_user` (`user_id`),
|
|
CONSTRAINT `certificates_certifi_user_id_c2ab1b7c_fk_auth_user` 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(6) NOT NULL,
|
|
`modified` datetime(6) 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,
|
|
`example_cert_set_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
KEY `certificates_examplecertificate_access_key_8b745a5d` (`access_key`),
|
|
KEY `certificates_example_example_cert_set_id_7e660917_fk_certifica` (`example_cert_set_id`),
|
|
CONSTRAINT `certificates_example_example_cert_set_id_7e660917_fk_certifica` 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `certificates_examplecertificateset_course_key_16497ee9` (`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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`verify_uuid` varchar(32) NOT NULL,
|
|
`download_uuid` varchar(32) NOT NULL,
|
|
`download_url` varchar(128) NOT NULL,
|
|
`grade` varchar(5) NOT NULL,
|
|
`key` varchar(32) NOT NULL,
|
|
`distinction` tinyint(1) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`mode` varchar(32) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`created_date` datetime(6) NOT NULL,
|
|
`modified_date` datetime(6) NOT NULL,
|
|
`error_reason` varchar(512) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `certificates_generatedce_user_id_course_id_fc1bb3ee_uniq` (`user_id`,`course_id`),
|
|
KEY `certificates_generatedcertificate_verify_uuid_97405316` (`verify_uuid`),
|
|
CONSTRAINT `certificates_generat_user_id_54119d22_fk_auth_user` 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 `commerce_commerceconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `commerce_commerceconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`checkout_on_ecommerce_service` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`cache_ttl` int(10) unsigned NOT NULL,
|
|
`receipt_page` varchar(255) NOT NULL,
|
|
`enable_automatic_refund_approval` tinyint(1) NOT NULL,
|
|
`basket_checkout_page` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `commerce_commercecon_changed_by_id_2c9a6f14_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `commerce_commercecon_changed_by_id_2c9a6f14_fk_auth_user` 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 `completion_blockcompletion`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `completion_blockcompletion` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`block_key` varchar(255) NOT NULL,
|
|
`block_type` varchar(64) NOT NULL,
|
|
`completion` double NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `completion_blockcompleti_course_key_block_key_use_b15bac54_uniq` (`course_key`,`block_key`,`user_id`),
|
|
KEY `completion_blockcompletio_course_key_block_type_use_0f0d4d2d_idx` (`course_key`,`block_type`,`user_id`),
|
|
KEY `completion_blockcompletio_user_id_course_key_modifi_ed54291e_idx` (`user_id`,`course_key`,`modified`),
|
|
CONSTRAINT `completion_blockcompletion_user_id_20994c23_fk_auth_user_id` 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 `consent_datasharingconsent`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `consent_datasharingconsent` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`granted` tinyint(1) DEFAULT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `consent_datasharingconse_enterprise_customer_id_u_8bdd34e4_uniq` (`enterprise_customer_id`,`username`,`course_id`),
|
|
CONSTRAINT `consent_datasharingc_enterprise_customer__f46c6b77_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `consent_datasharingconsenttextoverrides`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `consent_datasharingconsenttextoverrides` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`page_title` varchar(255) NOT NULL,
|
|
`left_sidebar_text` longtext,
|
|
`top_paragraph` longtext,
|
|
`agreement_text` longtext,
|
|
`continue_text` varchar(255) NOT NULL,
|
|
`abort_text` varchar(255) NOT NULL,
|
|
`policy_dropdown_header` varchar(255) DEFAULT NULL,
|
|
`policy_paragraph` longtext,
|
|
`confirmation_modal_header` varchar(255) NOT NULL,
|
|
`confirmation_modal_text` longtext NOT NULL,
|
|
`modal_affirm_decline_text` varchar(255) NOT NULL,
|
|
`modal_abort_decline_text` varchar(255) NOT NULL,
|
|
`declined_notification_title` longtext NOT NULL,
|
|
`declined_notification_message` longtext NOT NULL,
|
|
`published` tinyint(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `consent_datasharingc_enterprise_customer__b979dfc1_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `consent_historicaldatasharingconsent`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `consent_historicaldatasharingconsent` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`granted` tinyint(1) DEFAULT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `consent_historicalda_history_user_id_08d7bf89_fk_auth_user` (`history_user_id`),
|
|
KEY `consent_historicaldatasharingconsent_id_69bef37e` (`id`),
|
|
KEY `consent_historicaldatashari_enterprise_customer_id_35c184bf` (`enterprise_customer_id`),
|
|
CONSTRAINT `consent_historicalda_history_user_id_08d7bf89_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `content_type_gating_contenttypegatingconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `content_type_gating_contenttypegatingconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) DEFAULT NULL,
|
|
`org` varchar(255) DEFAULT NULL,
|
|
`enabled_as_of` datetime(6) DEFAULT NULL,
|
|
`studio_override_enabled` tinyint(1) DEFAULT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`site_id` int(11) DEFAULT NULL,
|
|
`org_course` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `content_type_gating__changed_by_id_e1754c4b_fk_auth_user` (`changed_by_id`),
|
|
KEY `content_type_gating__course_id_f19cc50d_fk_course_ov` (`course_id`),
|
|
KEY `content_type_gating__site_id_c9f3bc6a_fk_django_si` (`site_id`),
|
|
KEY `content_type_gating_contenttypegatingconfig_org_043e72a9` (`org`),
|
|
KEY `content_typ_site_id_e91576_idx` (`site_id`,`org`,`course_id`),
|
|
KEY `content_typ_site_id_650310_idx` (`site_id`,`org`,`org_course`,`course_id`),
|
|
KEY `content_type_gating_contenttypegatingconfig_org_course_70742f9e` (`org_course`),
|
|
CONSTRAINT `content_type_gating__changed_by_id_e1754c4b_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `content_type_gating__course_id_f19cc50d_fk_course_ov` FOREIGN KEY (`course_id`) REFERENCES `course_overviews_courseoverview` (`id`),
|
|
CONSTRAINT `content_type_gating__site_id_c9f3bc6a_fk_django_si` 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 `contentserver_cdnuseragentsconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `contentserver_cdnuseragentsconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`cdn_user_agents` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `contentserver_cdnuse_changed_by_id_19d8cb94_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `contentserver_cdnuse_changed_by_id_19d8cb94_fk_auth_user` 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 `contentserver_courseassetcachettlconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `contentserver_courseassetcachettlconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`cache_ttl` int(10) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `contentserver_course_changed_by_id_a9213047_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `contentserver_course_changed_by_id_a9213047_fk_auth_user` 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 `contentstore_pushnotificationconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `contentstore_pushnotificationconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `contentstore_pushnot_changed_by_id_3c3c4833_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `contentstore_pushnot_changed_by_id_3c3c4833_fk_auth_user` 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 `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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`profile_whitelist` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `contentstore_videoup_changed_by_id_e7352cb2_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `contentstore_videoup_changed_by_id_e7352cb2_fk_auth_user` 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 `cornerstone_cornerstoneenterprisecustomerconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `cornerstone_cornerstoneenterprisecustomerconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`transmission_chunk_size` int(11) NOT NULL,
|
|
`cornerstone_base_url` varchar(255) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `cornerstone_cornerst_enterprise_customer__5b56887b_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `cornerstone_cornerstoneglobalconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `cornerstone_cornerstoneglobalconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`completion_status_api_path` varchar(255) NOT NULL,
|
|
`oauth_api_path` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`subject_mapping` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `cornerstone_cornerst_changed_by_id_117db502_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `cornerstone_cornerst_changed_by_id_117db502_fk_auth_user` 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 `cornerstone_cornerstonelearnerdatatransmissionaudit`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `cornerstone_cornerstonelearnerdatatransmissionaudit` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`user_guid` varchar(255) NOT NULL,
|
|
`enterprise_course_enrollment_id` int(10) unsigned DEFAULT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`session_token` varchar(255) NOT NULL,
|
|
`callback_url` varchar(255) NOT NULL,
|
|
`subdomain` varchar(255) NOT NULL,
|
|
`course_completed` tinyint(1) NOT NULL,
|
|
`completed_timestamp` datetime(6) DEFAULT NULL,
|
|
`status` varchar(100) DEFAULT NULL,
|
|
`error_message` longtext,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `cornerstone_cornerstonel_user_id_course_id_c975cc5f_uniq` (`user_id`,`course_id`),
|
|
CONSTRAINT `cornerstone_cornerst_user_id_43bd15bf_fk_auth_user` 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 `cornerstone_historicalcornerstoneenterprisecustomerconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `cornerstone_historicalcornerstoneenterprisecustomerconfiguration` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`transmission_chunk_size` int(11) NOT NULL,
|
|
`cornerstone_base_url` varchar(255) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `cornerstone_historic_history_user_id_1ded83c5_fk_auth_user` (`history_user_id`),
|
|
KEY `cornerstone_historicalcorne_id_513efd93` (`id`),
|
|
KEY `cornerstone_historicalcorne_enterprise_customer_id_7f1c53b1` (`enterprise_customer_id`),
|
|
CONSTRAINT `cornerstone_historic_history_user_id_1ded83c5_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `cors_csrf_xdomainproxyconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `cors_csrf_xdomainproxyconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`whitelist` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `cors_csrf_xdomainpro_changed_by_id_b8e97ec3_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `cors_csrf_xdomainpro_changed_by_id_b8e97ec3_fk_auth_user` 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 `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(6) NOT NULL,
|
|
`updated_time` datetime(6) NOT 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,
|
|
`created_user_id` int(11) DEFAULT NULL,
|
|
`updated_user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_action_state_cour_course_key_action_2a8434fb_uniq` (`course_key`,`action`),
|
|
KEY `course_action_state__created_user_id_5373c218_fk_auth_user` (`created_user_id`),
|
|
KEY `course_action_state__updated_user_id_3689fe4b_fk_auth_user` (`updated_user_id`),
|
|
KEY `course_action_state_coursererunstate_course_key_f87bef79` (`course_key`),
|
|
KEY `course_action_state_coursererunstate_action_149773f1` (`action`),
|
|
KEY `course_action_state_coursererunstate_source_course_key_b5037317` (`source_course_key`),
|
|
CONSTRAINT `course_action_state__created_user_id_5373c218_fk_auth_user` FOREIGN KEY (`created_user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `course_action_state__updated_user_id_3689fe4b_fk_auth_user` 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,
|
|
`state_changed` datetime(6) NOT NULL,
|
|
`state` varchar(24) NOT NULL,
|
|
`note` varchar(512) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `course_creators_coursecreator_user_id_e4da548d_fk_auth_user_id` 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_duration_limits_coursedurationlimitconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_duration_limits_coursedurationlimitconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) DEFAULT NULL,
|
|
`org` varchar(255) DEFAULT NULL,
|
|
`enabled_as_of` datetime(6) DEFAULT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`site_id` int(11) DEFAULT NULL,
|
|
`org_course` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_duration_limi_changed_by_id_f320fd76_fk_auth_user` (`changed_by_id`),
|
|
KEY `course_duration_limi_course_id_97b7a8e9_fk_course_ov` (`course_id`),
|
|
KEY `course_duration_limi_site_id_cb492296_fk_django_si` (`site_id`),
|
|
KEY `course_duration_limits_coursedurationlimitconfig_org_c2cc0091` (`org`),
|
|
KEY `course_dura_site_id_424016_idx` (`site_id`,`org`,`course_id`),
|
|
KEY `course_dura_site_id_b5bbcd_idx` (`site_id`,`org`,`org_course`,`course_id`),
|
|
KEY `course_duration_limits_cour_org_course_bcd05764` (`org_course`),
|
|
CONSTRAINT `course_duration_limi_changed_by_id_f320fd76_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `course_duration_limi_course_id_97b7a8e9_fk_course_ov` FOREIGN KEY (`course_id`) REFERENCES `course_overviews_courseoverview` (`id`),
|
|
CONSTRAINT `course_duration_limi_site_id_cb492296_fk_django_si` 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 `course_goals_coursegoal`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_goals_coursegoal` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`goal_key` varchar(100) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_goals_coursegoal_user_id_course_key_052bc0d3_uniq` (`user_id`,`course_key`),
|
|
KEY `course_goals_coursegoal_course_key_5585ca51` (`course_key`),
|
|
CONSTRAINT `course_goals_coursegoal_user_id_0a07e3db_fk_auth_user_id` 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_cohortmembership`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_cohortmembership` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_groups_cohortmembership_user_id_course_id_c247eb7f_uniq` (`user_id`,`course_id`),
|
|
KEY `course_groups_cohort_course_user_group_id_6ea50b45_fk_course_gr` (`course_user_group_id`),
|
|
CONSTRAINT `course_groups_cohort_course_user_group_id_6ea50b45_fk_course_gr` FOREIGN KEY (`course_user_group_id`) REFERENCES `course_groups_courseusergroup` (`id`),
|
|
CONSTRAINT `course_groups_cohortmembership_user_id_aae5b8e7_fk_auth_user_id` 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,
|
|
`assignment_type` varchar(20) NOT NULL,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_user_group_id` (`course_user_group_id`),
|
|
CONSTRAINT `course_groups_course_course_user_group_id_ec5703ee_fk_course_gr` 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_course_id_b767231d_uniq` (`name`,`course_id`),
|
|
KEY `course_groups_courseusergroup_course_id_902aea4c` (`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_courseuser_courseusergroup_id_user__694e8c30_uniq` (`courseusergroup_id`,`user_id`),
|
|
KEY `course_groups_course_user_id_28aff981_fk_auth_user` (`user_id`),
|
|
CONSTRAINT `course_groups_course_courseusergroup_id_26a7966f_fk_course_gr` FOREIGN KEY (`courseusergroup_id`) REFERENCES `course_groups_courseusergroup` (`id`),
|
|
CONSTRAINT `course_groups_course_user_id_28aff981_fk_auth_user` 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_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,
|
|
`partition_id` int(11) NOT NULL,
|
|
`group_id` int(11) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`updated_at` datetime(6) NOT NULL,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_user_group_id` (`course_user_group_id`),
|
|
CONSTRAINT `course_groups_course_course_user_group_id_6032d512_fk_course_gr` 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_unregisteredlearnercohortassignments`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_groups_unregisteredlearnercohortassignments` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`email` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_user_group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_groups_unregister_course_id_email_81a9d1db_uniq` (`course_id`,`email`),
|
|
KEY `course_groups_unregi_course_user_group_id_c1c8a247_fk_course_gr` (`course_user_group_id`),
|
|
KEY `course_groups_unregisteredl_email_05d0e40e` (`email`),
|
|
CONSTRAINT `course_groups_unregi_course_user_group_id_c1c8a247_fk_course_gr` 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,
|
|
`currency` varchar(8) NOT NULL,
|
|
`expiration_datetime` datetime(6) DEFAULT NULL,
|
|
`expiration_date` date DEFAULT NULL,
|
|
`suggested_prices` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
`sku` varchar(255) DEFAULT NULL,
|
|
`expiration_datetime_is_explicit` tinyint(1) NOT NULL,
|
|
`bulk_sku` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_modes_coursemode_course_id_mode_slug_curr_56f8e675_uniq` (`course_id`,`mode_slug`,`currency`),
|
|
KEY `course_modes_coursemode_course_id_3daf3b9d` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_modes_coursemodeexpirationconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_modes_coursemodeexpirationconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`verification_window` bigint(20) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_modes_coursem_changed_by_id_208463ee_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `course_modes_coursem_changed_by_id_208463ee_fk_auth_user` 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 `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(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_modes_coursemodesarchive_course_id_f67bbd35` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_modes_historicalcoursemode`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_modes_historicalcoursemode` (
|
|
`id` int(11) NOT NULL,
|
|
`mode_slug` varchar(100) NOT NULL,
|
|
`mode_display_name` varchar(255) NOT NULL,
|
|
`min_price` int(11) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`expiration_datetime` datetime(6) DEFAULT NULL,
|
|
`expiration_datetime_is_explicit` tinyint(1) NOT NULL,
|
|
`expiration_date` date DEFAULT NULL,
|
|
`suggested_prices` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
`sku` varchar(255) DEFAULT NULL,
|
|
`bulk_sku` varchar(255) DEFAULT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `course_modes_histori_history_user_id_d92d6b6e_fk_auth_user` (`history_user_id`),
|
|
KEY `course_modes_historicalcoursemode_id_14918a77` (`id`),
|
|
KEY `course_modes_historicalcoursemode_course_id_e8de13cd` (`course_id`),
|
|
CONSTRAINT `course_modes_histori_history_user_id_d92d6b6e_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_overviews_courseoverview`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_overviews_courseoverview` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`version` int(11) NOT NULL,
|
|
`id` varchar(255) NOT NULL,
|
|
`_location` varchar(255) NOT NULL,
|
|
`display_name` longtext,
|
|
`display_number_with_default` longtext NOT NULL,
|
|
`display_org_with_default` longtext NOT NULL,
|
|
`start` datetime(6) DEFAULT NULL,
|
|
`end` datetime(6) DEFAULT NULL,
|
|
`advertised_start` longtext,
|
|
`course_image_url` longtext NOT NULL,
|
|
`social_sharing_url` longtext,
|
|
`end_of_course_survey_url` longtext,
|
|
`certificates_display_behavior` longtext,
|
|
`certificates_show_before_end` tinyint(1) NOT NULL,
|
|
`cert_html_view_enabled` tinyint(1) NOT NULL,
|
|
`has_any_active_web_certificate` tinyint(1) NOT NULL,
|
|
`cert_name_short` longtext NOT NULL,
|
|
`cert_name_long` longtext NOT NULL,
|
|
`lowest_passing_grade` decimal(5,2) DEFAULT NULL,
|
|
`days_early_for_beta` double DEFAULT NULL,
|
|
`mobile_available` tinyint(1) NOT NULL,
|
|
`visible_to_staff_only` tinyint(1) NOT NULL,
|
|
`_pre_requisite_courses_json` longtext NOT NULL,
|
|
`enrollment_start` datetime(6) DEFAULT NULL,
|
|
`enrollment_end` datetime(6) DEFAULT NULL,
|
|
`enrollment_domain` longtext,
|
|
`invitation_only` tinyint(1) NOT NULL,
|
|
`max_student_enrollments_allowed` int(11) DEFAULT NULL,
|
|
`announcement` datetime(6) DEFAULT NULL,
|
|
`catalog_visibility` longtext,
|
|
`course_video_url` longtext,
|
|
`effort` longtext,
|
|
`short_description` longtext,
|
|
`org` longtext NOT NULL,
|
|
`self_paced` tinyint(1) NOT NULL,
|
|
`marketing_url` longtext,
|
|
`eligible_for_financial_aid` tinyint(1) NOT NULL,
|
|
`language` longtext,
|
|
`certificate_available_date` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_overviews_courseoverviewimageconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_overviews_courseoverviewimageconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`small_width` int(11) NOT NULL,
|
|
`small_height` int(11) NOT NULL,
|
|
`large_width` int(11) NOT NULL,
|
|
`large_height` int(11) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_overviews_cou_changed_by_id_b60ae39a_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `course_overviews_cou_changed_by_id_b60ae39a_fk_auth_user` 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 `course_overviews_courseoverviewimageset`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_overviews_courseoverviewimageset` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`small_url` longtext NOT NULL,
|
|
`large_url` longtext NOT NULL,
|
|
`course_overview_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_overview_id` (`course_overview_id`),
|
|
CONSTRAINT `course_overviews_cou_course_overview_id_ef7aa548_fk_course_ov` FOREIGN KEY (`course_overview_id`) REFERENCES `course_overviews_courseoverview` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_overviews_courseoverviewtab`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_overviews_courseoverviewtab` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`tab_id` varchar(50) NOT NULL,
|
|
`course_overview_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `course_overviews_cou_course_overview_id_71fa6321_fk_course_ov` (`course_overview_id`),
|
|
CONSTRAINT `course_overviews_cou_course_overview_id_71fa6321_fk_course_ov` FOREIGN KEY (`course_overview_id`) REFERENCES `course_overviews_courseoverview` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `course_overviews_historicalcourseoverview`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `course_overviews_historicalcourseoverview` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`version` int(11) NOT NULL,
|
|
`id` varchar(255) NOT NULL,
|
|
`_location` varchar(255) NOT NULL,
|
|
`org` longtext NOT NULL,
|
|
`display_name` longtext,
|
|
`display_number_with_default` longtext NOT NULL,
|
|
`display_org_with_default` longtext NOT NULL,
|
|
`start` datetime(6) DEFAULT NULL,
|
|
`end` datetime(6) DEFAULT NULL,
|
|
`advertised_start` longtext,
|
|
`announcement` datetime(6) DEFAULT NULL,
|
|
`course_image_url` longtext NOT NULL,
|
|
`social_sharing_url` longtext,
|
|
`end_of_course_survey_url` longtext,
|
|
`certificates_display_behavior` longtext,
|
|
`certificates_show_before_end` tinyint(1) NOT NULL,
|
|
`cert_html_view_enabled` tinyint(1) NOT NULL,
|
|
`has_any_active_web_certificate` tinyint(1) NOT NULL,
|
|
`cert_name_short` longtext NOT NULL,
|
|
`cert_name_long` longtext NOT NULL,
|
|
`certificate_available_date` datetime(6) DEFAULT NULL,
|
|
`lowest_passing_grade` decimal(5,2) DEFAULT NULL,
|
|
`days_early_for_beta` double DEFAULT NULL,
|
|
`mobile_available` tinyint(1) NOT NULL,
|
|
`visible_to_staff_only` tinyint(1) NOT NULL,
|
|
`_pre_requisite_courses_json` longtext NOT NULL,
|
|
`enrollment_start` datetime(6) DEFAULT NULL,
|
|
`enrollment_end` datetime(6) DEFAULT NULL,
|
|
`enrollment_domain` longtext,
|
|
`invitation_only` tinyint(1) NOT NULL,
|
|
`max_student_enrollments_allowed` int(11) DEFAULT NULL,
|
|
`catalog_visibility` longtext,
|
|
`short_description` longtext,
|
|
`course_video_url` longtext,
|
|
`effort` longtext,
|
|
`self_paced` tinyint(1) NOT NULL,
|
|
`marketing_url` longtext,
|
|
`eligible_for_financial_aid` tinyint(1) NOT NULL,
|
|
`language` longtext,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `course_overviews_his_history_user_id_e21063d9_fk_auth_user` (`history_user_id`),
|
|
KEY `course_overviews_historicalcourseoverview_id_647043f0` (`id`),
|
|
CONSTRAINT `course_overviews_his_history_user_id_e21063d9_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_coursedynamicupgradedeadlineconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_coursedynamicupgradedeadlineconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`deadline_days` smallint(5) unsigned NOT NULL,
|
|
`opt_out` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_coursedyn_changed_by_id_2c4efc3a_fk_auth_user` (`changed_by_id`),
|
|
KEY `courseware_coursedynamicupg_course_id_60b88041` (`course_id`),
|
|
CONSTRAINT `courseware_coursedyn_changed_by_id_2c4efc3a_fk_auth_user` 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 `courseware_dynamicupgradedeadlineconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_dynamicupgradedeadlineconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`deadline_days` smallint(5) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_dynamicup_changed_by_id_6a450e2c_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `courseware_dynamicup_changed_by_id_6a450e2c_fk_auth_user` 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 `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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`gradeset` longtext,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_offlinecomputedgrade_user_id_course_id_18dfd343_uniq` (`user_id`,`course_id`),
|
|
KEY `courseware_offlinecomputedgrade_course_id_03e21ba7` (`course_id`),
|
|
KEY `courseware_offlinecomputedgrade_created_b5bca47f` (`created`),
|
|
KEY `courseware_offlinecomputedgrade_updated_6f3faff6` (`updated`),
|
|
CONSTRAINT `courseware_offlinecomputedgrade_user_id_14864cea_fk_auth_user_id` 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(6) DEFAULT NULL,
|
|
`seconds` int(11) NOT NULL,
|
|
`nstudents` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_offlinecomputedgradelog_course_id_1014e127` (`course_id`),
|
|
KEY `courseware_offlinecomputedgradelog_created_33076a1a` (`created`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `courseware_orgdynamicupgradedeadlineconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_orgdynamicupgradedeadlineconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`org_id` varchar(255) NOT NULL,
|
|
`deadline_days` smallint(5) unsigned NOT NULL,
|
|
`opt_out` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_orgdynami_changed_by_id_b557a1ea_fk_auth_user` (`changed_by_id`),
|
|
KEY `courseware_orgdynamicupgrad_org_id_85d3cbe4` (`org_id`),
|
|
CONSTRAINT `courseware_orgdynami_changed_by_id_b557a1ea_fk_auth_user` 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 `courseware_studentfieldoverride`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `courseware_studentfieldoverride` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`location` varchar(255) NOT NULL,
|
|
`field` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_studentfieldo_course_id_field_location_a1f7da25_uniq` (`course_id`,`field`,`location`,`student_id`),
|
|
KEY `courseware_studentfi_student_id_7a972765_fk_auth_user` (`student_id`),
|
|
KEY `courseware_studentfieldoverride_course_id_7ca0051c` (`course_id`),
|
|
KEY `courseware_studentfieldoverride_location_95ad5047` (`location`),
|
|
CONSTRAINT `courseware_studentfi_student_id_7a972765_fk_auth_user` 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_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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`state` longtext,
|
|
`grade` double DEFAULT NULL,
|
|
`max_grade` double DEFAULT NULL,
|
|
`done` varchar(8) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_studentmodule_student_id_module_id_cou_48e8deef_uniq` (`student_id`,`module_id`,`course_id`),
|
|
KEY `courseware_studentmodule_module_type_f4f8863f` (`module_type`),
|
|
KEY `courseware_studentmodule_course_id_0637cb49` (`course_id`),
|
|
KEY `courseware_studentmodule_grade_adac1ba7` (`grade`),
|
|
KEY `courseware_studentmodule_created_9976b4ad` (`created`),
|
|
KEY `courseware_studentmodule_modified_f6a0b0cc` (`modified`)
|
|
) 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,
|
|
`version` varchar(255) DEFAULT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`state` longtext,
|
|
`grade` double DEFAULT NULL,
|
|
`max_grade` double DEFAULT NULL,
|
|
`student_module_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `courseware_studentmo_student_module_id_6efc64cf_fk_coursewar` (`student_module_id`),
|
|
KEY `courseware_studentmodulehistory_version_d3823ad1` (`version`),
|
|
KEY `courseware_studentmodulehistory_created_19cb94d2` (`created`)
|
|
) 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,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmodulestuden_student_id_field_name_2f3a4ee8_uniq` (`student_id`,`field_name`),
|
|
KEY `courseware_xmodulestudentinfofield_field_name_191b762e` (`field_name`),
|
|
KEY `courseware_xmodulestudentinfofield_created_beada63d` (`created`),
|
|
KEY `courseware_xmodulestudentinfofield_modified_b53f9c88` (`modified`),
|
|
CONSTRAINT `courseware_xmodulest_student_id_b78d39b4_fk_auth_user` 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,
|
|
`value` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`module_type` varchar(64) NOT NULL,
|
|
`student_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmodulestuden_student_id_module_type_f_1c218850_uniq` (`student_id`,`module_type`,`field_name`),
|
|
KEY `courseware_xmodulestudentprefsfield_field_name_68d5e66e` (`field_name`),
|
|
KEY `courseware_xmodulestudentprefsfield_created_16090241` (`created`),
|
|
KEY `courseware_xmodulestudentprefsfield_modified_5b4e5525` (`modified`),
|
|
KEY `courseware_xmodulestudentprefsfield_module_type_45b994b9` (`module_type`),
|
|
CONSTRAINT `courseware_xmodulest_student_id_3c60ec8a_fk_auth_user` 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,
|
|
`value` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`usage_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `courseware_xmoduleuserst_usage_id_field_name_e4e34c44_uniq` (`usage_id`,`field_name`),
|
|
KEY `courseware_xmoduleuserstatesummaryfield_field_name_395cd2a6` (`field_name`),
|
|
KEY `courseware_xmoduleuserstatesummaryfield_created_57d773a1` (`created`),
|
|
KEY `courseware_xmoduleuserstatesummaryfield_modified_b4277a5d` (`modified`),
|
|
KEY `courseware_xmoduleuserstatesummaryfield_usage_id_9f239d1f` (`usage_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `crawlers_crawlersconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `crawlers_crawlersconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`known_user_agents` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `crawlers_crawlersconfig_changed_by_id_544af924_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `crawlers_crawlersconfig_changed_by_id_544af924_fk_auth_user_id` 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 `credentials_credentialsapiconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credentials_credentialsapiconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`internal_service_url` varchar(200) NOT NULL,
|
|
`public_service_url` varchar(200) NOT NULL,
|
|
`enable_learner_issuance` tinyint(1) NOT NULL,
|
|
`enable_studio_authoring` tinyint(1) NOT NULL,
|
|
`cache_ttl` int(10) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `credentials_credenti_changed_by_id_9e145a81_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `credentials_credenti_changed_by_id_9e145a81_fk_auth_user` 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 `credentials_notifycredentialsconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credentials_notifycredentialsconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`arguments` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `credentials_notifycr_changed_by_id_e31cde0e_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `credentials_notifycr_changed_by_id_e31cde0e_fk_auth_user` 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 `credit_creditconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`cache_ttl` int(10) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `credit_creditconfig_changed_by_id_72e1eca9_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `credit_creditconfig_changed_by_id_72e1eca9_fk_auth_user_id` 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 `credit_creditcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditcourse` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`enabled` tinyint(1) 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 `credit_crediteligibility`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_crediteligibility` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`deadline` datetime(6) NOT NULL,
|
|
`course_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `credit_crediteligibility_username_course_id_7906b4c1_uniq` (`username`,`course_id`),
|
|
KEY `credit_crediteligibi_course_id_d86f481f_fk_credit_cr` (`course_id`),
|
|
KEY `credit_crediteligibility_username_4c275fb5` (`username`),
|
|
CONSTRAINT `credit_crediteligibi_course_id_d86f481f_fk_credit_cr` FOREIGN KEY (`course_id`) REFERENCES `credit_creditcourse` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `credit_creditprovider`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditprovider` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`provider_id` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`enable_integration` tinyint(1) NOT NULL,
|
|
`provider_url` varchar(200) NOT NULL,
|
|
`provider_status_url` varchar(200) NOT NULL,
|
|
`provider_description` longtext NOT NULL,
|
|
`fulfillment_instructions` longtext,
|
|
`eligibility_email_message` longtext NOT NULL,
|
|
`receipt_email_message` longtext NOT NULL,
|
|
`thumbnail_url` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `provider_id` (`provider_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `credit_creditrequest`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditrequest` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` varchar(32) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`parameters` longtext NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
`course_id` int(11) NOT NULL,
|
|
`provider_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
UNIQUE KEY `credit_creditrequest_username_course_id_provi_3b019afe_uniq` (`username`,`course_id`,`provider_id`),
|
|
KEY `credit_creditrequest_course_id_5478ceaf_fk_credit_cr` (`course_id`),
|
|
KEY `credit_creditrequest_provider_id_5465ab8b_fk_credit_cr` (`provider_id`),
|
|
KEY `credit_creditrequest_username_bd5623e4` (`username`),
|
|
CONSTRAINT `credit_creditrequest_course_id_5478ceaf_fk_credit_cr` FOREIGN KEY (`course_id`) REFERENCES `credit_creditcourse` (`id`),
|
|
CONSTRAINT `credit_creditrequest_provider_id_5465ab8b_fk_credit_cr` FOREIGN KEY (`provider_id`) REFERENCES `credit_creditprovider` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `credit_creditrequirement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditrequirement` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`namespace` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`display_name` varchar(255) NOT NULL,
|
|
`order` int(10) unsigned NOT NULL,
|
|
`criteria` longtext NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`course_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `credit_creditrequirement_namespace_name_course_id_87c301e6_uniq` (`namespace`,`name`,`course_id`),
|
|
KEY `credit_creditrequire_course_id_b6aa812a_fk_credit_cr` (`course_id`),
|
|
CONSTRAINT `credit_creditrequire_course_id_b6aa812a_fk_credit_cr` FOREIGN KEY (`course_id`) REFERENCES `credit_creditcourse` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `credit_creditrequirementstatus`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `credit_creditrequirementstatus` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`username` varchar(255) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`reason` longtext NOT NULL,
|
|
`requirement_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `credit_creditrequirement_username_requirement_id_f761eba5_uniq` (`username`,`requirement_id`),
|
|
KEY `credit_creditrequire_requirement_id_cde25c76_fk_credit_cr` (`requirement_id`),
|
|
KEY `credit_creditrequirementstatus_username_4c2511ed` (`username`),
|
|
CONSTRAINT `credit_creditrequire_requirement_id_cde25c76_fk_credit_cr` FOREIGN KEY (`requirement_id`) REFERENCES `credit_creditrequirement` (`id`)
|
|
) 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`released_languages` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`beta_languages` longtext NOT NULL,
|
|
`enable_beta_languages` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `dark_lang_darklangconfig_changed_by_id_9a7df899_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `dark_lang_darklangconfig_changed_by_id_9a7df899_fk_auth_user_id` 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 `degreed_degreedenterprisecustomerconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `degreed_degreedenterprisecustomerconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`secret` varchar(255) NOT NULL,
|
|
`degreed_company_id` varchar(255) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
`transmission_chunk_size` int(11) NOT NULL,
|
|
`degreed_base_url` varchar(255) NOT NULL,
|
|
`degreed_user_id` varchar(255) NOT NULL,
|
|
`degreed_user_password` varchar(255) NOT NULL,
|
|
`provider_id` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `degreed_degreedenter_enterprise_customer__86f16a0d_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `degreed_degreedglobalconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `degreed_degreedglobalconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`completion_status_api_path` varchar(255) NOT NULL,
|
|
`course_api_path` varchar(255) NOT NULL,
|
|
`oauth_api_path` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `degreed_degreedgloba_changed_by_id_00a8a7be_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `degreed_degreedgloba_changed_by_id_00a8a7be_fk_auth_user` 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 `degreed_degreedlearnerdatatransmissionaudit`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `degreed_degreedlearnerdatatransmissionaudit` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`degreed_user_email` varchar(255) NOT NULL,
|
|
`enterprise_course_enrollment_id` int(10) unsigned NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_completed` tinyint(1) NOT NULL,
|
|
`completed_timestamp` varchar(10) NOT NULL,
|
|
`status` varchar(100) NOT NULL,
|
|
`error_message` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `degreed_historicaldegreedenterprisecustomerconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `degreed_historicaldegreedenterprisecustomerconfiguration` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`secret` varchar(255) NOT NULL,
|
|
`degreed_company_id` varchar(255) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`transmission_chunk_size` int(11) NOT NULL,
|
|
`degreed_base_url` varchar(255) NOT NULL,
|
|
`degreed_user_id` varchar(255) NOT NULL,
|
|
`degreed_user_password` varchar(255) NOT NULL,
|
|
`provider_id` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `degreed_historicalde_history_user_id_5b4776d8_fk_auth_user` (`history_user_id`),
|
|
KEY `degreed_historicaldegreeden_id_756f1445` (`id`),
|
|
KEY `degreed_historicaldegreeden_enterprise_customer_id_12129e6f` (`enterprise_customer_id`),
|
|
CONSTRAINT `degreed_historicalde_history_user_id_5b4776d8_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `discounts_discountrestrictionconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `discounts_discountrestrictionconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) DEFAULT NULL,
|
|
`org` varchar(255) DEFAULT NULL,
|
|
`org_course` varchar(255) DEFAULT NULL,
|
|
`disabled` tinyint(1) DEFAULT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`site_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `discounts_d_site_id_d67da3_idx` (`site_id`,`org`,`course_id`),
|
|
KEY `discounts_d_site_id_f83727_idx` (`site_id`,`org`,`org_course`,`course_id`),
|
|
KEY `discounts_discountre_changed_by_id_f18a5c1b_fk_auth_user` (`changed_by_id`),
|
|
KEY `discounts_discountre_course_id_d7f6674b_fk_course_ov` (`course_id`),
|
|
KEY `discounts_discountrestrictionconfig_org_010f786f` (`org`),
|
|
KEY `discounts_discountrestrictionconfig_org_course_bb36b3cd` (`org_course`),
|
|
CONSTRAINT `discounts_discountre_changed_by_id_f18a5c1b_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `discounts_discountre_course_id_d7f6674b_fk_course_ov` FOREIGN KEY (`course_id`) REFERENCES `course_overviews_courseoverview` (`id`),
|
|
CONSTRAINT `discounts_discountre_site_id_3f4c1be6_fk_django_si` 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 `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(6) NOT NULL,
|
|
`object_id` longtext,
|
|
`object_repr` varchar(200) NOT NULL,
|
|
`action_flag` smallint(5) unsigned NOT NULL,
|
|
`change_message` longtext NOT NULL,
|
|
`content_type_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
|
|
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
|
|
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` 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_pe_permission_id_role_id_d3680ec3_uniq` (`permission_id`,`role_id`),
|
|
KEY `django_comment_clien_role_id_d2cb08a2_fk_django_co` (`role_id`),
|
|
CONSTRAINT `django_comment_clien_permission_id_f9f47fd2_fk_django_co` FOREIGN KEY (`permission_id`) REFERENCES `django_comment_client_permission` (`name`),
|
|
CONSTRAINT `django_comment_clien_role_id_d2cb08a2_fk_django_co` 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_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_course_id_08a9c1d1` (`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_user_id_93ab4289_uniq` (`role_id`,`user_id`),
|
|
KEY `dcc_role_users_user_role_idx` (`user_id`,`role_id`),
|
|
CONSTRAINT `django_comment_clien_role_id_baec77f6_fk_django_co` FOREIGN KEY (`role_id`) REFERENCES `django_comment_client_role` (`id`),
|
|
CONSTRAINT `django_comment_clien_user_id_5d7991df_fk_auth_user` 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_common_coursediscussionsettings`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_common_coursediscussionsettings` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`always_divide_inline_discussions` tinyint(1) NOT NULL,
|
|
`divided_discussions` longtext,
|
|
`division_scheme` varchar(20) NOT NULL,
|
|
`discussions_id_map` 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 `django_comment_common_discussionsidmapping`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_common_discussionsidmapping` (
|
|
`course_id` varchar(255) NOT NULL,
|
|
`mapping` longtext NOT NULL,
|
|
PRIMARY KEY (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_comment_common_forumsconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_comment_common_forumsconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`connection_timeout` double NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_comment_commo_changed_by_id_9292e296_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `django_comment_commo_changed_by_id_9292e296_fk_auth_user` 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_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,
|
|
`app_label` varchar(100) NOT NULL,
|
|
`model` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=775 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `django_migrations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_migrations` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`app` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`applied` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=566 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,
|
|
`claimed_id` longtext NOT NULL,
|
|
`display_id` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `django_openid_auth_useropenid_user_id_707d846c_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `django_openid_auth_useropenid_user_id_707d846c_fk_auth_user_id` 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_redirect`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `django_redirect` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`site_id` int(11) NOT NULL,
|
|
`old_path` varchar(200) NOT NULL,
|
|
`new_path` varchar(200) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `django_redirect_site_id_old_path_ac5dd16b_uniq` (`site_id`,`old_path`),
|
|
KEY `django_redirect_old_path_c6cc94d3` (`old_path`),
|
|
CONSTRAINT `django_redirect_site_id_c3e37341_fk_django_site_id` 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 `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(6) NOT NULL,
|
|
PRIMARY KEY (`session_key`),
|
|
KEY `django_session_expire_date_a5c62663` (`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`),
|
|
UNIQUE KEY `django_site_domain_a2e37b91_uniq` (`domain`)
|
|
) 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,
|
|
`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(6) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`last_run_at` datetime(6) DEFAULT NULL,
|
|
`total_run_count` int(10) unsigned NOT NULL,
|
|
`date_changed` datetime(6) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
`crontab_id` int(11) DEFAULT NULL,
|
|
`interval_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`),
|
|
KEY `djcelery_periodictas_crontab_id_75609bab_fk_djcelery_` (`crontab_id`),
|
|
KEY `djcelery_periodictas_interval_id_b426ab02_fk_djcelery_` (`interval_id`),
|
|
CONSTRAINT `djcelery_periodictas_crontab_id_75609bab_fk_djcelery_` FOREIGN KEY (`crontab_id`) REFERENCES `djcelery_crontabschedule` (`id`),
|
|
CONSTRAINT `djcelery_periodictas_interval_id_b426ab02_fk_djcelery_` FOREIGN KEY (`interval_id`) REFERENCES `djcelery_intervalschedule` (`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(6) 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(6) NOT NULL,
|
|
`args` longtext,
|
|
`kwargs` longtext,
|
|
`eta` datetime(6) DEFAULT NULL,
|
|
`expires` datetime(6) DEFAULT NULL,
|
|
`result` longtext,
|
|
`traceback` longtext,
|
|
`runtime` double DEFAULT NULL,
|
|
`retries` int(11) NOT NULL,
|
|
`hidden` tinyint(1) NOT NULL,
|
|
`worker_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `task_id` (`task_id`),
|
|
KEY `djcelery_taskstate_state_53543be4` (`state`),
|
|
KEY `djcelery_taskstate_name_8af9eded` (`name`),
|
|
KEY `djcelery_taskstate_tstamp_4c3f93a1` (`tstamp`),
|
|
KEY `djcelery_taskstate_hidden_c3905e57` (`hidden`),
|
|
KEY `djcelery_taskstate_worker_id_f7f57a05_fk_djcelery_workerstate_id` (`worker_id`),
|
|
CONSTRAINT `djcelery_taskstate_worker_id_f7f57a05_fk_djcelery_workerstate_id` 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(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `hostname` (`hostname`),
|
|
KEY `djcelery_workerstate_last_heartbeat_4539b544` (`last_heartbeat`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edx_when_contentdate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edx_when_contentdate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`location` varchar(255) DEFAULT NULL,
|
|
`policy_id` int(11) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`field` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edx_when_contentdate_policy_id_location_field_a26790ec_uniq` (`policy_id`,`location`,`field`),
|
|
KEY `edx_when_contentdate_course_id_e6c39fdc` (`course_id`),
|
|
KEY `edx_when_contentdate_location_485206ea` (`location`),
|
|
KEY `edx_when_contentdate_policy_id_af2bcaf4` (`policy_id`),
|
|
KEY `edx_when_contentdate_active_d091ba6d` (`active`),
|
|
CONSTRAINT `edx_when_contentdate_policy_id_af2bcaf4_fk_edx_when_` FOREIGN KEY (`policy_id`) REFERENCES `edx_when_datepolicy` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edx_when_datepolicy`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edx_when_datepolicy` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`abs_date` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `edx_when_datepolicy_abs_date_1a510cd3` (`abs_date`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edx_when_userdate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edx_when_userdate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`abs_date` datetime(6) DEFAULT NULL,
|
|
`rel_date` int(11) DEFAULT NULL,
|
|
`reason` longtext NOT NULL,
|
|
`actor_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`content_date_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `edx_when_userdate_user_id_46e8cc36_fk_auth_user_id` (`user_id`),
|
|
KEY `edx_when_userdate_content_date_id_35c5e2e2_fk_edx_when_` (`content_date_id`),
|
|
KEY `edx_when_userdate_actor_id_cbef1cdc_fk_auth_user_id` (`actor_id`),
|
|
CONSTRAINT `edx_when_userdate_actor_id_cbef1cdc_fk_auth_user_id` FOREIGN KEY (`actor_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `edx_when_userdate_content_date_id_35c5e2e2_fk_edx_when_` FOREIGN KEY (`content_date_id`) REFERENCES `edx_when_contentdate` (`id`),
|
|
CONSTRAINT `edx_when_userdate_user_id_46e8cc36_fk_auth_user_id` 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 `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,
|
|
`is_hidden` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edxval_coursevideo_course_id_video_id_ebd82f35_uniq` (`course_id`,`video_id`),
|
|
KEY `edxval_coursevideo_video_id_85dfcf76_fk_edxval_video_id` (`video_id`),
|
|
CONSTRAINT `edxval_coursevideo_video_id_85dfcf76_fk_edxval_video_id` 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(6) NOT NULL,
|
|
`modified` datetime(6) 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_profile_id_d9f3e086_fk_edxval_profile_id` (`profile_id`),
|
|
KEY `edxval_encodedvideo_video_id_d8857acb_fk_edxval_video_id` (`video_id`),
|
|
CONSTRAINT `edxval_encodedvideo_profile_id_d9f3e086_fk_edxval_profile_id` FOREIGN KEY (`profile_id`) REFERENCES `edxval_profile` (`id`),
|
|
CONSTRAINT `edxval_encodedvideo_video_id_d8857acb_fk_edxval_video_id` 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_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,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `profile_name` (`profile_name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_thirdpartytranscriptcredentialsstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_thirdpartytranscriptcredentialsstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`org` varchar(32) NOT NULL,
|
|
`provider` varchar(20) NOT NULL,
|
|
`exists` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edxval_thirdpartytranscr_org_provider_188f7ddf_uniq` (`org`,`provider`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_transcriptpreference`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_transcriptpreference` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`provider` varchar(20) NOT NULL,
|
|
`cielo24_fidelity` varchar(20) DEFAULT NULL,
|
|
`cielo24_turnaround` varchar(20) DEFAULT NULL,
|
|
`three_play_turnaround` varchar(20) DEFAULT NULL,
|
|
`preferred_languages` longtext NOT NULL,
|
|
`video_source_language` varchar(50) DEFAULT 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 `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,
|
|
`created` datetime(6) NOT NULL,
|
|
`edx_video_id` varchar(100) NOT NULL,
|
|
`client_video_id` varchar(255) NOT NULL,
|
|
`duration` double NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edx_video_id` (`edx_video_id`),
|
|
KEY `edxval_video_client_video_id_2b668312` (`client_video_id`),
|
|
KEY `edxval_video_status_5f33a104` (`status`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_videoimage`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_videoimage` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`image` varchar(500) DEFAULT NULL,
|
|
`generated_images` longtext NOT NULL,
|
|
`course_video_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_video_id` (`course_video_id`),
|
|
CONSTRAINT `edxval_videoimage_course_video_id_06855d34_fk_edxval_co` FOREIGN KEY (`course_video_id`) REFERENCES `edxval_coursevideo` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `edxval_videotranscript`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `edxval_videotranscript` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`transcript` varchar(255) DEFAULT NULL,
|
|
`language_code` varchar(50) NOT NULL,
|
|
`provider` varchar(30) NOT NULL,
|
|
`file_format` varchar(20) NOT NULL,
|
|
`video_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edxval_videotranscript_video_id_language_code_37532906_uniq` (`video_id`,`language_code`),
|
|
KEY `edxval_videotranscript_language_code_d78ce3d1` (`language_code`),
|
|
KEY `edxval_videotranscript_file_format_3adddaf7` (`file_format`),
|
|
CONSTRAINT `edxval_videotranscript_video_id_6ffdfb56_fk_edxval_video_id` 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 `email_marketing_emailmarketingconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `email_marketing_emailmarketingconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`sailthru_key` varchar(32) NOT NULL,
|
|
`sailthru_secret` varchar(32) NOT NULL,
|
|
`sailthru_new_user_list` varchar(48) NOT NULL,
|
|
`sailthru_retry_interval` int(11) NOT NULL,
|
|
`sailthru_max_retries` int(11) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`sailthru_abandoned_cart_delay` int(11) NOT NULL,
|
|
`sailthru_abandoned_cart_template` varchar(20) NOT NULL,
|
|
`sailthru_content_cache_age` int(11) NOT NULL,
|
|
`sailthru_enroll_cost` int(11) NOT NULL,
|
|
`sailthru_enroll_template` varchar(20) NOT NULL,
|
|
`sailthru_get_tags_from_sailthru` tinyint(1) NOT NULL,
|
|
`sailthru_purchase_template` varchar(20) NOT NULL,
|
|
`sailthru_upgrade_template` varchar(20) NOT NULL,
|
|
`sailthru_lms_url_override` varchar(80) NOT NULL,
|
|
`welcome_email_send_delay` int(11) NOT NULL,
|
|
`user_registration_cookie_timeout_delay` double NOT NULL,
|
|
`sailthru_welcome_template` varchar(20) NOT NULL,
|
|
`sailthru_verification_failed_template` varchar(20) NOT NULL,
|
|
`sailthru_verification_passed_template` varchar(20) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `email_marketing_emai_changed_by_id_15ce753b_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `email_marketing_emai_changed_by_id_15ce753b_fk_auth_user` 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_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=251 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,
|
|
`country_id` int(11) NOT NULL,
|
|
`restricted_course_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `embargo_countryaccessrul_restricted_course_id_cou_477b6bb1_uniq` (`restricted_course_id`,`country_id`),
|
|
KEY `embargo_countryacces_country_id_6af33e89_fk_embargo_c` (`country_id`),
|
|
CONSTRAINT `embargo_countryacces_country_id_6af33e89_fk_embargo_c` FOREIGN KEY (`country_id`) REFERENCES `embargo_country` (`id`),
|
|
CONSTRAINT `embargo_countryacces_restricted_course_id_eedb3d21_fk_embargo_r` 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(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`snapshot` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_courseaccessrulehistory_timestamp_0267f0e6` (`timestamp`),
|
|
KEY `embargo_courseaccessrulehistory_course_key_6f7a7a06` (`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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`embargoed_countries` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_embargoedstate_changed_by_id_f7763260_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `embargo_embargoedstate_changed_by_id_f7763260_fk_auth_user_id` 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`whitelist` longtext NOT NULL,
|
|
`blacklist` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `embargo_ipfilter_changed_by_id_39e4eed2_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `embargo_ipfilter_changed_by_id_39e4eed2_fk_auth_user_id` 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,
|
|
`disable_access_check` tinyint(1) 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 `enterprise_enrollmentnotificationemailtemplate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enrollmentnotificationemailtemplate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`plaintext_template` longtext NOT NULL,
|
|
`html_template` longtext NOT NULL,
|
|
`subject_line` varchar(100) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enrollmen_enterprise_customer__df17d9ff_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecourseenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecourseenrollment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`enterprise_customer_user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_enterprisecou_enterprise_customer_user_71fe301a_uniq` (`enterprise_customer_user_id`,`course_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__cf423e59_fk_enterpris` FOREIGN KEY (`enterprise_customer_user_id`) REFERENCES `enterprise_enterprisecustomeruser` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomer` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`enable_data_sharing_consent` tinyint(1) NOT NULL,
|
|
`enforce_data_sharing_consent` varchar(25) NOT NULL,
|
|
`enable_audit_enrollment` tinyint(1) NOT NULL,
|
|
`enable_audit_data_reporting` tinyint(1) NOT NULL,
|
|
`replace_sensitive_sso_username` tinyint(1) NOT NULL,
|
|
`hide_course_original_price` tinyint(1) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
`country` varchar(2) DEFAULT NULL,
|
|
`enable_autocohorting` tinyint(1) NOT NULL,
|
|
`customer_type_id` int(11) NOT NULL,
|
|
`enable_portal_code_management_screen` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`uuid`),
|
|
UNIQUE KEY `enterprise_enterprisecustomer_slug_80411f46_uniq` (`slug`),
|
|
KEY `enterprise_enterprisecustomer_site_id_947ed084_fk_django_site_id` (`site_id`),
|
|
KEY `enterprise_enterpris_customer_type_id_4b1ee315_fk_enterpris` (`customer_type_id`),
|
|
CONSTRAINT `enterprise_enterpris_customer_type_id_4b1ee315_fk_enterpris` FOREIGN KEY (`customer_type_id`) REFERENCES `enterprise_enterprisecustomertype` (`id`),
|
|
CONSTRAINT `enterprise_enterprisecustomer_site_id_947ed084_fk_django_site_id` 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 `enterprise_enterprisecustomerbrandingconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomerbrandingconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`logo` varchar(255) DEFAULT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__09c1ee14_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomercatalog`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomercatalog` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
`content_filter` longtext,
|
|
`title` varchar(255) NOT NULL,
|
|
`enabled_course_modes` longtext NOT NULL,
|
|
`publish_audit_enrollment_urls` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`uuid`),
|
|
KEY `enterprise_enterpris_enterprise_customer__3b4660ad_fk_enterpris` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__3b4660ad_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomerentitlement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomerentitlement` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`entitlement_id` int(10) unsigned NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `entitlement_id` (`entitlement_id`),
|
|
KEY `enterprise_enterpris_enterprise_customer__92784a82_fk_enterpris` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__92784a82_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomeridentityprovider`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomeridentityprovider` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`provider_id` varchar(50) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `provider_id` (`provider_id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__40b39097_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomerreportingconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomerreportingconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`delivery_method` varchar(20) NOT NULL,
|
|
`email` longtext NOT NULL,
|
|
`frequency` varchar(20) NOT NULL,
|
|
`day_of_month` smallint(6) DEFAULT NULL,
|
|
`day_of_week` smallint(6) DEFAULT NULL,
|
|
`hour_of_day` smallint(6) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
`sftp_file_path` varchar(256) DEFAULT NULL,
|
|
`sftp_hostname` varchar(256) DEFAULT NULL,
|
|
`sftp_port` int(10) unsigned DEFAULT NULL,
|
|
`sftp_username` varchar(256) DEFAULT NULL,
|
|
`decrypted_password` longblob,
|
|
`decrypted_sftp_password` longblob,
|
|
`data_type` varchar(20) NOT NULL,
|
|
`report_type` varchar(20) NOT NULL,
|
|
`pgp_encryption_key` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `enterprise_enterprisecustom_enterprise_customer_id_d5b55543` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__d5b55543_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomerreportingconfiguration_enterpricf00`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomerreportingconfiguration_enterpricf00` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`enterprisecustomerreportingconfiguration_id` int(11) NOT NULL,
|
|
`enterprisecustomercatalog_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_enterprisecus_enterprisecustomerreport_cc87ab4c_uniq` (`enterprisecustomerreportingconfiguration_id`,`enterprisecustomercatalog_id`),
|
|
KEY `enterprise_enterpris_enterprisecustomerca_ebdae525_fk_enterpris` (`enterprisecustomercatalog_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprisecustomerca_ebdae525_fk_enterpris` FOREIGN KEY (`enterprisecustomercatalog_id`) REFERENCES `enterprise_enterprisecustomercatalog` (`uuid`),
|
|
CONSTRAINT `enterprise_enterpris_enterprisecustomerre_66147101_fk_enterpris` FOREIGN KEY (`enterprisecustomerreportingconfiguration_id`) REFERENCES `enterprise_enterprisecustomerreportingconfiguration` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisecustomertype`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomertype` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(25) 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 `enterprise_enterprisecustomeruser`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisecustomeruser` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`user_id` int(10) unsigned NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_enterprisecus_enterprise_customer_id_u_ffddc29f_uniq` (`enterprise_customer_id`,`user_id`),
|
|
CONSTRAINT `enterprise_enterpris_enterprise_customer__f0fea924_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisefeaturerole`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisefeaturerole` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_enterprisefeatureuserroleassignment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_enterprisefeatureuserroleassignment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `enterprise_enterpris_role_id_5e8cff42_fk_enterpris` (`role_id`),
|
|
KEY `enterprise_enterpris_user_id_2d335bd4_fk_auth_user` (`user_id`),
|
|
CONSTRAINT `enterprise_enterpris_role_id_5e8cff42_fk_enterpris` FOREIGN KEY (`role_id`) REFERENCES `enterprise_enterprisefeaturerole` (`id`),
|
|
CONSTRAINT `enterprise_enterpris_user_id_2d335bd4_fk_auth_user` 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 `enterprise_historicalenrollmentnotificationemailtemplate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_historicalenrollmentnotificationemailtemplate` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`plaintext_template` longtext NOT NULL,
|
|
`html_template` longtext NOT NULL,
|
|
`subject_line` varchar(100) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `enterprise_historica_history_user_id_f2a6d605_fk_auth_user` (`history_user_id`),
|
|
KEY `enterprise_historicalenroll_id_d4b3fed2` (`id`),
|
|
KEY `enterprise_historicalenroll_enterprise_customer_id_bc826535` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_historica_history_user_id_f2a6d605_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_historicalenterprisecourseenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_historicalenterprisecourseenrollment` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_user_id` int(11) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `enterprise_historica_history_user_id_a7d84786_fk_auth_user` (`history_user_id`),
|
|
KEY `enterprise_historicalenterprisecourseenrollment_id_452a4b04` (`id`),
|
|
KEY `enterprise_historicalenterp_enterprise_customer_user_id_380ecc4e` (`enterprise_customer_user_id`),
|
|
CONSTRAINT `enterprise_historica_history_user_id_a7d84786_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_historicalenterprisecustomer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_historicalenterprisecustomer` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`site_id` int(11) DEFAULT NULL,
|
|
`enable_data_sharing_consent` tinyint(1) NOT NULL,
|
|
`enforce_data_sharing_consent` varchar(25) NOT NULL,
|
|
`enable_audit_enrollment` tinyint(1) NOT NULL,
|
|
`enable_audit_data_reporting` tinyint(1) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`replace_sensitive_sso_username` tinyint(1) NOT NULL,
|
|
`hide_course_original_price` tinyint(1) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
`country` varchar(2) DEFAULT NULL,
|
|
`enable_autocohorting` tinyint(1) NOT NULL,
|
|
`customer_type_id` int(11) DEFAULT NULL,
|
|
`enable_portal_code_management_screen` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `enterprise_historica_history_user_id_bbd9b0d6_fk_auth_user` (`history_user_id`),
|
|
KEY `enterprise_historicalenterprisecustomer_uuid_75c3528e` (`uuid`),
|
|
KEY `enterprise_historicalenterprisecustomer_site_id_2463b5d7` (`site_id`),
|
|
KEY `enterprise_historicalenterprisecustomer_slug_04622dd4` (`slug`),
|
|
KEY `enterprise_historicalenterp_customer_type_id_8fbc8526` (`customer_type_id`),
|
|
CONSTRAINT `enterprise_historica_history_user_id_bbd9b0d6_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_historicalenterprisecustomercatalog`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_historicalenterprisecustomercatalog` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`content_filter` longtext,
|
|
`title` varchar(255) NOT NULL,
|
|
`enabled_course_modes` longtext NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`publish_audit_enrollment_urls` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `enterprise_historica_history_user_id_31eab231_fk_auth_user` (`history_user_id`),
|
|
KEY `enterprise_historicalenterprisecustomercatalog_uuid_42403101` (`uuid`),
|
|
KEY `enterprise_historicalenterp_enterprise_customer_id_664f4480` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_historica_history_user_id_31eab231_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_historicalenterprisecustomerentitlement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_historicalenterprisecustomerentitlement` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`entitlement_id` int(10) unsigned NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `enterprise_historica_history_user_id_f50bc660_fk_auth_user` (`history_user_id`),
|
|
KEY `enterprise_historicalenterprisecustomerentitlement_id_742c345f` (`id`),
|
|
KEY `enterprise_historicalenterp_entitlement_id_fd18cd7b` (`entitlement_id`),
|
|
KEY `enterprise_historicalenterp_enterprise_customer_id_a598c2f4` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_historica_history_user_id_f50bc660_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_pendingenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_pendingenrollment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_mode` varchar(25) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`cohort_name` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_pendingenrollment_user_id_course_id_6d4141c7_uniq` (`user_id`,`course_id`),
|
|
CONSTRAINT `enterprise_pendingen_user_id_12d21b1a_fk_enterpris` FOREIGN KEY (`user_id`) REFERENCES `enterprise_pendingenterprisecustomeruser` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_pendingenterprisecustomeruser`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_pendingenterprisecustomeruser` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`user_email` varchar(254) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_pendingenterp_user_email_5440d1d3_uniq` (`user_email`),
|
|
KEY `enterprise_pendingen_enterprise_customer__a858ce2d_fk_enterpris` (`enterprise_customer_id`),
|
|
CONSTRAINT `enterprise_pendingen_enterprise_customer__a858ce2d_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_systemwideenterpriserole`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_systemwideenterpriserole` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `enterprise_systemwideenterpriseuserroleassignment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enterprise_systemwideenterpriseuserroleassignment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `enterprise_systemwid_role_id_bc7092f0_fk_enterpris` (`role_id`),
|
|
KEY `enterprise_systemwid_user_id_e890aef2_fk_auth_user` (`user_id`),
|
|
CONSTRAINT `enterprise_systemwid_role_id_bc7092f0_fk_enterpris` FOREIGN KEY (`role_id`) REFERENCES `enterprise_systemwideenterpriserole` (`id`),
|
|
CONSTRAINT `enterprise_systemwid_user_id_e890aef2_fk_auth_user` 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 `entitlements_courseentitlement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `entitlements_courseentitlement` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`course_uuid` char(32) NOT NULL,
|
|
`expired_at` datetime(6) DEFAULT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
`order_number` varchar(128) DEFAULT NULL,
|
|
`enrollment_course_run_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`_policy_id` int(11) DEFAULT NULL,
|
|
`refund_locked` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `entitlements_courseentitlement_uuid_2228ffad_uniq` (`uuid`),
|
|
KEY `entitlements_courseentitlement_user_id_a518a225_fk_auth_user_id` (`user_id`),
|
|
KEY `entitlements_coursee_enrollment_course_ru_3fc796af_fk_student_c` (`enrollment_course_run_id`),
|
|
KEY `entitlements_coursee__policy_id_37bd7c13_fk_entitleme` (`_policy_id`),
|
|
CONSTRAINT `entitlements_coursee__policy_id_37bd7c13_fk_entitleme` FOREIGN KEY (`_policy_id`) REFERENCES `entitlements_courseentitlementpolicy` (`id`),
|
|
CONSTRAINT `entitlements_coursee_enrollment_course_ru_3fc796af_fk_student_c` FOREIGN KEY (`enrollment_course_run_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `entitlements_courseentitlement_user_id_a518a225_fk_auth_user_id` 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 `entitlements_courseentitlementpolicy`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `entitlements_courseentitlementpolicy` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`expiration_period` bigint(20) NOT NULL,
|
|
`refund_period` bigint(20) NOT NULL,
|
|
`regain_period` bigint(20) NOT NULL,
|
|
`site_id` int(11) DEFAULT NULL,
|
|
`mode` varchar(32) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `entitlements_coursee_site_id_c7a9e107_fk_django_si` (`site_id`),
|
|
CONSTRAINT `entitlements_coursee_site_id_c7a9e107_fk_django_si` 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 `entitlements_courseentitlementsupportdetail`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `entitlements_courseentitlementsupportdetail` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`reason` varchar(15) NOT NULL,
|
|
`comments` longtext,
|
|
`entitlement_id` int(11) NOT NULL,
|
|
`support_user_id` int(11) NOT NULL,
|
|
`unenrolled_run_id` varchar(255) DEFAULT NULL,
|
|
`action` varchar(15) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `entitlements_coursee_entitlement_id_93b9020b_fk_entitleme` (`entitlement_id`),
|
|
KEY `entitlements_coursee_support_user_id_97d3095e_fk_auth_user` (`support_user_id`),
|
|
KEY `entitlements_courseentitlem_unenrolled_run_id_d72860e3` (`unenrolled_run_id`),
|
|
CONSTRAINT `entitlements_coursee_entitlement_id_93b9020b_fk_entitleme` FOREIGN KEY (`entitlement_id`) REFERENCES `entitlements_courseentitlement` (`id`),
|
|
CONSTRAINT `entitlements_coursee_support_user_id_97d3095e_fk_auth_user` FOREIGN KEY (`support_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `entitlements_historicalcourseentitlement`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `entitlements_historicalcourseentitlement` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`course_uuid` char(32) NOT NULL,
|
|
`expired_at` datetime(6) DEFAULT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
`order_number` varchar(128) DEFAULT NULL,
|
|
`refund_locked` tinyint(1) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`_policy_id` int(11) DEFAULT NULL,
|
|
`enrollment_course_run_id` int(11) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `entitlements_histori_history_user_id_a3bc1823_fk_auth_user` (`history_user_id`),
|
|
KEY `entitlements_historicalcourseentitlement_id_e3740062` (`id`),
|
|
KEY `entitlements_historicalcourseentitlement_uuid_54fd331f` (`uuid`),
|
|
KEY `entitlements_historicalcourseentitlement__policy_id_71c21d43` (`_policy_id`),
|
|
KEY `entitlements_historicalcour_enrollment_course_run_id_1b92719b` (`enrollment_course_run_id`),
|
|
KEY `entitlements_historicalcourseentitlement_user_id_c770997b` (`user_id`),
|
|
CONSTRAINT `entitlements_histori_history_user_id_a3bc1823_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `experiments_experimentdata`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `experiments_experimentdata` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`experiment_id` smallint(5) unsigned NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `experiments_experimentda_user_id_experiment_id_ke_0ff27a32_uniq` (`user_id`,`experiment_id`,`key`),
|
|
KEY `experiments_experimentdata_user_id_experiment_id_15bd1b30_idx` (`user_id`,`experiment_id`),
|
|
KEY `experiments_experimentdata_experiment_id_e816cee5` (`experiment_id`),
|
|
CONSTRAINT `experiments_experimentdata_user_id_bd6f4720_fk_auth_user_id` 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 `experiments_experimentkeyvalue`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `experiments_experimentkeyvalue` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`experiment_id` smallint(5) unsigned NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `experiments_experimentkeyvalue_experiment_id_key_15347f43_uniq` (`experiment_id`,`key`),
|
|
KEY `experiments_experimentkeyvalue_experiment_id_741d1a4b` (`experiment_id`)
|
|
) 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,
|
|
`internal_password` varchar(31) NOT NULL,
|
|
`dtcreated` datetime(6) NOT NULL,
|
|
`dtsignup` datetime(6) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `external_auth_externalau_external_id_external_dom_37deeb0d_uniq` (`external_id`,`external_domain`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `external_auth_externalauthmap_external_id_1144b306` (`external_id`),
|
|
KEY `external_auth_externalauthmap_external_domain_3c55a23b` (`external_domain`),
|
|
KEY `external_auth_externalauthmap_external_email_b44e5a91` (`external_email`),
|
|
KEY `external_auth_externalauthmap_external_name_2b3d1b42` (`external_name`),
|
|
CONSTRAINT `external_auth_externalauthmap_user_id_91b3ca08_fk_auth_user_id` 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 `grades_computegradessetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_computegradessetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`batch_size` int(11) NOT NULL,
|
|
`course_ids` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `grades_computegrades_changed_by_id_f2bf3678_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `grades_computegrades_changed_by_id_f2bf3678_fk_auth_user` 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 `grades_coursepersistentgradesflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_coursepersistentgradesflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `grades_coursepersist_changed_by_id_c8c392d6_fk_auth_user` (`changed_by_id`),
|
|
KEY `grades_coursepersistentgradesflag_course_id_b494f1e7` (`course_id`),
|
|
CONSTRAINT `grades_coursepersist_changed_by_id_c8c392d6_fk_auth_user` 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 `grades_historicalpersistentsubsectiongradeoverride`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_historicalpersistentsubsectiongradeoverride` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`earned_all_override` double DEFAULT NULL,
|
|
`possible_all_override` double DEFAULT NULL,
|
|
`earned_graded_override` double DEFAULT NULL,
|
|
`possible_graded_override` double DEFAULT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`grade_id` bigint(20) unsigned DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`override_reason` varchar(300) DEFAULT NULL,
|
|
`system` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `grades_historicalper_history_user_id_05000562_fk_auth_user` (`history_user_id`),
|
|
KEY `grades_historicalpersistentsubsectiongradeoverride_id_e30d8953` (`id`),
|
|
KEY `grades_historicalpersistent_created_e5fb4d96` (`created`),
|
|
KEY `grades_historicalpersistent_modified_7355e846` (`modified`),
|
|
KEY `grades_historicalpersistent_grade_id_ecfb45cc` (`grade_id`),
|
|
CONSTRAINT `grades_historicalper_history_user_id_05000562_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `grades_persistentcoursegrade`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_persistentcoursegrade` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_edited_timestamp` datetime(6) DEFAULT NULL,
|
|
`course_version` varchar(255) NOT NULL,
|
|
`grading_policy_hash` varchar(255) NOT NULL,
|
|
`percent_grade` double NOT NULL,
|
|
`letter_grade` varchar(255) NOT NULL,
|
|
`passed_timestamp` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `grades_persistentcoursegrade_course_id_user_id_d7b585c9_uniq` (`course_id`,`user_id`),
|
|
KEY `grades_persistentcoursegrade_user_id_b2296589` (`user_id`),
|
|
KEY `grades_persistentcoursegr_passed_timestamp_course_i_27d4396e_idx` (`passed_timestamp`,`course_id`),
|
|
KEY `grades_persistentcoursegrade_modified_course_id_0e2ef09a_idx` (`modified`,`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `grades_persistentgradesenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_persistentgradesenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`enabled_for_all_courses` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `grades_persistentgra_changed_by_id_f80cdad1_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `grades_persistentgra_changed_by_id_f80cdad1_fk_auth_user` 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 `grades_persistentsubsectiongrade`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_persistentsubsectiongrade` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`usage_key` varchar(255) NOT NULL,
|
|
`subtree_edited_timestamp` datetime(6) DEFAULT NULL,
|
|
`course_version` varchar(255) NOT NULL,
|
|
`earned_all` double NOT NULL,
|
|
`possible_all` double NOT NULL,
|
|
`earned_graded` double NOT NULL,
|
|
`possible_graded` double NOT NULL,
|
|
`visible_blocks_hash` varchar(100) NOT NULL,
|
|
`first_attempted` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `grades_persistentsubsect_course_id_user_id_usage__42820224_uniq` (`course_id`,`user_id`,`usage_key`),
|
|
KEY `grades_persistentsub_visible_blocks_hash_20836274_fk_grades_vi` (`visible_blocks_hash`),
|
|
KEY `grades_persistentsubsecti_modified_course_id_usage__80ab6572_idx` (`modified`,`course_id`,`usage_key`),
|
|
KEY `grades_persistentsubsecti_first_attempted_course_id_f59f063c_idx` (`first_attempted`,`course_id`,`user_id`),
|
|
CONSTRAINT `grades_persistentsub_visible_blocks_hash_20836274_fk_grades_vi` FOREIGN KEY (`visible_blocks_hash`) REFERENCES `grades_visibleblocks` (`hashed`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `grades_persistentsubsectiongradeoverride`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_persistentsubsectiongradeoverride` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`earned_all_override` double DEFAULT NULL,
|
|
`possible_all_override` double DEFAULT NULL,
|
|
`earned_graded_override` double DEFAULT NULL,
|
|
`possible_graded_override` double DEFAULT NULL,
|
|
`grade_id` bigint(20) unsigned NOT NULL,
|
|
`override_reason` varchar(300) DEFAULT NULL,
|
|
`system` varchar(100) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `grade_id` (`grade_id`),
|
|
KEY `grades_persistentsubsectiongradeoverride_created_f80819d0` (`created`),
|
|
KEY `grades_persistentsubsectiongradeoverride_modified_21efde2a` (`modified`),
|
|
CONSTRAINT `grades_persistentsub_grade_id_74123016_fk_grades_pe` FOREIGN KEY (`grade_id`) REFERENCES `grades_persistentsubsectiongrade` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `grades_persistentsubsectiongradeoverridehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_persistentsubsectiongradeoverridehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`override_id` int(11) NOT NULL,
|
|
`feature` varchar(32) NOT NULL,
|
|
`action` varchar(32) NOT NULL,
|
|
`comments` varchar(300) DEFAULT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `grades_persistentsub_user_id_2d8efcca_fk_auth_user` (`user_id`),
|
|
KEY `grades_persistentsubsection_override_id_f41bf7c1` (`override_id`),
|
|
KEY `grades_persistentsubsectiongradeoverridehistory_created_d903656e` (`created`),
|
|
CONSTRAINT `grades_persistentsub_user_id_2d8efcca_fk_auth_user` 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 `grades_visibleblocks`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `grades_visibleblocks` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`blocks_json` longtext NOT NULL,
|
|
`hashed` varchar(100) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `hashed` (`hashed`),
|
|
KEY `grades_visibleblocks_course_id_d5f8e206` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `instructor_task_gradereportsetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `instructor_task_gradereportsetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`batch_size` int(11) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `instructor_task_grad_changed_by_id_dae9a995_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `instructor_task_grad_changed_by_id_dae9a995_fk_auth_user` 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 `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,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`subtasks` longtext NOT NULL,
|
|
`requester_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `instructor_task_inst_requester_id_307f955d_fk_auth_user` (`requester_id`),
|
|
KEY `instructor_task_instructortask_task_type_cefe183d` (`task_type`),
|
|
KEY `instructor_task_instructortask_course_id_b160f709` (`course_id`),
|
|
KEY `instructor_task_instructortask_task_key_c1af3961` (`task_key`),
|
|
KEY `instructor_task_instructortask_task_id_4aa92d04` (`task_id`),
|
|
KEY `instructor_task_instructortask_task_state_3ee4e9cb` (`task_state`),
|
|
CONSTRAINT `instructor_task_inst_requester_id_307f955d_fk_auth_user` 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 `integrated_channel_contentmetadataitemtransmission`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `integrated_channel_contentmetadataitemtransmission` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`integrated_channel_code` varchar(30) NOT NULL,
|
|
`content_id` varchar(255) NOT NULL,
|
|
`channel_metadata` longtext NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `integrated_channel_conte_enterprise_customer_id_i_44ca3772_uniq` (`enterprise_customer_id`,`integrated_channel_code`,`content_id`),
|
|
CONSTRAINT `integrated_channel_c_enterprise_customer__f6439bfb_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `integrated_channel_learnerdatatransmissionaudit`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `integrated_channel_learnerdatatransmissionaudit` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`enterprise_course_enrollment_id` int(10) unsigned NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_completed` tinyint(1) NOT NULL,
|
|
`completed_timestamp` bigint(20) NOT NULL,
|
|
`instructor_name` varchar(255) NOT NULL,
|
|
`grade` varchar(100) NOT NULL,
|
|
`status` varchar(100) NOT NULL,
|
|
`error_message` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`disabled_blocks` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `lms_xblock_xblockasi_changed_by_id_71928be3_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `lms_xblock_xblockasi_changed_by_id_71928be3_fk_auth_user` 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 `lti_provider_gradedassignment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `lti_provider_gradedassignment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`usage_key` varchar(255) NOT NULL,
|
|
`lis_result_sourcedid` varchar(255) NOT NULL,
|
|
`version_number` int(11) NOT NULL,
|
|
`outcome_service_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `lti_provider_gradedassig_outcome_service_id_lis_r_12a00643_uniq` (`outcome_service_id`,`lis_result_sourcedid`),
|
|
KEY `lti_provider_gradedassignment_course_key_1b6d1469` (`course_key`),
|
|
KEY `lti_provider_gradedassignment_usage_key_161dd3bb` (`usage_key`),
|
|
KEY `lti_provider_gradedassignment_lis_result_sourcedid_30c964e4` (`lis_result_sourcedid`),
|
|
KEY `lti_provider_gradedassignment_user_id_c45f47d4_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `lti_provider_gradeda_outcome_service_id_6f93cb3a_fk_lti_provi` FOREIGN KEY (`outcome_service_id`) REFERENCES `lti_provider_outcomeservice` (`id`),
|
|
CONSTRAINT `lti_provider_gradedassignment_user_id_c45f47d4_fk_auth_user_id` 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 `lti_provider_lticonsumer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `lti_provider_lticonsumer` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`consumer_name` varchar(255) NOT NULL,
|
|
`consumer_key` varchar(32) NOT NULL,
|
|
`consumer_secret` varchar(32) NOT NULL,
|
|
`instance_guid` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `consumer_name` (`consumer_name`),
|
|
UNIQUE KEY `consumer_key` (`consumer_key`),
|
|
UNIQUE KEY `consumer_secret` (`consumer_secret`),
|
|
UNIQUE KEY `instance_guid` (`instance_guid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `lti_provider_ltiuser`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `lti_provider_ltiuser` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`lti_user_id` varchar(255) NOT NULL,
|
|
`edx_user_id` int(11) NOT NULL,
|
|
`lti_consumer_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `edx_user_id` (`edx_user_id`),
|
|
UNIQUE KEY `lti_provider_ltiuser_lti_consumer_id_lti_user_id_d684c543_uniq` (`lti_consumer_id`,`lti_user_id`),
|
|
CONSTRAINT `lti_provider_ltiuser_edx_user_id_e06b2db5_fk_auth_user_id` FOREIGN KEY (`edx_user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `lti_provider_ltiuser_lti_consumer_id_c1b42ee3_fk_lti_provi` FOREIGN KEY (`lti_consumer_id`) REFERENCES `lti_provider_lticonsumer` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `lti_provider_outcomeservice`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `lti_provider_outcomeservice` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`lis_outcome_service_url` varchar(255) NOT NULL,
|
|
`lti_consumer_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `lis_outcome_service_url` (`lis_outcome_service_url`),
|
|
KEY `lti_provider_outcome_lti_consumer_id_eb82db58_fk_lti_provi` (`lti_consumer_id`),
|
|
CONSTRAINT `lti_provider_outcome_lti_consumer_id_eb82db58_fk_lti_provi` FOREIGN KEY (`lti_consumer_id`) REFERENCES `lti_provider_lticonsumer` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `microsite_configuration_microsite`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `microsite_configuration_microsite` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`key` varchar(63) NOT NULL,
|
|
`values` longtext NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `key` (`key`),
|
|
UNIQUE KEY `site_id` (`site_id`),
|
|
CONSTRAINT `microsite_configurat_site_id_72d3779d_fk_django_si` 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 `microsite_configuration_micrositehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `microsite_configuration_micrositehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`key` varchar(63) NOT NULL,
|
|
`values` longtext NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `microsite_configuration_micrositehistory_key_08571e17` (`key`),
|
|
KEY `microsite_configuration_micrositehistory_site_id_30b65af1` (`site_id`),
|
|
CONSTRAINT `microsite_configurat_site_id_30b65af1_fk_django_si` 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 `microsite_configuration_micrositeorganizationmapping`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `microsite_configuration_micrositeorganizationmapping` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`organization` varchar(63) NOT NULL,
|
|
`microsite_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `organization` (`organization`),
|
|
KEY `microsite_configurat_microsite_id_82aaeb2c_fk_microsite` (`microsite_id`),
|
|
CONSTRAINT `microsite_configurat_microsite_id_82aaeb2c_fk_microsite` FOREIGN KEY (`microsite_id`) REFERENCES `microsite_configuration_microsite` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `microsite_configuration_micrositetemplate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `microsite_configuration_micrositetemplate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`template_uri` varchar(255) NOT NULL,
|
|
`template` longtext NOT NULL,
|
|
`microsite_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `microsite_configuration__microsite_id_template_ur_c346fbe0_uniq` (`microsite_id`,`template_uri`),
|
|
KEY `microsite_configuration_micrositetemplate_template_uri_6669f3eb` (`template_uri`),
|
|
CONSTRAINT `microsite_configurat_microsite_id_4ad4de72_fk_microsite` FOREIGN KEY (`microsite_id`) REFERENCES `microsite_configuration_microsite` (`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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`content_id` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
`milestone_relationship_type_id` int(11) NOT NULL,
|
|
`requirements` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_coursecontent_course_id_content_id_mil_7caa5ba5_uniq` (`course_id`,`content_id`,`milestone_id`),
|
|
KEY `milestones_coursecontentmilestone_course_id_6fd3fad0` (`course_id`),
|
|
KEY `milestones_coursecontentmilestone_content_id_21f4c95f` (`content_id`),
|
|
KEY `milestones_coursecon_milestone_id_bd7a608b_fk_milestone` (`milestone_id`),
|
|
KEY `milestones_coursecon_milestone_relationsh_31556ebf_fk_milestone` (`milestone_relationship_type_id`),
|
|
KEY `milestones_coursecontentmilestone_active_b7ab709d` (`active`),
|
|
CONSTRAINT `milestones_coursecon_milestone_id_bd7a608b_fk_milestone` FOREIGN KEY (`milestone_id`) REFERENCES `milestones_milestone` (`id`),
|
|
CONSTRAINT `milestones_coursecon_milestone_relationsh_31556ebf_fk_milestone` FOREIGN KEY (`milestone_relationship_type_id`) REFERENCES `milestones_milestonerelationshiptype` (`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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
`milestone_relationship_type_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_coursemilestone_course_id_milestone_id_36b21ae8_uniq` (`course_id`,`milestone_id`),
|
|
KEY `milestones_coursemilestone_course_id_ce46a0fc` (`course_id`),
|
|
KEY `milestones_coursemil_milestone_id_03d9ef01_fk_milestone` (`milestone_id`),
|
|
KEY `milestones_coursemil_milestone_relationsh_6c64b782_fk_milestone` (`milestone_relationship_type_id`),
|
|
KEY `milestones_coursemilestone_active_c590442e` (`active`),
|
|
CONSTRAINT `milestones_coursemil_milestone_id_03d9ef01_fk_milestone` FOREIGN KEY (`milestone_id`) REFERENCES `milestones_milestone` (`id`),
|
|
CONSTRAINT `milestones_coursemil_milestone_relationsh_6c64b782_fk_milestone` FOREIGN KEY (`milestone_relationship_type_id`) REFERENCES `milestones_milestonerelationshiptype` (`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(6) NOT NULL,
|
|
`modified` datetime(6) 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_name_0b80f867_uniq` (`namespace`,`name`),
|
|
KEY `milestones_milestone_namespace_a8e8807c` (`namespace`),
|
|
KEY `milestones_milestone_name_23fb0698` (`name`),
|
|
KEY `milestones_milestone_active_9a6c1703` (`active`)
|
|
) 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(6) NOT NULL,
|
|
`modified` datetime(6) 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`source` longtext NOT NULL,
|
|
`collected` datetime(6) DEFAULT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`milestone_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `milestones_usermilestone_user_id_milestone_id_02197f01_uniq` (`user_id`,`milestone_id`),
|
|
KEY `milestones_usermiles_milestone_id_f90f9430_fk_milestone` (`milestone_id`),
|
|
KEY `milestones_usermilestone_user_id_b3e9aef4` (`user_id`),
|
|
KEY `milestones_usermilestone_active_93a18e7f` (`active`),
|
|
CONSTRAINT `milestones_usermiles_milestone_id_f90f9430_fk_milestone` 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_appversionconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `mobile_api_appversionconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`platform` varchar(50) NOT NULL,
|
|
`version` varchar(50) NOT NULL,
|
|
`major_version` int(11) NOT NULL,
|
|
`minor_version` int(11) NOT NULL,
|
|
`patch_version` int(11) NOT NULL,
|
|
`expire_at` datetime(6) DEFAULT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`updated_at` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `mobile_api_appversionconfig_platform_version_6b577430_uniq` (`platform`,`version`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `mobile_api_ignoremobileavailableflagconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `mobile_api_ignoremobileavailableflagconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `mobile_api_ignoremob_changed_by_id_4ca9c0d6_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `mobile_api_ignoremob_changed_by_id_4ca9c0d6_fk_auth_user` 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 `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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`video_profiles` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `mobile_api_mobileapi_changed_by_id_8799981a_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `mobile_api_mobileapi_changed_by_id_8799981a_fk_auth_user` 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 `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,
|
|
`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(6) DEFAULT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notes_note_user_id_be6c80b4_fk_auth_user_id` (`user_id`),
|
|
KEY `notes_note_course_id_ab1355f9` (`course_id`),
|
|
KEY `notes_note_uri_f9ed526c` (`uri`),
|
|
KEY `notes_note_created_50dd44ea` (`created`),
|
|
KEY `notes_note_updated_f2abc1a5` (`updated`),
|
|
CONSTRAINT `notes_note_user_id_be6c80b4_fk_auth_user_id` 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_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,
|
|
`message` longtext NOT NULL,
|
|
`url` varchar(200) DEFAULT NULL,
|
|
`is_viewed` tinyint(1) NOT NULL,
|
|
`is_emailed` tinyint(1) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`subscription_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notify_notification_subscription_id_0eae0084_fk_notify_su` (`subscription_id`),
|
|
CONSTRAINT `notify_notification_subscription_id_0eae0084_fk_notify_su` FOREIGN KEY (`subscription_id`) REFERENCES `notify_subscription` (`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_notificationt_content_type_id_f575bac5_fk_django_co` (`content_type_id`),
|
|
CONSTRAINT `notify_notificationt_content_type_id_f575bac5_fk_django_co` 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,
|
|
`interval` smallint(6) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `notify_settings_user_id_088ebffc_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `notify_settings_user_id_088ebffc_fk_auth_user_id` 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` (
|
|
`subscription_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`object_id` varchar(64) DEFAULT NULL,
|
|
`send_emails` tinyint(1) NOT NULL,
|
|
`notification_type_id` varchar(128) NOT NULL,
|
|
`settings_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`subscription_id`),
|
|
KEY `notify_subscription_notification_type_id_f73a8b13_fk_notify_no` (`notification_type_id`),
|
|
KEY `notify_subscription_settings_id_dbc3961d_fk_notify_settings_id` (`settings_id`),
|
|
CONSTRAINT `notify_subscription_notification_type_id_f73a8b13_fk_notify_no` FOREIGN KEY (`notification_type_id`) REFERENCES `notify_notificationtype` (`key`),
|
|
CONSTRAINT `notify_subscription_settings_id_dbc3961d_fk_notify_settings_id` 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,
|
|
`token` varchar(255) NOT NULL,
|
|
`expires` datetime(6) NOT NULL,
|
|
`scope` int(11) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_accesstoken_token_24468552` (`token`),
|
|
KEY `oauth2_accesstoken_client_id_e5c1beda_fk_oauth2_client_id` (`client_id`),
|
|
KEY `oauth2_accesstoken_user_id_bcf4c395_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_accesstoken_client_id_e5c1beda_fk_oauth2_client_id` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `oauth2_accesstoken_user_id_bcf4c395_fk_auth_user_id` 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,
|
|
`name` varchar(255) NOT NULL,
|
|
`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,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`logout_uri` varchar(200) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_client_user_id_21c89c78_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_client_user_id_21c89c78_fk_auth_user_id` 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,
|
|
`code` varchar(255) NOT NULL,
|
|
`expires` datetime(6) NOT NULL,
|
|
`redirect_uri` varchar(255) NOT NULL,
|
|
`scope` int(11) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`nonce` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth2_grant_user_id_d8248ea3_fk_auth_user_id` (`user_id`),
|
|
KEY `oauth2_grant_client_id_code_expires_d1606e16_idx` (`client_id`,`code`,`expires`),
|
|
CONSTRAINT `oauth2_grant_client_id_430bbcf7_fk_oauth2_client_id` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `oauth2_grant_user_id_d8248ea3_fk_auth_user_id` 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_accesstoken`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_provider_accesstoken` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`token` varchar(255) NOT NULL,
|
|
`expires` datetime(6) NOT NULL,
|
|
`scope` longtext NOT NULL,
|
|
`application_id` bigint(20) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`source_refresh_token_id` bigint(20) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `oauth2_provider_accesstoken_token_8af090f8_uniq` (`token`),
|
|
UNIQUE KEY `source_refresh_token_id` (`source_refresh_token_id`),
|
|
KEY `oauth2_provider_accesstoken_user_id_6e4c9a65_fk_auth_user_id` (`user_id`),
|
|
KEY `oauth2_provider_accesstoken_application_id_b22886e1_fk` (`application_id`),
|
|
CONSTRAINT `oauth2_provider_acce_source_refresh_token_e66fbc72_fk_oauth2_pr` FOREIGN KEY (`source_refresh_token_id`) REFERENCES `oauth2_provider_refreshtoken` (`id`),
|
|
CONSTRAINT `oauth2_provider_accesstoken_application_id_b22886e1_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
|
|
CONSTRAINT `oauth2_provider_accesstoken_user_id_6e4c9a65_fk_auth_user_id` 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_application`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_provider_application` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`client_id` varchar(100) NOT NULL,
|
|
`redirect_uris` longtext NOT NULL,
|
|
`client_type` varchar(32) NOT NULL,
|
|
`authorization_grant_type` varchar(32) NOT NULL,
|
|
`client_secret` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
`skip_authorization` tinyint(1) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `client_id` (`client_id`),
|
|
KEY `oauth2_provider_application_client_secret_53133678` (`client_secret`),
|
|
KEY `oauth2_provider_application_user_id_79829054_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_provider_application_user_id_79829054_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth2_provider_grant`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_provider_grant` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`code` varchar(255) NOT NULL,
|
|
`expires` datetime(6) NOT NULL,
|
|
`redirect_uri` varchar(255) NOT NULL,
|
|
`scope` longtext NOT NULL,
|
|
`application_id` bigint(20) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `oauth2_provider_grant_code_49ab4ddf_uniq` (`code`),
|
|
KEY `oauth2_provider_grant_application_id_81923564_fk` (`application_id`),
|
|
KEY `oauth2_provider_grant_user_id_e8f62af8_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_provider_grant_application_id_81923564_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
|
|
CONSTRAINT `oauth2_provider_grant_user_id_e8f62af8_fk_auth_user_id` 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_refreshtoken`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth2_provider_refreshtoken` (
|
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
|
`token` varchar(255) NOT NULL,
|
|
`access_token_id` bigint(20) DEFAULT NULL,
|
|
`application_id` bigint(20) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`revoked` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `access_token_id` (`access_token_id`),
|
|
UNIQUE KEY `oauth2_provider_refreshtoken_token_revoked_af8a5134_uniq` (`token`,`revoked`),
|
|
KEY `oauth2_provider_refreshtoken_application_id_2d1c311b_fk` (`application_id`),
|
|
KEY `oauth2_provider_refreshtoken_user_id_da837fce_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_provider_refr_access_token_id_775e84e8_fk_oauth2_pr` FOREIGN KEY (`access_token_id`) REFERENCES `oauth2_provider_accesstoken` (`id`),
|
|
CONSTRAINT `oauth2_provider_refreshtoken_application_id_2d1c311b_fk` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
|
|
CONSTRAINT `oauth2_provider_refreshtoken_user_id_da837fce_fk_auth_user_id` 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_trus_client_id_01d81d1c_fk_oauth2_cl` (`client_id`),
|
|
CONSTRAINT `oauth2_provider_trus_client_id_01d81d1c_fk_oauth2_cl` 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,
|
|
`token` varchar(255) NOT NULL,
|
|
`expired` tinyint(1) NOT NULL,
|
|
`access_token_id` int(11) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `access_token_id` (`access_token_id`),
|
|
KEY `oauth2_refreshtoken_client_id_22c52347_fk_oauth2_client_id` (`client_id`),
|
|
KEY `oauth2_refreshtoken_user_id_3d206436_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth2_refreshtoken_access_token_id_4302e339_fk_oauth2_ac` FOREIGN KEY (`access_token_id`) REFERENCES `oauth2_accesstoken` (`id`),
|
|
CONSTRAINT `oauth2_refreshtoken_client_id_22c52347_fk_oauth2_client_id` FOREIGN KEY (`client_id`) REFERENCES `oauth2_client` (`id`),
|
|
CONSTRAINT `oauth2_refreshtoken_user_id_3d206436_fk_auth_user_id` 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 `oauth_dispatch_applicationaccess`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_dispatch_applicationaccess` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`scopes` varchar(825) NOT NULL,
|
|
`application_id` bigint(20) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `application_id` (`application_id`),
|
|
CONSTRAINT `oauth_dispatch_appli_application_id_dcddee6e_fk_oauth2_pr` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth_dispatch_applicationorganization`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_dispatch_applicationorganization` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`relation_type` varchar(32) NOT NULL,
|
|
`application_id` bigint(20) NOT NULL,
|
|
`organization_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `oauth_dispatch_applicati_application_id_relation__1b4017f2_uniq` (`application_id`,`relation_type`,`organization_id`),
|
|
KEY `oauth_dispatch_appli_organization_id_fe63a7f2_fk_organizat` (`organization_id`),
|
|
CONSTRAINT `oauth_dispatch_appli_application_id_dea619c6_fk_oauth2_pr` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`),
|
|
CONSTRAINT `oauth_dispatch_appli_organization_id_fe63a7f2_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth_dispatch_restrictedapplication`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_dispatch_restrictedapplication` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`application_id` bigint(20) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth_dispatch_restr_application_id_6b8d0930_fk_oauth2_pr` (`application_id`),
|
|
CONSTRAINT `oauth_dispatch_restr_application_id_6b8d0930_fk_oauth2_pr` FOREIGN KEY (`application_id`) REFERENCES `oauth2_provider_application` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth_provider_consumer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_provider_consumer` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`description` longtext NOT NULL,
|
|
`key` varchar(256) NOT NULL,
|
|
`secret` varchar(16) NOT NULL,
|
|
`status` smallint(6) NOT NULL,
|
|
`xauth_allowed` tinyint(1) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth_provider_consumer_user_id_90ce7b49_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth_provider_consumer_user_id_90ce7b49_fk_auth_user_id` 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 `oauth_provider_nonce`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_provider_nonce` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`token_key` varchar(32) NOT NULL,
|
|
`consumer_key` varchar(256) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`timestamp` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth_provider_nonce_timestamp_b8e8504f` (`timestamp`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth_provider_scope`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_provider_scope` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`url` longtext NOT NULL,
|
|
`is_readonly` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `oauth_provider_token`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `oauth_provider_token` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`key` varchar(32) DEFAULT NULL,
|
|
`secret` varchar(16) DEFAULT NULL,
|
|
`token_type` smallint(6) NOT NULL,
|
|
`timestamp` int(11) NOT NULL,
|
|
`is_approved` tinyint(1) NOT NULL,
|
|
`verifier` varchar(10) NOT NULL,
|
|
`callback` varchar(2083) DEFAULT NULL,
|
|
`callback_confirmed` tinyint(1) NOT NULL,
|
|
`consumer_id` int(11) NOT NULL,
|
|
`scope_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `oauth_provider_token_consumer_id_419f9c5c_fk_oauth_pro` (`consumer_id`),
|
|
KEY `oauth_provider_token_scope_id_20fc31eb_fk_oauth_pro` (`scope_id`),
|
|
KEY `oauth_provider_token_user_id_6e750fab_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `oauth_provider_token_consumer_id_419f9c5c_fk_oauth_pro` FOREIGN KEY (`consumer_id`) REFERENCES `oauth_provider_consumer` (`id`),
|
|
CONSTRAINT `oauth_provider_token_scope_id_20fc31eb_fk_oauth_pro` FOREIGN KEY (`scope_id`) REFERENCES `oauth_provider_scope` (`id`),
|
|
CONSTRAINT `oauth_provider_token_user_id_6e750fab_fk_auth_user_id` 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 `organizations_historicalorganization`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `organizations_historicalorganization` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`short_name` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
`logo` longtext,
|
|
`active` tinyint(1) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `organizations_histor_history_user_id_bb516493_fk_auth_user` (`history_user_id`),
|
|
KEY `organizations_historicalorganization_id_4327d8f9` (`id`),
|
|
KEY `organizations_historicalorganization_name_5f4e354b` (`name`),
|
|
KEY `organizations_historicalorganization_short_name_07087b46` (`short_name`),
|
|
CONSTRAINT `organizations_histor_history_user_id_bb516493_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `organizations_organization`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `organizations_organization` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`short_name` varchar(255) NOT NULL,
|
|
`description` longtext,
|
|
`logo` varchar(255) DEFAULT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `organizations_organization_name_71edc74b` (`name`),
|
|
KEY `organizations_organization_short_name_ef338963` (`short_name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `organizations_organizationcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `organizations_organizationcourse` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`organization_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `organizations_organizati_course_id_organization_i_06b1db31_uniq` (`course_id`,`organization_id`),
|
|
KEY `organizations_organi_organization_id_99e77fe0_fk_organizat` (`organization_id`),
|
|
KEY `organizations_organizationcourse_course_id_227b73bc` (`course_id`),
|
|
CONSTRAINT `organizations_organi_organization_id_99e77fe0_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `problem_builder_answer`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `problem_builder_answer` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(50) NOT NULL,
|
|
`student_id` varchar(32) NOT NULL,
|
|
`student_input` longtext NOT NULL,
|
|
`created_on` datetime(6) NOT NULL,
|
|
`modified_on` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `problem_builder_answer_student_id_course_key_name_eaac343f_uniq` (`student_id`,`course_key`,`name`),
|
|
KEY `problem_builder_answer_name_af0a2a0d` (`name`),
|
|
KEY `problem_builder_answer_student_id_8b0fa669` (`student_id`),
|
|
KEY `problem_builder_answer_course_key_41ccad30` (`course_key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `problem_builder_share`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `problem_builder_share` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`submission_uid` varchar(32) NOT NULL,
|
|
`block_id` varchar(255) NOT NULL,
|
|
`notified` tinyint(1) NOT NULL,
|
|
`shared_by_id` int(11) NOT NULL,
|
|
`shared_with_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `problem_builder_share_shared_by_id_shared_with_812f19a2_uniq` (`shared_by_id`,`shared_with_id`,`block_id`),
|
|
KEY `problem_builder_share_shared_with_id_acab4570_fk_auth_user_id` (`shared_with_id`),
|
|
KEY `problem_builder_share_block_id_6f0dc5f7` (`block_id`),
|
|
KEY `problem_builder_share_notified_ad79eba9` (`notified`),
|
|
CONSTRAINT `problem_builder_share_shared_by_id_0b75382c_fk_auth_user_id` FOREIGN KEY (`shared_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `problem_builder_share_shared_with_id_acab4570_fk_auth_user_id` FOREIGN KEY (`shared_with_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `proctoring_proctoredexam`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexam` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`content_id` varchar(255) NOT NULL,
|
|
`external_id` varchar(255) DEFAULT NULL,
|
|
`exam_name` longtext NOT NULL,
|
|
`time_limit_mins` int(11) NOT NULL,
|
|
`due_date` datetime(6) DEFAULT NULL,
|
|
`is_proctored` tinyint(1) NOT NULL,
|
|
`is_practice_exam` tinyint(1) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`hide_after_due` tinyint(1) NOT NULL,
|
|
`backend` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `proctoring_proctoredexam_course_id_content_id_1d8358cc_uniq` (`course_id`,`content_id`),
|
|
KEY `proctoring_proctoredexam_course_id_8787b34f` (`course_id`),
|
|
KEY `proctoring_proctoredexam_content_id_13d3bec4` (`content_id`),
|
|
KEY `proctoring_proctoredexam_external_id_0181c110` (`external_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `proctoring_proctoredexamreviewpolicy`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamreviewpolicy` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`review_policy` longtext NOT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`set_by_user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_proctored_exam_id_57f9ce30_fk_proctorin` (`proctored_exam_id`),
|
|
KEY `proctoring_proctored_set_by_user_id_7c101300_fk_auth_user` (`set_by_user_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_57f9ce30_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_set_by_user_id_7c101300_fk_auth_user` FOREIGN KEY (`set_by_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `proctoring_proctoredexamreviewpolicyhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamreviewpolicyhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`original_id` int(11) NOT NULL,
|
|
`review_policy` longtext NOT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`set_by_user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_proctored_exam_id_8126b616_fk_proctorin` (`proctored_exam_id`),
|
|
KEY `proctoring_proctored_set_by_user_id_42ce126e_fk_auth_user` (`set_by_user_id`),
|
|
KEY `proctoring_proctoredexamreviewpolicyhistory_original_id_ca04913d` (`original_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_8126b616_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_set_by_user_id_42ce126e_fk_auth_user` FOREIGN KEY (`set_by_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `proctoring_proctoredexamsoftwaresecurereview`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamsoftwaresecurereview` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`attempt_code` varchar(255) NOT NULL,
|
|
`review_status` varchar(255) NOT NULL,
|
|
`raw_data` longtext NOT NULL,
|
|
`video_url` longtext NOT NULL,
|
|
`exam_id` int(11) DEFAULT NULL,
|
|
`reviewed_by_id` int(11) DEFAULT NULL,
|
|
`student_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `proctoring_proctoredexam_attempt_code_706d3717_uniq` (`attempt_code`),
|
|
KEY `proctoring_proctored_exam_id_ea6095a3_fk_proctorin` (`exam_id`),
|
|
KEY `proctoring_proctored_reviewed_by_id_546b4204_fk_auth_user` (`reviewed_by_id`),
|
|
KEY `proctoring_proctored_student_id_7e197288_fk_auth_user` (`student_id`),
|
|
CONSTRAINT `proctoring_proctored_exam_id_ea6095a3_fk_proctorin` FOREIGN KEY (`exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_reviewed_by_id_546b4204_fk_auth_user` FOREIGN KEY (`reviewed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `proctoring_proctored_student_id_7e197288_fk_auth_user` 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 `proctoring_proctoredexamsoftwaresecurereviewhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamsoftwaresecurereviewhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`attempt_code` varchar(255) NOT NULL,
|
|
`review_status` varchar(255) NOT NULL,
|
|
`raw_data` longtext NOT NULL,
|
|
`video_url` longtext NOT NULL,
|
|
`exam_id` int(11) DEFAULT NULL,
|
|
`reviewed_by_id` int(11) DEFAULT NULL,
|
|
`student_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_exam_id_380d8588_fk_proctorin` (`exam_id`),
|
|
KEY `proctoring_proctored_reviewed_by_id_bb993b3a_fk_auth_user` (`reviewed_by_id`),
|
|
KEY `proctoring_proctored_student_id_97a63653_fk_auth_user` (`student_id`),
|
|
KEY `proctoring_proctoredexamsof_attempt_code_695faa63` (`attempt_code`),
|
|
CONSTRAINT `proctoring_proctored_exam_id_380d8588_fk_proctorin` FOREIGN KEY (`exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_reviewed_by_id_bb993b3a_fk_auth_user` FOREIGN KEY (`reviewed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `proctoring_proctored_student_id_97a63653_fk_auth_user` 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 `proctoring_proctoredexamstudentallowance`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamstudentallowance` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` varchar(255) NOT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `proctoring_proctoredexam_user_id_proctored_exam_i_56de5b8f_uniq` (`user_id`,`proctored_exam_id`,`key`),
|
|
KEY `proctoring_proctored_proctored_exam_id_9baf5a64_fk_proctorin` (`proctored_exam_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_9baf5a64_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_user_id_f21ce9b6_fk_auth_user` 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 `proctoring_proctoredexamstudentallowancehistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamstudentallowancehistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`allowance_id` int(11) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` varchar(255) NOT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_proctored_exam_id_a4c8237c_fk_proctorin` (`proctored_exam_id`),
|
|
KEY `proctoring_proctored_user_id_29b863c1_fk_auth_user` (`user_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_a4c8237c_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_user_id_29b863c1_fk_auth_user` 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 `proctoring_proctoredexamstudentattempt`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamstudentattempt` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`started_at` datetime(6) DEFAULT NULL,
|
|
`completed_at` datetime(6) DEFAULT NULL,
|
|
`last_poll_timestamp` datetime(6) DEFAULT NULL,
|
|
`last_poll_ipaddr` varchar(32) DEFAULT NULL,
|
|
`attempt_code` varchar(255) DEFAULT NULL,
|
|
`external_id` varchar(255) DEFAULT NULL,
|
|
`allowed_time_limit_mins` int(11) DEFAULT NULL,
|
|
`status` varchar(64) NOT NULL,
|
|
`taking_as_proctored` tinyint(1) NOT NULL,
|
|
`is_sample_attempt` tinyint(1) NOT NULL,
|
|
`student_name` varchar(255) NOT NULL,
|
|
`review_policy_id` int(11) DEFAULT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`is_status_acknowledged` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `proctoring_proctoredexam_user_id_proctored_exam_i_1464b206_uniq` (`user_id`,`proctored_exam_id`),
|
|
KEY `proctoring_proctored_proctored_exam_id_0732c688_fk_proctorin` (`proctored_exam_id`),
|
|
KEY `proctoring_proctoredexamstudentattempt_attempt_code_b10ad854` (`attempt_code`),
|
|
KEY `proctoring_proctoredexamstudentattempt_external_id_9c302af3` (`external_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_0732c688_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_user_id_2b58b7ed_fk_auth_user` 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 `proctoring_proctoredexamstudentattemptcomment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamstudentattemptcomment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`start_time` int(11) NOT NULL,
|
|
`stop_time` int(11) NOT NULL,
|
|
`duration` int(11) NOT NULL,
|
|
`comment` longtext NOT NULL,
|
|
`status` varchar(255) NOT NULL,
|
|
`review_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_review_id_7f4eec67_fk_proctorin` (`review_id`),
|
|
CONSTRAINT `proctoring_proctored_review_id_7f4eec67_fk_proctorin` FOREIGN KEY (`review_id`) REFERENCES `proctoring_proctoredexamsoftwaresecurereview` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `proctoring_proctoredexamstudentattempthistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `proctoring_proctoredexamstudentattempthistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`attempt_id` int(11) DEFAULT NULL,
|
|
`started_at` datetime(6) DEFAULT NULL,
|
|
`completed_at` datetime(6) DEFAULT NULL,
|
|
`attempt_code` varchar(255) DEFAULT NULL,
|
|
`external_id` varchar(255) DEFAULT NULL,
|
|
`allowed_time_limit_mins` int(11) DEFAULT NULL,
|
|
`status` varchar(64) NOT NULL,
|
|
`taking_as_proctored` tinyint(1) NOT NULL,
|
|
`is_sample_attempt` tinyint(1) NOT NULL,
|
|
`student_name` varchar(255) NOT NULL,
|
|
`review_policy_id` int(11) DEFAULT NULL,
|
|
`last_poll_timestamp` datetime(6) DEFAULT NULL,
|
|
`last_poll_ipaddr` varchar(32) DEFAULT NULL,
|
|
`proctored_exam_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `proctoring_proctored_proctored_exam_id_72c6f4ab_fk_proctorin` (`proctored_exam_id`),
|
|
KEY `proctoring_proctored_user_id_52fb8674_fk_auth_user` (`user_id`),
|
|
KEY `proctoring_proctoredexamstu_attempt_code_8db28074` (`attempt_code`),
|
|
KEY `proctoring_proctoredexamstu_external_id_65de5faf` (`external_id`),
|
|
CONSTRAINT `proctoring_proctored_proctored_exam_id_72c6f4ab_fk_proctorin` FOREIGN KEY (`proctored_exam_id`) REFERENCES `proctoring_proctoredexam` (`id`),
|
|
CONSTRAINT `proctoring_proctored_user_id_52fb8674_fk_auth_user` 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 `program_enrollments_historicalprogramcourseenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `program_enrollments_historicalprogramcourseenrollment` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`status` varchar(9) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`course_enrollment_id` int(11) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`program_enrollment_id` int(11) DEFAULT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `program_enrollments__history_user_id_428d002e_fk_auth_user` (`history_user_id`),
|
|
KEY `program_enrollments_histori_id_fe3a72a7` (`id`),
|
|
KEY `program_enrollments_histori_course_id_56a725cb` (`course_id`),
|
|
KEY `program_enrollments_histori_course_enrollment_id_4014ff73` (`course_enrollment_id`),
|
|
KEY `program_enrollments_histori_program_enrollment_id_ebb94d42` (`program_enrollment_id`),
|
|
CONSTRAINT `program_enrollments__history_user_id_428d002e_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `program_enrollments_historicalprogramenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `program_enrollments_historicalprogramenrollment` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`email` varchar(254) DEFAULT NULL,
|
|
`external_user_key` varchar(255) DEFAULT NULL,
|
|
`program_uuid` char(32) NOT NULL,
|
|
`curriculum_uuid` char(32) NOT NULL,
|
|
`status` varchar(9) NOT NULL,
|
|
`history_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `program_enrollments__history_user_id_abf2d584_fk_auth_user` (`history_user_id`),
|
|
KEY `program_enrollments_historicalprogramenrollment_id_947c385f` (`id`),
|
|
KEY `program_enrollments_histori_external_user_key_5cd8d804` (`external_user_key`),
|
|
KEY `program_enrollments_histori_program_uuid_4c520e40` (`program_uuid`),
|
|
KEY `program_enrollments_histori_curriculum_uuid_a8325208` (`curriculum_uuid`),
|
|
KEY `program_enrollments_historicalprogramenrollment_user_id_e205ccdf` (`user_id`),
|
|
CONSTRAINT `program_enrollments__history_user_id_abf2d584_fk_auth_user` FOREIGN KEY (`history_user_id`) REFERENCES `auth_user` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `program_enrollments_programcourseenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `program_enrollments_programcourseenrollment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`status` varchar(9) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_enrollment_id` int(11) DEFAULT NULL,
|
|
`program_enrollment_id` int(11) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `course_enrollment_id` (`course_enrollment_id`),
|
|
KEY `program_enrollments__course_id_4f564456_fk_course_ov` (`course_id`),
|
|
KEY `program_enrollments__program_enrollment_i_02ce2c32_fk_program_e` (`program_enrollment_id`),
|
|
CONSTRAINT `program_enrollments__course_enrollment_id_d7890690_fk_student_c` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `program_enrollments__course_id_4f564456_fk_course_ov` FOREIGN KEY (`course_id`) REFERENCES `course_overviews_courseoverview` (`id`),
|
|
CONSTRAINT `program_enrollments__program_enrollment_i_02ce2c32_fk_program_e` FOREIGN KEY (`program_enrollment_id`) REFERENCES `program_enrollments_programenrollment` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `program_enrollments_programenrollment`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `program_enrollments_programenrollment` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`email` varchar(254) DEFAULT NULL,
|
|
`external_user_key` varchar(255) DEFAULT NULL,
|
|
`program_uuid` char(32) NOT NULL,
|
|
`curriculum_uuid` char(32) NOT NULL,
|
|
`status` varchar(9) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `program_enrollments_prog_user_id_external_user_ke_06e603df_uniq` (`user_id`,`external_user_key`,`program_uuid`,`curriculum_uuid`),
|
|
KEY `program_enrollments__user_id_dcfde442_fk_auth_user` (`user_id`),
|
|
KEY `program_enrollments_programenrollment_external_user_key_c27b83c5` (`external_user_key`),
|
|
KEY `program_enrollments_programenrollment_program_uuid_131378e0` (`program_uuid`),
|
|
KEY `program_enrollments_programenrollment_curriculum_uuid_da64e123` (`curriculum_uuid`),
|
|
CONSTRAINT `program_enrollments__user_id_dcfde442_fk_auth_user` 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 `programs_programsapiconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `programs_programsapiconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`marketing_path` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `programs_programsapi_changed_by_id_93e09d74_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `programs_programsapi_changed_by_id_93e09d74_fk_auth_user` 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 `rss_proxy_whitelistedrssurl`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `rss_proxy_whitelistedrssurl` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`url` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `url` (`url`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `sap_success_factors_sapsuccessfactorsenterprisecustomerconfidb8a`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `sap_success_factors_sapsuccessfactorsenterprisecustomerconfidb8a` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`sapsf_base_url` varchar(255) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`secret` varchar(255) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
`sapsf_company_id` varchar(255) NOT NULL,
|
|
`sapsf_user_id` varchar(255) NOT NULL,
|
|
`user_type` varchar(20) NOT NULL,
|
|
`transmission_chunk_size` int(11) NOT NULL,
|
|
`additional_locales` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `sap_success_factors__enterprise_customer__4819a28c_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `sap_success_factors_sapsuccessfactorsglobalconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `sap_success_factors_sapsuccessfactorsglobalconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`completion_status_api_path` varchar(255) NOT NULL,
|
|
`course_api_path` varchar(255) NOT NULL,
|
|
`oauth_api_path` varchar(255) NOT NULL,
|
|
`provider_id` varchar(100) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`search_student_api_path` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `sap_success_factors__changed_by_id_e3241cc9_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `sap_success_factors__changed_by_id_e3241cc9_fk_auth_user` 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 `sap_success_factors_sapsuccessfactorslearnerdatatransmission3ce5`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `sap_success_factors_sapsuccessfactorslearnerdatatransmission3ce5` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`enterprise_course_enrollment_id` int(10) unsigned NOT NULL,
|
|
`sapsf_user_id` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`course_completed` tinyint(1) NOT NULL,
|
|
`completed_timestamp` bigint(20) NOT NULL,
|
|
`instructor_name` varchar(255) NOT NULL,
|
|
`grade` varchar(100) NOT NULL,
|
|
`status` varchar(100) NOT NULL,
|
|
`error_message` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `schedules_schedule`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `schedules_schedule` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`start` datetime(6) NOT NULL,
|
|
`upgrade_deadline` datetime(6) DEFAULT NULL,
|
|
`enrollment_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enrollment_id` (`enrollment_id`),
|
|
KEY `schedules_schedule_start_8685ed8e` (`start`),
|
|
KEY `schedules_schedule_upgrade_deadline_0079081d` (`upgrade_deadline`),
|
|
CONSTRAINT `schedules_schedule_enrollment_id_91bf8152_fk_student_c` FOREIGN KEY (`enrollment_id`) REFERENCES `student_courseenrollment` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `schedules_scheduleconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `schedules_scheduleconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`create_schedules` tinyint(1) NOT NULL,
|
|
`enqueue_recurring_nudge` tinyint(1) NOT NULL,
|
|
`deliver_recurring_nudge` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`deliver_upgrade_reminder` tinyint(1) NOT NULL,
|
|
`enqueue_upgrade_reminder` tinyint(1) NOT NULL,
|
|
`deliver_course_update` tinyint(1) NOT NULL,
|
|
`enqueue_course_update` tinyint(1) NOT NULL,
|
|
`hold_back_ratio` double NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `schedules_scheduleconfig_changed_by_id_38ef599b_fk_auth_user_id` (`changed_by_id`),
|
|
KEY `schedules_scheduleconfig_site_id_44296ee1_fk_django_site_id` (`site_id`),
|
|
CONSTRAINT `schedules_scheduleconfig_changed_by_id_38ef599b_fk_auth_user_id` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `schedules_scheduleconfig_site_id_44296ee1_fk_django_site_id` 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 `schedules_scheduleexperience`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `schedules_scheduleexperience` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`experience_type` smallint(5) unsigned NOT NULL,
|
|
`schedule_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `schedule_id` (`schedule_id`),
|
|
CONSTRAINT `schedules_scheduleex_schedule_id_ed95c8e7_fk_schedules` FOREIGN KEY (`schedule_id`) REFERENCES `schedules_schedule` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `self_paced_selfpacedconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `self_paced_selfpacedconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`enable_course_home_improvements` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `self_paced_selfpaced_changed_by_id_02789a26_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `self_paced_selfpaced_changed_by_id_02789a26_fk_auth_user` 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_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,
|
|
`mode` varchar(50) NOT NULL,
|
|
`course_enrollment_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_certifi_course_enrollment_id_f2966a98_fk_student_c` (`course_enrollment_id`),
|
|
KEY `shoppingcart_certificateitem_course_id_a2a7b56c` (`course_id`),
|
|
KEY `shoppingcart_certificateitem_mode_0b5e8a8c` (`mode`),
|
|
CONSTRAINT `shoppingcart_certifi_course_enrollment_id_f2966a98_fk_student_c` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `shoppingcart_certifi_orderitem_ptr_id_7fee9beb_fk_shoppingc` 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_at` datetime(6) NOT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`expiration_date` datetime(6) DEFAULT NULL,
|
|
`created_by_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_coupon_created_by_id_1d622c7e_fk_auth_user_id` (`created_by_id`),
|
|
KEY `shoppingcart_coupon_code_67dfa4a3` (`code`),
|
|
CONSTRAINT `shoppingcart_coupon_created_by_id_1d622c7e_fk_auth_user_id` 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,
|
|
`coupon_id` int(11) NOT NULL,
|
|
`order_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_couponr_coupon_id_d2906e5b_fk_shoppingc` (`coupon_id`),
|
|
KEY `shoppingcart_couponr_order_id_ef555f0f_fk_shoppingc` (`order_id`),
|
|
KEY `shoppingcart_couponredemption_user_id_bbac8149_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `shoppingcart_couponr_coupon_id_d2906e5b_fk_shoppingc` FOREIGN KEY (`coupon_id`) REFERENCES `shoppingcart_coupon` (`id`),
|
|
CONSTRAINT `shoppingcart_couponr_order_id_ef555f0f_fk_shoppingc` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `shoppingcart_couponredemption_user_id_bbac8149_fk_auth_user_id` 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_course_id_7c18f431` (`course_id`),
|
|
KEY `shoppingcart_courseregcodeitem_mode_279aa3a8` (`mode`),
|
|
CONSTRAINT `shoppingcart_courser_orderitem_ptr_id_e35a50e9_fk_shoppingc` 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_at` datetime(6) NOT NULL,
|
|
`mode_slug` varchar(100) DEFAULT NULL,
|
|
`is_valid` tinyint(1) NOT NULL,
|
|
`created_by_id` int(11) NOT NULL,
|
|
`invoice_id` int(11) DEFAULT NULL,
|
|
`order_id` int(11) DEFAULT NULL,
|
|
`invoice_item_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `code` (`code`),
|
|
KEY `shoppingcart_courser_created_by_id_4a0a3481_fk_auth_user` (`created_by_id`),
|
|
KEY `shoppingcart_courseregistrationcode_course_id_ebec7eb9` (`course_id`),
|
|
KEY `shoppingcart_courser_invoice_id_3f58e05e_fk_shoppingc` (`invoice_id`),
|
|
KEY `shoppingcart_courser_order_id_18d73357_fk_shoppingc` (`order_id`),
|
|
KEY `shoppingcart_courser_invoice_item_id_2bd62f44_fk_shoppingc` (`invoice_item_id`),
|
|
CONSTRAINT `shoppingcart_courser_created_by_id_4a0a3481_fk_auth_user` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `shoppingcart_courser_invoice_id_3f58e05e_fk_shoppingc` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`),
|
|
CONSTRAINT `shoppingcart_courser_invoice_item_id_2bd62f44_fk_shoppingc` FOREIGN KEY (`invoice_item_id`) REFERENCES `shoppingcart_courseregistrationcodeinvoiceitem` (`invoiceitem_ptr_id`),
|
|
CONSTRAINT `shoppingcart_courser_order_id_18d73357_fk_shoppingc` 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_courseregistra_course_id_e8c94aec` (`course_id`),
|
|
CONSTRAINT `shoppingcart_courser_invoiceitem_ptr_id_59b1f26d_fk_shoppingc` 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_course_id_e0c7203c` (`course_id`),
|
|
CONSTRAINT `shoppingcart_donatio_orderitem_ptr_id_edf717c8_fk_shoppingc` 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_donatio_changed_by_id_154b1cbe_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `shoppingcart_donatio_changed_by_id_154b1cbe_fk_auth_user` 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,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`company_name` varchar(255) NOT NULL,
|
|
`company_contact_name` varchar(255) NOT NULL,
|
|
`company_contact_email` varchar(255) NOT NULL,
|
|
`recipient_name` varchar(255) NOT NULL,
|
|
`recipient_email` varchar(255) NOT NULL,
|
|
`address_line_1` varchar(255) NOT NULL,
|
|
`address_line_2` varchar(255) DEFAULT NULL,
|
|
`address_line_3` varchar(255) DEFAULT NULL,
|
|
`city` varchar(255) DEFAULT NULL,
|
|
`state` varchar(255) DEFAULT NULL,
|
|
`zip` varchar(15) DEFAULT NULL,
|
|
`country` varchar(64) DEFAULT NULL,
|
|
`total_amount` double NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`internal_reference` varchar(255) DEFAULT NULL,
|
|
`customer_reference_number` varchar(63) DEFAULT NULL,
|
|
`is_valid` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoice_company_name_4d19b1d3` (`company_name`),
|
|
KEY `shoppingcart_invoice_course_id_eaefd2e0` (`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(6) NOT NULL,
|
|
`snapshot` longtext NOT NULL,
|
|
`invoice_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoice_invoice_id_d53805cc_fk_shoppingc` (`invoice_id`),
|
|
KEY `shoppingcart_invoicehistory_timestamp_61c10fc3` (`timestamp`),
|
|
CONSTRAINT `shoppingcart_invoice_invoice_id_d53805cc_fk_shoppingc` 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`qty` int(11) NOT NULL,
|
|
`unit_price` decimal(30,2) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`invoice_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoice_invoice_id_0c1d1f5f_fk_shoppingc` (`invoice_id`),
|
|
CONSTRAINT `shoppingcart_invoice_invoice_id_0c1d1f5f_fk_shoppingc` 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(6) NOT NULL,
|
|
`modified` datetime(6) 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,
|
|
`invoice_id` int(11) NOT NULL,
|
|
`last_modified_by_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_invoice_created_by_id_89f3faae_fk_auth_user` (`created_by_id`),
|
|
KEY `shoppingcart_invoice_invoice_id_37da939f_fk_shoppingc` (`invoice_id`),
|
|
KEY `shoppingcart_invoice_last_modified_by_id_6957893b_fk_auth_user` (`last_modified_by_id`),
|
|
CONSTRAINT `shoppingcart_invoice_created_by_id_89f3faae_fk_auth_user` FOREIGN KEY (`created_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `shoppingcart_invoice_invoice_id_37da939f_fk_shoppingc` FOREIGN KEY (`invoice_id`) REFERENCES `shoppingcart_invoice` (`id`),
|
|
CONSTRAINT `shoppingcart_invoice_last_modified_by_id_6957893b_fk_auth_user` FOREIGN KEY (`last_modified_by_id`) REFERENCES `auth_user` (`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,
|
|
`currency` varchar(8) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`purchase_time` datetime(6) DEFAULT NULL,
|
|
`refunded_time` datetime(6) 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,
|
|
`company_name` varchar(255) DEFAULT NULL,
|
|
`company_contact_name` varchar(255) DEFAULT NULL,
|
|
`company_contact_email` varchar(255) DEFAULT NULL,
|
|
`recipient_name` varchar(255) DEFAULT NULL,
|
|
`recipient_email` varchar(255) DEFAULT NULL,
|
|
`customer_reference_number` varchar(63) DEFAULT NULL,
|
|
`order_type` varchar(32) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_order_user_id_ca2398bc_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `shoppingcart_order_user_id_ca2398bc_fk_auth_user_id` 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,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`status` varchar(32) NOT NULL,
|
|
`qty` int(11) NOT NULL,
|
|
`unit_cost` decimal(30,2) NOT NULL,
|
|
`list_price` decimal(30,2) DEFAULT NULL,
|
|
`line_desc` varchar(1024) NOT NULL,
|
|
`currency` varchar(8) NOT NULL,
|
|
`fulfilled_time` datetime(6) DEFAULT NULL,
|
|
`refund_requested_time` datetime(6) DEFAULT NULL,
|
|
`service_fee` decimal(30,2) NOT NULL,
|
|
`report_comments` longtext NOT NULL,
|
|
`order_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_orderitem_status_f6dfbdae` (`status`),
|
|
KEY `shoppingcart_orderitem_fulfilled_time_336eded2` (`fulfilled_time`),
|
|
KEY `shoppingcart_orderitem_refund_requested_time_36e52146` (`refund_requested_time`),
|
|
KEY `shoppingcart_orderit_order_id_063915e1_fk_shoppingc` (`order_id`),
|
|
KEY `shoppingcart_orderitem_user_id_93073a67_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `shoppingcart_orderit_order_id_063915e1_fk_shoppingc` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `shoppingcart_orderitem_user_id_93073a67_fk_auth_user_id` 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) DEFAULT NULL,
|
|
PRIMARY KEY (`orderitem_ptr_id`),
|
|
KEY `shoppingcart_paidcou_course_enrollment_id_853e3ed0_fk_student_c` (`course_enrollment_id`),
|
|
KEY `shoppingcart_paidcourseregistration_course_id_33b51281` (`course_id`),
|
|
KEY `shoppingcart_paidcourseregistration_mode_8be64323` (`mode`),
|
|
CONSTRAINT `shoppingcart_paidcou_course_enrollment_id_853e3ed0_fk_student_c` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `shoppingcart_paidcou_orderitem_ptr_id_00c1dc3c_fk_shoppingc` 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,
|
|
`redeemed_at` datetime(6) DEFAULT NULL,
|
|
`course_enrollment_id` int(11) DEFAULT NULL,
|
|
`order_id` int(11) DEFAULT NULL,
|
|
`redeemed_by_id` int(11) NOT NULL,
|
|
`registration_code_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `shoppingcart_registr_course_enrollment_id_d6f78911_fk_student_c` (`course_enrollment_id`),
|
|
KEY `shoppingcart_registr_order_id_240ef603_fk_shoppingc` (`order_id`),
|
|
KEY `shoppingcart_registr_redeemed_by_id_95c54187_fk_auth_user` (`redeemed_by_id`),
|
|
KEY `shoppingcart_registr_registration_code_id_e5681508_fk_shoppingc` (`registration_code_id`),
|
|
CONSTRAINT `shoppingcart_registr_course_enrollment_id_d6f78911_fk_student_c` FOREIGN KEY (`course_enrollment_id`) REFERENCES `student_courseenrollment` (`id`),
|
|
CONSTRAINT `shoppingcart_registr_order_id_240ef603_fk_shoppingc` FOREIGN KEY (`order_id`) REFERENCES `shoppingcart_order` (`id`),
|
|
CONSTRAINT `shoppingcart_registr_redeemed_by_id_95c54187_fk_auth_user` FOREIGN KEY (`redeemed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `shoppingcart_registr_registration_code_id_e5681508_fk_shoppingc` 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 `site_configuration_siteconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `site_configuration_siteconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`values` longtext NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `site_id` (`site_id`),
|
|
CONSTRAINT `site_configuration_s_site_id_84302d1f_fk_django_si` 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 `site_configuration_siteconfigurationhistory`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `site_configuration_siteconfigurationhistory` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`values` longtext NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `site_configuration_s_site_id_272f5c1a_fk_django_si` (`site_id`),
|
|
CONSTRAINT `site_configuration_s_site_id_272f5c1a_fk_django_si` 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 `social_auth_association`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `social_auth_association` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`server_url` varchar(255) NOT NULL,
|
|
`handle` varchar(255) NOT NULL,
|
|
`secret` varchar(255) NOT NULL,
|
|
`issued` int(11) NOT NULL,
|
|
`lifetime` int(11) NOT NULL,
|
|
`assoc_type` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `social_auth_association_server_url_handle_078befa2_uniq` (`server_url`,`handle`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `social_auth_code`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `social_auth_code` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`email` varchar(254) NOT NULL,
|
|
`code` varchar(32) NOT NULL,
|
|
`verified` tinyint(1) NOT NULL,
|
|
`timestamp` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `social_auth_code_email_code_801b2d02_uniq` (`email`,`code`),
|
|
KEY `social_auth_code_code_a2393167` (`code`),
|
|
KEY `social_auth_code_timestamp_176b341f` (`timestamp`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `social_auth_nonce`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `social_auth_nonce` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`server_url` varchar(255) NOT NULL,
|
|
`timestamp` int(11) NOT NULL,
|
|
`salt` varchar(65) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `social_auth_nonce_server_url_timestamp_salt_f6284463_uniq` (`server_url`,`timestamp`,`salt`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `social_auth_partial`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `social_auth_partial` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`token` varchar(32) NOT NULL,
|
|
`next_step` smallint(5) unsigned NOT NULL,
|
|
`backend` varchar(32) NOT NULL,
|
|
`data` longtext NOT NULL,
|
|
`timestamp` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `social_auth_partial_token_3017fea3` (`token`),
|
|
KEY `social_auth_partial_timestamp_50f2119f` (`timestamp`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `social_auth_usersocialauth`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `social_auth_usersocialauth` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`provider` varchar(32) NOT NULL,
|
|
`uid` varchar(255) NOT NULL,
|
|
`extra_data` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `social_auth_usersocialauth_provider_uid_e6b5e668_uniq` (`provider`,`uid`),
|
|
KEY `social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id` 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 `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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`cookie_name` longtext NOT NULL,
|
|
`cookie_allowed_values` longtext NOT NULL,
|
|
`unaffected_usernames` longtext NOT NULL,
|
|
`unaffected_url_paths` longtext NOT NULL,
|
|
`redirect_url` varchar(200) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `splash_splashconfig_changed_by_id_883b17ba_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `splash_splashconfig_changed_by_id_883b17ba_fk_auth_user_id` 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 `static_replace_assetbaseurlconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `static_replace_assetbaseurlconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`base_url` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `static_replace_asset_changed_by_id_f592e050_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `static_replace_asset_changed_by_id_f592e050_fk_auth_user` 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 `static_replace_assetexcludedextensionsconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `static_replace_assetexcludedextensionsconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`excluded_extensions` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `static_replace_asset_changed_by_id_e58299b3_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `static_replace_asset_changed_by_id_e58299b3_fk_auth_user` 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 `status_coursemessage`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `status_coursemessage` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`message` longtext,
|
|
`global_message_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `status_coursemessage_course_key_90c77a2e` (`course_key`),
|
|
KEY `status_coursemessage_global_message_id_01bbfbe6_fk_status_gl` (`global_message_id`),
|
|
CONSTRAINT `status_coursemessage_global_message_id_01bbfbe6_fk_status_gl` FOREIGN KEY (`global_message_id`) REFERENCES `status_globalstatusmessage` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `status_globalstatusmessage`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `status_globalstatusmessage` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`message` longtext,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `status_globalstatusm_changed_by_id_3c627848_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `status_globalstatusm_changed_by_id_3c627848_fk_auth_user` 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,
|
|
`anonymous_user_id` varchar(32) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `anonymous_user_id` (`anonymous_user_id`),
|
|
KEY `student_anonymoususerid_user_id_0fb2ad5c_fk_auth_user_id` (`user_id`),
|
|
KEY `student_anonymoususerid_course_id_99cc6a18` (`course_id`),
|
|
CONSTRAINT `student_anonymoususerid_user_id_0fb2ad5c_fk_auth_user_id` 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,
|
|
`org` varchar(64) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`role` varchar(64) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseaccessrole_user_id_org_course_id_ro_bbf71126_uniq` (`user_id`,`org`,`course_id`,`role`),
|
|
KEY `student_courseaccessrole_org_6d2dbb7a` (`org`),
|
|
KEY `student_courseaccessrole_course_id_60fb355e` (`course_id`),
|
|
KEY `student_courseaccessrole_role_1ac888ea` (`role`),
|
|
CONSTRAINT `student_courseaccessrole_user_id_90cf21fe_fk_auth_user_id` 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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseenrollment_user_id_course_id_5d34a47f_uniq` (`user_id`,`course_id`),
|
|
KEY `student_courseenrollment_course_id_a6f93be8` (`course_id`),
|
|
KEY `student_courseenrollment_created_79829893` (`created`),
|
|
KEY `student_cou_user_id_b19dcd_idx` (`user_id`,`created`),
|
|
CONSTRAINT `student_courseenrollment_user_id_4263a8e2_fk_auth_user_id` 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_history`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_courseenrollment_history` (
|
|
`id` int(11) NOT NULL,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`is_active` tinyint(1) NOT NULL,
|
|
`mode` varchar(100) NOT NULL,
|
|
`history_id` char(32) NOT NULL,
|
|
`history_date` datetime(6) NOT NULL,
|
|
`history_change_reason` varchar(100) DEFAULT NULL,
|
|
`history_type` varchar(1) NOT NULL,
|
|
`course_id` varchar(255) DEFAULT NULL,
|
|
`history_user_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`history_id`),
|
|
KEY `student_courseenroll_history_user_id_7065c772_fk_auth_user` (`history_user_id`),
|
|
KEY `student_courseenrollment_history_id_2d80b9b3` (`id`),
|
|
KEY `student_courseenrollment_history_created_6b3154af` (`created`),
|
|
KEY `student_courseenrollment_history_course_id_98f13917` (`course_id`),
|
|
KEY `student_courseenrollment_history_user_id_5f94c628` (`user_id`),
|
|
CONSTRAINT `student_courseenroll_history_user_id_7065c772_fk_auth_user` FOREIGN KEY (`history_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,
|
|
`auto_enroll` tinyint(1) NOT NULL,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_courseenrollmentallowed_email_course_id_1e23ed5e_uniq` (`email`,`course_id`),
|
|
KEY `student_courseenrollmentallowed_email_969706a0` (`email`),
|
|
KEY `student_courseenrollmentallowed_course_id_67eff667` (`course_id`),
|
|
KEY `student_courseenrollmentallowed_created_b2066658` (`created`),
|
|
KEY `student_courseenrollmentallowed_user_id_5875cce6_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `student_courseenrollmentallowed_user_id_5875cce6_fk_auth_user_id` 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_courseenrollmentattribute`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_courseenrollmentattribute` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`namespace` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`value` varchar(255) NOT NULL,
|
|
`enrollment_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_courseenroll_enrollment_id_b2173db0_fk_student_c` (`enrollment_id`),
|
|
CONSTRAINT `student_courseenroll_enrollment_id_b2173db0_fk_student_c` FOREIGN KEY (`enrollment_id`) REFERENCES `student_courseenrollment` (`id`)
|
|
) 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`recent_enrollment_time_delta` int(10) unsigned NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_dashboardcon_changed_by_id_1960484b_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `student_dashboardcon_changed_by_id_1960484b_fk_auth_user` 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_enrollmentrefundconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_enrollmentrefundconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`refund_window_microseconds` bigint(20) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_enrollmentre_changed_by_id_082b4f6f_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `student_enrollmentre_changed_by_id_082b4f6f_fk_auth_user` 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,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`created` datetime(6) DEFAULT NULL,
|
|
`updated` datetime(6) NOT NULL,
|
|
`skip_entrance_exam` tinyint(1) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_entranceexamconf_user_id_course_id_23bbcf9b_uniq` (`user_id`,`course_id`),
|
|
KEY `student_entranceexamconfiguration_course_id_eca5c3d4` (`course_id`),
|
|
KEY `student_entranceexamconfiguration_created_27e80637` (`created`),
|
|
KEY `student_entranceexamconfiguration_updated_d560d552` (`updated`),
|
|
CONSTRAINT `student_entranceexam_user_id_387a35d6_fk_auth_user` 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_languageproficiency`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_languageproficiency` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`code` varchar(16) NOT NULL,
|
|
`user_profile_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_languageproficiency_code_user_profile_id_9aa4e2f5_uniq` (`code`,`user_profile_id`),
|
|
KEY `student_languageprof_user_profile_id_768cd3eb_fk_auth_user` (`user_profile_id`),
|
|
CONSTRAINT `student_languageprof_user_profile_id_768cd3eb_fk_auth_user` FOREIGN KEY (`user_profile_id`) REFERENCES `auth_userprofile` (`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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`company_identifier` longtext NOT NULL,
|
|
`dashboard_tracking_code` longtext NOT NULL,
|
|
`trk_partner_name` varchar(10) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_linkedinaddt_changed_by_id_dc1c453f_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `student_linkedinaddt_changed_by_id_dc1c453f_fk_auth_user` 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,
|
|
`failure_count` int(11) NOT NULL,
|
|
`lockout_until` datetime(6) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_loginfailures_user_id_50d85202_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `student_loginfailures_user_id_50d85202_fk_auth_user_id` 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_logoutviewconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_logoutviewconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_logoutviewco_changed_by_id_a787d3e7_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `student_logoutviewco_changed_by_id_a787d3e7_fk_auth_user` 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_manualenrollmentaudit`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_manualenrollmentaudit` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`enrolled_email` varchar(255) NOT NULL,
|
|
`time_stamp` datetime(6) DEFAULT NULL,
|
|
`state_transition` varchar(255) NOT NULL,
|
|
`reason` longtext,
|
|
`enrolled_by_id` int(11) DEFAULT NULL,
|
|
`enrollment_id` int(11) DEFAULT NULL,
|
|
`role` varchar(64) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_manualenroll_enrolled_by_id_1217a0dc_fk_auth_user` (`enrolled_by_id`),
|
|
KEY `student_manualenroll_enrollment_id_decc94fe_fk_student_c` (`enrollment_id`),
|
|
KEY `student_manualenrollmentaudit_enrolled_email_47ce6524` (`enrolled_email`),
|
|
CONSTRAINT `student_manualenroll_enrolled_by_id_1217a0dc_fk_auth_user` FOREIGN KEY (`enrolled_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `student_manualenroll_enrollment_id_decc94fe_fk_student_c` FOREIGN KEY (`enrollment_id`) REFERENCES `student_courseenrollment` (`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,
|
|
`new_email` varchar(255) NOT NULL,
|
|
`activation_key` varchar(32) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `activation_key` (`activation_key`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `student_pendingemailchange_new_email_6887bdea` (`new_email`),
|
|
CONSTRAINT `student_pendingemailchange_user_id_8f2778c5_fk_auth_user_id` 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,
|
|
`new_name` varchar(255) NOT NULL,
|
|
`rationale` varchar(1024) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `student_pendingnamechange_user_id_e2cd8b70_fk_auth_user_id` 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_pendingsecondaryemailchange`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_pendingsecondaryemailchange` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`new_secondary_email` varchar(255) NOT NULL,
|
|
`activation_key` varchar(32) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `activation_key` (`activation_key`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `student_pendingsecondaryemailchange_new_secondary_email_5e79db59` (`new_secondary_email`),
|
|
CONSTRAINT `student_pendingsecon_user_id_deacc54f_fk_auth_user` 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_registrationcookieconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_registrationcookieconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`utm_cookie_name` varchar(255) NOT NULL,
|
|
`affiliate_cookie_name` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_registration_changed_by_id_52ac88b0_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `student_registration_changed_by_id_52ac88b0_fk_auth_user` 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_sociallink`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_sociallink` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`platform` varchar(30) NOT NULL,
|
|
`social_link` varchar(100) NOT NULL,
|
|
`user_profile_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `student_sociallink_user_profile_id_19f54475_fk_auth_user` (`user_profile_id`),
|
|
CONSTRAINT `student_sociallink_user_profile_id_19f54475_fk_auth_user` FOREIGN KEY (`user_profile_id`) REFERENCES `auth_userprofile` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `student_userattribute`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `student_userattribute` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`value` varchar(255) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_userattribute_user_id_name_70e18f46_uniq` (`user_id`,`name`),
|
|
KEY `student_userattribute_name_a55155e3` (`name`),
|
|
CONSTRAINT `student_userattribute_user_id_19c01f5e_fk_auth_user_id` 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_user_id_4979dd6e_fk_auth_user_id` (`user_id`),
|
|
KEY `student_usersignupsource_site_beb4d383` (`site`),
|
|
CONSTRAINT `student_usersignupsource_user_id_4979dd6e_fk_auth_user_id` 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,
|
|
`account_status` varchar(31) NOT NULL,
|
|
`standing_last_changed_at` datetime(6) NOT NULL,
|
|
`changed_by_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `student_userstanding_changed_by_id_469252b4_fk_auth_user_id` (`changed_by_id`),
|
|
CONSTRAINT `student_userstanding_changed_by_id_469252b4_fk_auth_user_id` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `student_userstanding_user_id_00b147e5_fk_auth_user_id` 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_name_94f48ddb` (`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_user_id_2bbf095a_uniq` (`usertestgroup_id`,`user_id`),
|
|
KEY `student_usertestgroup_users_user_id_81b93062_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `student_usertestgrou_usertestgroup_id_a9097958_fk_student_u` FOREIGN KEY (`usertestgroup_id`) REFERENCES `student_usertestgroup` (`id`),
|
|
CONSTRAINT `student_usertestgroup_users_user_id_81b93062_fk_auth_user_id` 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,
|
|
`points_earned` int(10) unsigned NOT NULL,
|
|
`points_possible` int(10) unsigned NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`reset` tinyint(1) NOT NULL,
|
|
`student_item_id` int(11) NOT NULL,
|
|
`submission_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `submissions_score_created_at_b65f0390` (`created_at`),
|
|
KEY `submissions_score_student_item_id_de4f5954_fk_submissio` (`student_item_id`),
|
|
KEY `submissions_score_submission_id_ba095829_fk_submissio` (`submission_id`),
|
|
CONSTRAINT `submissions_score_student_item_id_de4f5954_fk_submissio` FOREIGN KEY (`student_item_id`) REFERENCES `submissions_studentitem` (`id`),
|
|
CONSTRAINT `submissions_score_submission_id_ba095829_fk_submissio` 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_scoreannotation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `submissions_scoreannotation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`annotation_type` varchar(255) NOT NULL,
|
|
`creator` varchar(255) NOT NULL,
|
|
`reason` longtext NOT NULL,
|
|
`score_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `submissions_scoreann_score_id_2dda6e02_fk_submissio` (`score_id`),
|
|
KEY `submissions_scoreannotation_annotation_type_117a2607` (`annotation_type`),
|
|
KEY `submissions_scoreannotation_creator_5cc126cc` (`creator`),
|
|
CONSTRAINT `submissions_scoreann_score_id_2dda6e02_fk_submissio` FOREIGN KEY (`score_id`) REFERENCES `submissions_score` (`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,
|
|
`highest_id` int(11) NOT NULL,
|
|
`latest_id` int(11) NOT NULL,
|
|
`student_item_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `student_item_id` (`student_item_id`),
|
|
KEY `submissions_scoresum_highest_id_3efe897d_fk_submissio` (`highest_id`),
|
|
KEY `submissions_scoresum_latest_id_dd8a17bb_fk_submissio` (`latest_id`),
|
|
CONSTRAINT `submissions_scoresum_highest_id_3efe897d_fk_submissio` FOREIGN KEY (`highest_id`) REFERENCES `submissions_score` (`id`),
|
|
CONSTRAINT `submissions_scoresum_latest_id_dd8a17bb_fk_submissio` FOREIGN KEY (`latest_id`) REFERENCES `submissions_score` (`id`),
|
|
CONSTRAINT `submissions_scoresum_student_item_id_35f8ef06_fk_submissio` 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_student_id_ite_5b02ecf8_uniq` (`course_id`,`student_id`,`item_id`),
|
|
KEY `submissions_studentitem_student_id_8e72bcd9` (`student_id`),
|
|
KEY `submissions_studentitem_course_id_05ee1efe` (`course_id`),
|
|
KEY `submissions_studentitem_item_id_6c409784` (`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` char(32) NOT NULL,
|
|
`attempt_number` int(10) unsigned NOT NULL,
|
|
`submitted_at` datetime(6) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`raw_answer` longtext NOT NULL,
|
|
`student_item_id` int(11) NOT NULL,
|
|
`status` varchar(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `submissions_submissi_student_item_id_9d087470_fk_submissio` (`student_item_id`),
|
|
KEY `submissions_submission_uuid_210428ab` (`uuid`),
|
|
KEY `submissions_submission_submitted_at_9653124d` (`submitted_at`),
|
|
KEY `submissions_submission_created_at_01c4bf22` (`created_at`),
|
|
CONSTRAINT `submissions_submissi_student_item_id_9d087470_fk_submissio` 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 `super_csv_csvoperation`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `super_csv_csvoperation` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`class_name` varchar(255) NOT NULL,
|
|
`unique_id` varchar(255) NOT NULL,
|
|
`operation` varchar(255) NOT NULL,
|
|
`data` varchar(255) NOT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `super_csv_csvoperation_class_name_c8b5b4e2` (`class_name`),
|
|
KEY `super_csv_csvoperation_unique_id_08aa974e` (`unique_id`),
|
|
KEY `super_csv_csvoperation_user_id_f87de59a_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `super_csv_csvoperation_user_id_f87de59a_fk_auth_user_id` 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_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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`field_name` varchar(255) NOT NULL,
|
|
`field_value` varchar(1024) NOT NULL,
|
|
`course_key` varchar(255) DEFAULT NULL,
|
|
`form_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `survey_surveyanswer_field_name_7123dc3d` (`field_name`),
|
|
KEY `survey_surveyanswer_course_key_497ade68` (`course_key`),
|
|
KEY `survey_surveyanswer_form_id_7f0df59f_fk_survey_surveyform_id` (`form_id`),
|
|
KEY `survey_surveyanswer_user_id_4c028d25_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `survey_surveyanswer_form_id_7f0df59f_fk_survey_surveyform_id` FOREIGN KEY (`form_id`) REFERENCES `survey_surveyform` (`id`),
|
|
CONSTRAINT `survey_surveyanswer_user_id_4c028d25_fk_auth_user_id` 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(6) NOT NULL,
|
|
`modified` datetime(6) 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 `tagging_tagavailablevalues`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `tagging_tagavailablevalues` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`value` varchar(255) NOT NULL,
|
|
`category_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `tagging_tagavailable_category_id_9cc60a44_fk_tagging_t` (`category_id`),
|
|
CONSTRAINT `tagging_tagavailable_category_id_9cc60a44_fk_tagging_t` FOREIGN KEY (`category_id`) REFERENCES `tagging_tagcategories` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `tagging_tagcategories`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `tagging_tagcategories` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL,
|
|
`title` varchar(255) 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 `teams_courseteam`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `teams_courseteam` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`team_id` varchar(255) NOT NULL,
|
|
`discussion_topic_id` varchar(255) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`topic_id` varchar(255) NOT NULL,
|
|
`date_created` datetime(6) NOT NULL,
|
|
`description` varchar(300) NOT NULL,
|
|
`country` varchar(2) NOT NULL,
|
|
`language` varchar(16) NOT NULL,
|
|
`last_activity_at` datetime(6) NOT NULL,
|
|
`team_size` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `team_id` (`team_id`),
|
|
UNIQUE KEY `discussion_topic_id` (`discussion_topic_id`),
|
|
KEY `teams_courseteam_name_3bef5f8c` (`name`),
|
|
KEY `teams_courseteam_course_id_1e7dbede` (`course_id`),
|
|
KEY `teams_courseteam_topic_id_4d4f5d0d` (`topic_id`),
|
|
KEY `teams_courseteam_last_activity_at_376db5d3` (`last_activity_at`),
|
|
KEY `teams_courseteam_team_size_d264574e` (`team_size`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `teams_courseteammembership`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `teams_courseteammembership` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`date_joined` datetime(6) NOT NULL,
|
|
`last_activity_at` datetime(6) NOT NULL,
|
|
`team_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `teams_courseteammembership_user_id_team_id_aa45a20c_uniq` (`user_id`,`team_id`),
|
|
KEY `teams_courseteammemb_team_id_b021eccd_fk_teams_cou` (`team_id`),
|
|
CONSTRAINT `teams_courseteammemb_team_id_b021eccd_fk_teams_cou` FOREIGN KEY (`team_id`) REFERENCES `teams_courseteam` (`id`),
|
|
CONSTRAINT `teams_courseteammembership_user_id_18f9ff5d_fk_auth_user_id` 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 `theming_sitetheme`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `theming_sitetheme` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`theme_dir_name` varchar(255) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `theming_sitetheme_site_id_fe93d039_fk_django_site_id` (`site_id`),
|
|
CONSTRAINT `theming_sitetheme_site_id_fe93d039_fk_django_site_id` 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 `third_party_auth_ltiproviderconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_ltiproviderconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`name` varchar(50) NOT NULL,
|
|
`skip_registration_form` tinyint(1) NOT NULL,
|
|
`skip_email_verification` tinyint(1) NOT NULL,
|
|
`lti_consumer_key` varchar(255) NOT NULL,
|
|
`lti_hostname` varchar(255) NOT NULL,
|
|
`lti_consumer_secret` varchar(255) NOT NULL,
|
|
`lti_max_timestamp_age` int(11) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`visible` tinyint(1) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`max_session_length` int(10) unsigned DEFAULT NULL,
|
|
`skip_hinted_login_dialog` tinyint(1) NOT NULL,
|
|
`send_to_registration_first` tinyint(1) NOT NULL,
|
|
`sync_learner_profile_data` tinyint(1) NOT NULL,
|
|
`send_welcome_email` tinyint(1) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
`enable_sso_id_verification` tinyint(1) NOT NULL,
|
|
`organization_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_lti_changed_by_id_7b39c829_fk_auth_user` (`changed_by_id`),
|
|
KEY `third_party_auth_ltiproviderconfig_lti_hostname_540ce676` (`lti_hostname`),
|
|
KEY `third_party_auth_lti_site_id_c8442a80_fk_django_si` (`site_id`),
|
|
KEY `third_party_auth_ltiproviderconfig_slug_9cd23a79` (`slug`),
|
|
KEY `third_party_auth_ltiproviderconfig_organization_id_7494c417` (`organization_id`),
|
|
CONSTRAINT `third_party_auth_lti_changed_by_id_7b39c829_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `third_party_auth_lti_organization_id_7494c417_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`),
|
|
CONSTRAINT `third_party_auth_lti_site_id_c8442a80_fk_django_si` 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 `third_party_auth_oauth2providerconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_oauth2providerconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`icon_class` varchar(50) NOT NULL,
|
|
`name` varchar(50) NOT NULL,
|
|
`secondary` tinyint(1) NOT NULL,
|
|
`skip_registration_form` tinyint(1) NOT NULL,
|
|
`skip_email_verification` tinyint(1) NOT NULL,
|
|
`backend_name` varchar(50) NOT NULL,
|
|
`key` longtext NOT NULL,
|
|
`secret` longtext NOT NULL,
|
|
`other_settings` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`icon_image` varchar(100) NOT NULL,
|
|
`visible` tinyint(1) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`max_session_length` int(10) unsigned DEFAULT NULL,
|
|
`skip_hinted_login_dialog` tinyint(1) NOT NULL,
|
|
`send_to_registration_first` tinyint(1) NOT NULL,
|
|
`sync_learner_profile_data` tinyint(1) NOT NULL,
|
|
`send_welcome_email` tinyint(1) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
`enable_sso_id_verification` tinyint(1) NOT NULL,
|
|
`organization_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_oau_changed_by_id_55219296_fk_auth_user` (`changed_by_id`),
|
|
KEY `third_party_auth_oauth2providerconfig_backend_name_0c14d294` (`backend_name`),
|
|
KEY `third_party_auth_oau_site_id_a4ae3e66_fk_django_si` (`site_id`),
|
|
KEY `third_party_auth_oauth2providerconfig_slug_226038d8` (`slug`),
|
|
KEY `third_party_auth_oauth2providerconfig_organization_id_cc8874ba` (`organization_id`),
|
|
CONSTRAINT `third_party_auth_oau_changed_by_id_55219296_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `third_party_auth_oau_organization_id_cc8874ba_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`),
|
|
CONSTRAINT `third_party_auth_oau_site_id_a4ae3e66_fk_django_si` 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 `third_party_auth_providerapipermissions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_providerapipermissions` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`provider_id` varchar(255) NOT NULL,
|
|
`client_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_pro_client_id_c28afa10_fk_oauth2_cl` (`client_id`),
|
|
CONSTRAINT `third_party_auth_pro_client_id_c28afa10_fk_oauth2_cl` 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 `third_party_auth_samlconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_samlconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`private_key` longtext NOT NULL,
|
|
`public_key` longtext NOT NULL,
|
|
`entity_id` varchar(255) NOT NULL,
|
|
`org_info_str` longtext NOT NULL,
|
|
`other_config_str` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_sam_changed_by_id_c9343fb9_fk_auth_user` (`changed_by_id`),
|
|
KEY `third_party_auth_sam_site_id_8fab01ee_fk_django_si` (`site_id`),
|
|
KEY `third_party_auth_samlconfiguration_slug_f9008e26` (`slug`),
|
|
CONSTRAINT `third_party_auth_sam_changed_by_id_c9343fb9_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `third_party_auth_sam_site_id_8fab01ee_fk_django_si` 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 `third_party_auth_samlproviderconfig`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_samlproviderconfig` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`icon_class` varchar(50) NOT NULL,
|
|
`name` varchar(50) NOT NULL,
|
|
`secondary` tinyint(1) NOT NULL,
|
|
`skip_registration_form` tinyint(1) NOT NULL,
|
|
`skip_email_verification` tinyint(1) NOT NULL,
|
|
`backend_name` varchar(50) NOT NULL,
|
|
`entity_id` varchar(255) NOT NULL,
|
|
`metadata_source` varchar(255) NOT NULL,
|
|
`attr_user_permanent_id` varchar(128) NOT NULL,
|
|
`attr_full_name` varchar(128) NOT NULL,
|
|
`attr_first_name` varchar(128) NOT NULL,
|
|
`attr_last_name` varchar(128) NOT NULL,
|
|
`attr_username` varchar(128) NOT NULL,
|
|
`attr_email` varchar(128) NOT NULL,
|
|
`other_settings` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`icon_image` varchar(100) NOT NULL,
|
|
`debug_mode` tinyint(1) NOT NULL,
|
|
`visible` tinyint(1) NOT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
`automatic_refresh_enabled` tinyint(1) NOT NULL,
|
|
`identity_provider_type` varchar(128) NOT NULL,
|
|
`max_session_length` int(10) unsigned DEFAULT NULL,
|
|
`skip_hinted_login_dialog` tinyint(1) NOT NULL,
|
|
`send_to_registration_first` tinyint(1) NOT NULL,
|
|
`sync_learner_profile_data` tinyint(1) NOT NULL,
|
|
`archived` tinyint(1) NOT NULL,
|
|
`saml_configuration_id` int(11) DEFAULT NULL,
|
|
`send_welcome_email` tinyint(1) NOT NULL,
|
|
`slug` varchar(30) NOT NULL,
|
|
`enable_sso_id_verification` tinyint(1) NOT NULL,
|
|
`default_email` varchar(255) NOT NULL,
|
|
`default_first_name` varchar(255) NOT NULL,
|
|
`default_full_name` varchar(255) NOT NULL,
|
|
`default_last_name` varchar(255) NOT NULL,
|
|
`default_username` varchar(255) NOT NULL,
|
|
`organization_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_sam_changed_by_id_4c8fa8c0_fk_auth_user` (`changed_by_id`),
|
|
KEY `third_party_auth_sam_site_id_b7e2af73_fk_django_si` (`site_id`),
|
|
KEY `third_party_auth_sam_saml_configuration_i_eeb9fe72_fk_third_par` (`saml_configuration_id`),
|
|
KEY `third_party_auth_samlproviderconfig_slug_95883dea` (`slug`),
|
|
KEY `third_party_auth_samlproviderconfig_organization_id_8a7f5596` (`organization_id`),
|
|
CONSTRAINT `third_party_auth_sam_changed_by_id_4c8fa8c0_fk_auth_user` FOREIGN KEY (`changed_by_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `third_party_auth_sam_organization_id_8a7f5596_fk_organizat` FOREIGN KEY (`organization_id`) REFERENCES `organizations_organization` (`id`),
|
|
CONSTRAINT `third_party_auth_sam_saml_configuration_i_eeb9fe72_fk_third_par` FOREIGN KEY (`saml_configuration_id`) REFERENCES `third_party_auth_samlconfiguration` (`id`),
|
|
CONSTRAINT `third_party_auth_sam_site_id_b7e2af73_fk_django_si` 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 `third_party_auth_samlproviderdata`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `third_party_auth_samlproviderdata` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`fetched_at` datetime(6) NOT NULL,
|
|
`expires_at` datetime(6) DEFAULT NULL,
|
|
`entity_id` varchar(255) NOT NULL,
|
|
`sso_url` varchar(200) NOT NULL,
|
|
`public_key` longtext NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `third_party_auth_samlproviderdata_fetched_at_2286ac32` (`fetched_at`),
|
|
KEY `third_party_auth_samlproviderdata_expires_at_eaf594c7` (`expires_at`),
|
|
KEY `third_party_auth_samlproviderdata_entity_id_b163c6fc` (`entity_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `thumbnail_kvstore`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `thumbnail_kvstore` (
|
|
`key` varchar(200) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
PRIMARY KEY (`key`)
|
|
) 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(6) 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) DEFAULT NULL,
|
|
`time` datetime(6) 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_retirementstate`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_retirementstate` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`state_name` varchar(30) NOT NULL,
|
|
`state_execution_order` smallint(6) NOT NULL,
|
|
`is_dead_end_state` tinyint(1) NOT NULL,
|
|
`required` tinyint(1) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `state_name` (`state_name`),
|
|
UNIQUE KEY `state_execution_order` (`state_execution_order`),
|
|
KEY `user_api_retirementstate_is_dead_end_state_62eaf9b7` (`is_dead_end_state`)
|
|
) 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,
|
|
`key` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_usercoursetag_user_id_course_id_key_d73150ab_uniq` (`user_id`,`course_id`,`key`),
|
|
KEY `user_api_usercoursetag_key_d6420575` (`key`),
|
|
KEY `user_api_usercoursetag_course_id_a336d583` (`course_id`),
|
|
CONSTRAINT `user_api_usercoursetag_user_id_106a4cbc_fk_auth_user_id` 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`org` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_userorgtag_user_id_org_key_d4df9ac1_uniq` (`user_id`,`org`,`key`),
|
|
KEY `user_api_userorgtag_key_b1f2bafe` (`key`),
|
|
KEY `user_api_userorgtag_org_41caa15c` (`org`),
|
|
CONSTRAINT `user_api_userorgtag_user_id_cc0d415d_fk_auth_user_id` 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,
|
|
`key` varchar(255) NOT NULL,
|
|
`value` longtext NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_api_userpreference_user_id_key_17924c0d_uniq` (`user_id`,`key`),
|
|
KEY `user_api_userpreference_key_9c8a8f6b` (`key`),
|
|
CONSTRAINT `user_api_userpreference_user_id_68f8a34b_fk_auth_user_id` 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_userretirementpartnerreportingstatus`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_userretirementpartnerreportingstatus` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`original_username` varchar(150) NOT NULL,
|
|
`original_email` varchar(254) NOT NULL,
|
|
`original_name` varchar(255) NOT NULL,
|
|
`is_being_processed` tinyint(1) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `user_api_userretirementpart_original_username_6bf5d3d1` (`original_username`),
|
|
KEY `user_api_userretirementpart_original_email_aaab0bc9` (`original_email`),
|
|
KEY `user_api_userretirementpart_original_name_9aedd7f0` (`original_name`),
|
|
CONSTRAINT `user_api_userretirem_user_id_272c8f78_fk_auth_user` 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_userretirementrequest`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_userretirementrequest` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
CONSTRAINT `user_api_userretirementrequest_user_id_7f7ca22f_fk_auth_user_id` 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_userretirementstatus`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_api_userretirementstatus` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`original_username` varchar(150) NOT NULL,
|
|
`original_email` varchar(254) NOT NULL,
|
|
`original_name` varchar(255) NOT NULL,
|
|
`retired_username` varchar(150) NOT NULL,
|
|
`retired_email` varchar(254) NOT NULL,
|
|
`responses` longtext NOT NULL,
|
|
`current_state_id` int(11) NOT NULL,
|
|
`last_state_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `user_id` (`user_id`),
|
|
KEY `user_api_userretirem_current_state_id_e37bb094_fk_user_api_` (`current_state_id`),
|
|
KEY `user_api_userretirem_last_state_id_359e74cd_fk_user_api_` (`last_state_id`),
|
|
KEY `user_api_userretirementstatus_original_username_fa5d4a21` (`original_username`),
|
|
KEY `user_api_userretirementstatus_original_email_a7203bff` (`original_email`),
|
|
KEY `user_api_userretirementstatus_original_name_17c2846b` (`original_name`),
|
|
KEY `user_api_userretirementstatus_retired_username_52067a53` (`retired_username`),
|
|
KEY `user_api_userretirementstatus_retired_email_ee7c1579` (`retired_email`),
|
|
CONSTRAINT `user_api_userretirem_current_state_id_e37bb094_fk_user_api_` FOREIGN KEY (`current_state_id`) REFERENCES `user_api_retirementstate` (`id`),
|
|
CONSTRAINT `user_api_userretirem_last_state_id_359e74cd_fk_user_api_` FOREIGN KEY (`last_state_id`) REFERENCES `user_api_retirementstate` (`id`),
|
|
CONSTRAINT `user_api_userretirementstatus_user_id_aca4dc7b_fk_auth_user_id` 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_tasks_usertaskartifact`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_tasks_usertaskartifact` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`file` varchar(100) DEFAULT NULL,
|
|
`url` longtext NOT NULL,
|
|
`text` longtext NOT NULL,
|
|
`status_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
KEY `user_tasks_usertaska_status_id_641f31be_fk_user_task` (`status_id`),
|
|
CONSTRAINT `user_tasks_usertaska_status_id_641f31be_fk_user_task` FOREIGN KEY (`status_id`) REFERENCES `user_tasks_usertaskstatus` (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `user_tasks_usertaskstatus`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_tasks_usertaskstatus` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`uuid` char(32) NOT NULL,
|
|
`task_id` varchar(128) NOT NULL,
|
|
`is_container` tinyint(1) NOT NULL,
|
|
`task_class` varchar(128) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`state` varchar(128) NOT NULL,
|
|
`completed_steps` smallint(5) unsigned NOT NULL,
|
|
`total_steps` smallint(5) unsigned NOT NULL,
|
|
`attempts` smallint(5) unsigned NOT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `uuid` (`uuid`),
|
|
UNIQUE KEY `task_id` (`task_id`),
|
|
KEY `user_tasks_usertasks_parent_id_5009f727_fk_user_task` (`parent_id`),
|
|
KEY `user_tasks_usertaskstatus_user_id_5bec3d4a_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `user_tasks_usertasks_parent_id_5009f727_fk_user_task` FOREIGN KEY (`parent_id`) REFERENCES `user_tasks_usertaskstatus` (`id`),
|
|
CONSTRAINT `user_tasks_usertaskstatus_user_id_5bec3d4a_fk_auth_user_id` 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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `util_ratelimitconfig_changed_by_id_794ac118_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `util_ratelimitconfig_changed_by_id_794ac118_fk_auth_user` 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 `verified_track_content_migrateverifiedtrackcohortssetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verified_track_content_migrateverifiedtrackcohortssetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`old_course_key` varchar(255) NOT NULL,
|
|
`rerun_course_key` varchar(255) NOT NULL,
|
|
`audit_cohort_names` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `verified_track_conte_changed_by_id_29944bff_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `verified_track_conte_changed_by_id_29944bff_fk_auth_user` 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 `verified_track_content_verifiedtrackcohortedcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verified_track_content_verifiedtrackcohortedcourse` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`verified_cohort_name` varchar(100) 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 `verify_student_manualverification`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verify_student_manualverification` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`status` varchar(100) NOT NULL,
|
|
`status_changed` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`updated_at` datetime(6) NOT NULL,
|
|
`reason` varchar(255) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `verify_student_manua_user_id_f38b72b4_fk_auth_user` (`user_id`),
|
|
KEY `verify_student_manualverification_created_at_e4e3731a` (`created_at`),
|
|
KEY `verify_student_manualverification_updated_at_1a350690` (`updated_at`),
|
|
CONSTRAINT `verify_student_manua_user_id_f38b72b4_fk_auth_user` 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 `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(6) 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(6) NOT NULL,
|
|
`updated_at` datetime(6) NOT NULL,
|
|
`display` tinyint(1) NOT NULL,
|
|
`submitted_at` datetime(6) 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,
|
|
`copy_id_photo_from_id` int(11) DEFAULT NULL,
|
|
`reviewing_user_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`expiry_date` datetime(6) DEFAULT NULL,
|
|
`expiry_email_date` datetime(6) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `verify_student_softw_copy_id_photo_from_i_059e40b6_fk_verify_st` (`copy_id_photo_from_id`),
|
|
KEY `verify_student_softw_reviewing_user_id_55fd003a_fk_auth_user` (`reviewing_user_id`),
|
|
KEY `verify_student_softw_user_id_66ca4f6d_fk_auth_user` (`user_id`),
|
|
KEY `verify_student_softwaresecu_receipt_id_2160ce88` (`receipt_id`),
|
|
KEY `verify_student_softwaresecu_created_at_566f779f` (`created_at`),
|
|
KEY `verify_student_softwaresecu_updated_at_8f5cf2d7` (`updated_at`),
|
|
KEY `verify_student_softwaresecurephotoverification_display_287287f8` (`display`),
|
|
KEY `verify_student_softwaresecu_submitted_at_f3d5cd03` (`submitted_at`),
|
|
KEY `verify_student_softwaresecu_expiry_date_5c297927` (`expiry_date`),
|
|
KEY `verify_student_softwaresecu_expiry_email_date_6ae6d6c9` (`expiry_email_date`),
|
|
CONSTRAINT `verify_student_softw_copy_id_photo_from_i_059e40b6_fk_verify_st` FOREIGN KEY (`copy_id_photo_from_id`) REFERENCES `verify_student_softwaresecurephotoverification` (`id`),
|
|
CONSTRAINT `verify_student_softw_reviewing_user_id_55fd003a_fk_auth_user` FOREIGN KEY (`reviewing_user_id`) REFERENCES `auth_user` (`id`),
|
|
CONSTRAINT `verify_student_softw_user_id_66ca4f6d_fk_auth_user` 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 `verify_student_ssoverification`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verify_student_ssoverification` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`status` varchar(100) NOT NULL,
|
|
`status_changed` datetime(6) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`updated_at` datetime(6) NOT NULL,
|
|
`identity_provider_type` varchar(100) NOT NULL,
|
|
`identity_provider_slug` varchar(30) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `verify_student_ssoverification_user_id_5e6186eb_fk_auth_user_id` (`user_id`),
|
|
KEY `verify_student_ssoverification_created_at_6381e5a4` (`created_at`),
|
|
KEY `verify_student_ssoverification_updated_at_9d6cc952` (`updated_at`),
|
|
KEY `verify_student_ssoverification_identity_provider_slug_56c53eb6` (`identity_provider_slug`),
|
|
CONSTRAINT `verify_student_ssoverification_user_id_5e6186eb_fk_auth_user_id` 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 `verify_student_verificationdeadline`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `verify_student_verificationdeadline` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_key` varchar(255) NOT NULL,
|
|
`deadline` datetime(6) NOT NULL,
|
|
`deadline_is_explicit` tinyint(1) 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 `video_config_coursehlsplaybackenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_coursehlsplaybackenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_courseh_changed_by_id_fa268d53_fk_auth_user` (`changed_by_id`),
|
|
KEY `video_config_coursehlsplaybackenabledflag_course_id_c0fcaead` (`course_id`),
|
|
CONSTRAINT `video_config_courseh_changed_by_id_fa268d53_fk_auth_user` 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 `video_config_coursevideotranscriptenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_coursevideotranscriptenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_coursev_changed_by_id_3bdcf2a6_fk_auth_user` (`changed_by_id`),
|
|
KEY `video_config_coursevideotranscriptenabledflag_course_id_fcfacf5b` (`course_id`),
|
|
CONSTRAINT `video_config_coursev_changed_by_id_3bdcf2a6_fk_auth_user` 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 `video_config_hlsplaybackenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_hlsplaybackenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`enabled_for_all_courses` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_hlsplay_changed_by_id_d93f2234_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_config_hlsplay_changed_by_id_d93f2234_fk_auth_user` 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 `video_config_migrationenqueuedcourse`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_migrationenqueuedcourse` (
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`command_run` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `video_config_transcriptmigrationsetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_transcriptmigrationsetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`force_update` tinyint(1) NOT NULL,
|
|
`commit` tinyint(1) NOT NULL,
|
|
`all_courses` tinyint(1) NOT NULL,
|
|
`course_ids` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`command_run` int(10) unsigned NOT NULL,
|
|
`batch_size` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_transcr_changed_by_id_4c7817bd_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_config_transcr_changed_by_id_4c7817bd_fk_auth_user` 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 `video_config_updatedcoursevideos`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_updatedcoursevideos` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`edx_video_id` varchar(100) NOT NULL,
|
|
`command_run` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `video_config_updatedcour_course_id_edx_video_id_455a73ff_uniq` (`course_id`,`edx_video_id`),
|
|
KEY `video_config_updatedcoursevideos_course_id_e72703a3` (`course_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `video_config_videothumbnailsetting`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_videothumbnailsetting` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`command_run` int(10) unsigned NOT NULL,
|
|
`batch_size` int(10) unsigned NOT NULL,
|
|
`videos_per_task` int(10) unsigned NOT NULL,
|
|
`commit` tinyint(1) NOT NULL,
|
|
`all_course_videos` tinyint(1) NOT NULL,
|
|
`course_ids` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`offset` int(10) unsigned NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_videoth_changed_by_id_9385a0b2_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_config_videoth_changed_by_id_9385a0b2_fk_auth_user` 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 `video_config_videotranscriptenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_config_videotranscriptenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`enabled_for_all_courses` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_config_videotr_changed_by_id_9f0afd7f_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_config_videotr_changed_by_id_9f0afd7f_fk_auth_user` 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 `video_pipeline_coursevideouploadsenabledbydefault`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_pipeline_coursevideouploadsenabledbydefault` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_pipeline_cours_changed_by_id_84ec1a58_fk_auth_user` (`changed_by_id`),
|
|
KEY `video_pipeline_coursevideou_course_id_9fd1b18b` (`course_id`),
|
|
CONSTRAINT `video_pipeline_cours_changed_by_id_84ec1a58_fk_auth_user` 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 `video_pipeline_videopipelineintegration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_pipeline_videopipelineintegration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`api_url` varchar(200) NOT NULL,
|
|
`service_username` varchar(100) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
`client_name` varchar(100) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_pipeline_video_changed_by_id_b169f329_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_pipeline_video_changed_by_id_b169f329_fk_auth_user` 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 `video_pipeline_videouploadsenabledbydefault`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `video_pipeline_videouploadsenabledbydefault` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`enabled_for_all_courses` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `video_pipeline_video_changed_by_id_3d066822_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `video_pipeline_video_changed_by_id_3d066822_fk_auth_user` 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 `waffle_flag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_flag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(100) NOT NULL,
|
|
`everyone` tinyint(1) DEFAULT NULL,
|
|
`percent` decimal(3,1) DEFAULT NULL,
|
|
`testing` tinyint(1) NOT NULL,
|
|
`superusers` tinyint(1) NOT NULL,
|
|
`staff` tinyint(1) NOT NULL,
|
|
`authenticated` tinyint(1) NOT NULL,
|
|
`languages` longtext NOT NULL,
|
|
`rollout` tinyint(1) NOT NULL,
|
|
`note` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`),
|
|
KEY `waffle_flag_created_4a6e8cef` (`created`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `waffle_flag_groups`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_flag_groups` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`flag_id` int(11) NOT NULL,
|
|
`group_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `waffle_flag_groups_flag_id_group_id_8ba0c71b_uniq` (`flag_id`,`group_id`),
|
|
KEY `waffle_flag_groups_group_id_a97c4f66_fk_auth_group_id` (`group_id`),
|
|
CONSTRAINT `waffle_flag_groups_flag_id_c11c0c05_fk_waffle_flag_id` FOREIGN KEY (`flag_id`) REFERENCES `waffle_flag` (`id`),
|
|
CONSTRAINT `waffle_flag_groups_group_id_a97c4f66_fk_auth_group_id` 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 `waffle_flag_users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_flag_users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`flag_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `waffle_flag_users_flag_id_user_id_b46f76b0_uniq` (`flag_id`,`user_id`),
|
|
KEY `waffle_flag_users_user_id_8026df9b_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `waffle_flag_users_flag_id_833c37b0_fk_waffle_flag_id` FOREIGN KEY (`flag_id`) REFERENCES `waffle_flag` (`id`),
|
|
CONSTRAINT `waffle_flag_users_user_id_8026df9b_fk_auth_user_id` 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 `waffle_sample`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_sample` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(100) NOT NULL,
|
|
`percent` decimal(4,1) NOT NULL,
|
|
`note` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`),
|
|
KEY `waffle_sample_created_76198bd5` (`created`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `waffle_switch`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_switch` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(100) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`note` longtext NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `name` (`name`),
|
|
KEY `waffle_switch_created_c004e77e` (`created`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `waffle_utils_waffleflagcourseoverridemodel`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `waffle_utils_waffleflagcourseoverridemodel` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`waffle_flag` varchar(255) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`override_choice` varchar(3) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `waffle_utils_wafflef_changed_by_id_28429bf5_fk_auth_user` (`changed_by_id`),
|
|
KEY `waffle_utils_waffleflagcourseoverridemodel_waffle_flag_d261aad1` (`waffle_flag`),
|
|
KEY `waffle_utils_waffleflagcourseoverridemodel_course_id_e94a9fc3` (`course_id`),
|
|
CONSTRAINT `waffle_utils_wafflef_changed_by_id_28429bf5_fk_auth_user` 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 `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,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT 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,
|
|
`current_revision_id` int(11) DEFAULT NULL,
|
|
`group_id` int(11) DEFAULT NULL,
|
|
`owner_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `current_revision_id` (`current_revision_id`),
|
|
KEY `wiki_article_group_id_bf035c83_fk_auth_group_id` (`group_id`),
|
|
KEY `wiki_article_owner_id_956bc94a_fk_auth_user_id` (`owner_id`),
|
|
CONSTRAINT `wiki_article_current_revision_id_fc83ea0a_fk_wiki_arti` FOREIGN KEY (`current_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `wiki_article_group_id_bf035c83_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
|
|
CONSTRAINT `wiki_article_owner_id_956bc94a_fk_auth_user_id` 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,
|
|
`object_id` int(10) unsigned NOT NULL,
|
|
`is_mptt` tinyint(1) NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
`content_type_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_articleforobject_content_type_id_object_id_046be756_uniq` (`content_type_id`,`object_id`),
|
|
KEY `wiki_articleforobject_article_id_7d67d809_fk_wiki_article_id` (`article_id`),
|
|
CONSTRAINT `wiki_articleforobjec_content_type_id_ba569059_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
|
|
CONSTRAINT `wiki_articleforobject_article_id_7d67d809_fk_wiki_article_id` 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,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_articleplugin_article_id_9ab0e854_fk_wiki_article_id` (`article_id`),
|
|
CONSTRAINT `wiki_articleplugin_article_id_9ab0e854_fk_wiki_article_id` 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(39) DEFAULT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`locked` tinyint(1) NOT NULL,
|
|
`content` longtext NOT NULL,
|
|
`title` varchar(512) NOT NULL,
|
|
`article_id` int(11) NOT NULL,
|
|
`previous_revision_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_articlerevision_article_id_revision_number_5bcd5334_uniq` (`article_id`,`revision_number`),
|
|
KEY `wiki_articlerevision_previous_revision_id_bcfaf4c9_fk_wiki_arti` (`previous_revision_id`),
|
|
KEY `wiki_articlerevision_user_id_c687e4de_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `wiki_articlerevision_article_id_e0fb2474_fk_wiki_article_id` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `wiki_articlerevision_previous_revision_id_bcfaf4c9_fk_wiki_arti` FOREIGN KEY (`previous_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `wiki_articlerevision_user_id_c687e4de_fk_auth_user_id` 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_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 `wiki_reusableplugin_articleplugin_ptr_id_c1737239_fk_wiki_arti` 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_arti_reusableplugin_id_articl_302a7a01_uniq` (`reusableplugin_id`,`article_id`),
|
|
KEY `wiki_reusableplugin__article_id_8a09d39e_fk_wiki_arti` (`article_id`),
|
|
CONSTRAINT `wiki_reusableplugin__article_id_8a09d39e_fk_wiki_arti` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `wiki_reusableplugin__reusableplugin_id_52618a1c_fk_wiki_reus` 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) DEFAULT NULL,
|
|
PRIMARY KEY (`articleplugin_ptr_id`),
|
|
UNIQUE KEY `current_revision_id` (`current_revision_id`),
|
|
CONSTRAINT `wiki_revisionplugin_articleplugin_ptr_id_95c295f2_fk_wiki_arti` FOREIGN KEY (`articleplugin_ptr_id`) REFERENCES `wiki_articleplugin` (`id`),
|
|
CONSTRAINT `wiki_revisionplugin_current_revision_id_46514536_fk_wiki_revi` FOREIGN KEY (`current_revision_id`) REFERENCES `wiki_revisionpluginrevision` (`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(39) DEFAULT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`created` datetime(6) NOT NULL,
|
|
`deleted` tinyint(1) NOT NULL,
|
|
`locked` tinyint(1) NOT NULL,
|
|
`plugin_id` int(11) NOT NULL,
|
|
`previous_revision_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_revisionpluginr_plugin_id_c8f4475b_fk_wiki_revi` (`plugin_id`),
|
|
KEY `wiki_revisionpluginr_previous_revision_id_38c877c0_fk_wiki_revi` (`previous_revision_id`),
|
|
KEY `wiki_revisionpluginrevision_user_id_ee40f729_fk_auth_user_id` (`user_id`),
|
|
CONSTRAINT `wiki_revisionpluginr_plugin_id_c8f4475b_fk_wiki_revi` FOREIGN KEY (`plugin_id`) REFERENCES `wiki_revisionplugin` (`articleplugin_ptr_id`),
|
|
CONSTRAINT `wiki_revisionpluginr_previous_revision_id_38c877c0_fk_wiki_revi` FOREIGN KEY (`previous_revision_id`) REFERENCES `wiki_revisionpluginrevision` (`id`),
|
|
CONSTRAINT `wiki_revisionpluginrevision_user_id_ee40f729_fk_auth_user_id` 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_article_revision_id_cff7df92_fk_wiki_arti` (`article_revision_id`),
|
|
CONSTRAINT `wiki_simpleplugin_article_revision_id_cff7df92_fk_wiki_arti` FOREIGN KEY (`article_revision_id`) REFERENCES `wiki_articlerevision` (`id`),
|
|
CONSTRAINT `wiki_simpleplugin_articleplugin_ptr_id_2b99b828_fk_wiki_arti` 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(255) 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,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`site_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `wiki_urlpath_site_id_parent_id_slug_e4942e5d_uniq` (`site_id`,`parent_id`,`slug`),
|
|
KEY `wiki_urlpath_article_id_9ef0c0fb_fk_wiki_article_id` (`article_id`),
|
|
KEY `wiki_urlpath_slug_39d212eb` (`slug`),
|
|
KEY `wiki_urlpath_lft_46bfd227` (`lft`),
|
|
KEY `wiki_urlpath_rght_186fc98e` (`rght`),
|
|
KEY `wiki_urlpath_tree_id_090b475d` (`tree_id`),
|
|
KEY `wiki_urlpath_level_57f17cfd` (`level`),
|
|
KEY `wiki_urlpath_parent_id_a6e675ac` (`parent_id`),
|
|
CONSTRAINT `wiki_urlpath_article_id_9ef0c0fb_fk_wiki_article_id` FOREIGN KEY (`article_id`) REFERENCES `wiki_article` (`id`),
|
|
CONSTRAINT `wiki_urlpath_parent_id_a6e675ac_fk_wiki_urlpath_id` FOREIGN KEY (`parent_id`) REFERENCES `wiki_urlpath` (`id`),
|
|
CONSTRAINT `wiki_urlpath_site_id_319be912_fk_django_site_id` 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(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`status` varchar(100) NOT NULL,
|
|
`status_changed` datetime(6) NOT NULL,
|
|
`submission_uuid` varchar(36) NOT NULL,
|
|
`uuid` char(32) 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_8c2d171b` (`course_id`),
|
|
KEY `workflow_assessmentworkflow_item_id_3ad0d291` (`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,
|
|
`comments` longtext NOT NULL,
|
|
`cancelled_by_id` varchar(40) NOT NULL,
|
|
`created_at` datetime(6) NOT NULL,
|
|
`workflow_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `workflow_assessmentw_workflow_id_5e534711_fk_workflow_` (`workflow_id`),
|
|
KEY `workflow_assessmentworkflowcancellation_cancelled_by_id_8467736a` (`cancelled_by_id`),
|
|
KEY `workflow_assessmentworkflowcancellation_created_at_9da54d83` (`created_at`),
|
|
CONSTRAINT `workflow_assessmentw_workflow_id_5e534711_fk_workflow_` 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,
|
|
`name` varchar(20) NOT NULL,
|
|
`submitter_completed_at` datetime(6) DEFAULT NULL,
|
|
`assessment_completed_at` datetime(6) DEFAULT NULL,
|
|
`order_num` int(10) unsigned NOT NULL,
|
|
`workflow_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `workflow_assessmentw_workflow_id_fe52b4aa_fk_workflow_` (`workflow_id`),
|
|
CONSTRAINT `workflow_assessmentw_workflow_id_fe52b4aa_fk_workflow_` 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 `xapi_xapilrsconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xapi_xapilrsconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`created` datetime(6) NOT NULL,
|
|
`modified` datetime(6) NOT NULL,
|
|
`version` varchar(16) NOT NULL,
|
|
`endpoint` varchar(200) NOT NULL,
|
|
`key` varchar(255) NOT NULL,
|
|
`secret` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL,
|
|
`enterprise_customer_id` char(32) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `enterprise_customer_id` (`enterprise_customer_id`),
|
|
CONSTRAINT `xapi_xapilrsconfigur_enterprise_customer__90c03ad5_fk_enterpris` FOREIGN KEY (`enterprise_customer_id`) REFERENCES `enterprise_enterprisecustomer` (`uuid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
DROP TABLE IF EXISTS `xblock_config_courseeditltifieldsenabledflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xblock_config_courseeditltifieldsenabledflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`course_id` varchar(255) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_config_course_changed_by_id_09761e15_fk_auth_user` (`changed_by_id`),
|
|
KEY `xblock_config_courseeditltifieldsenabledflag_course_id_4f2393b4` (`course_id`),
|
|
CONSTRAINT `xblock_config_course_changed_by_id_09761e15_fk_auth_user` 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 `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(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`disabled_blocks` longtext NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_config_studio_changed_by_id_8e87ad07_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `xblock_config_studio_changed_by_id_8e87ad07_fk_auth_user` 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 `xblock_django_xblockconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xblock_django_xblockconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`deprecated` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_django_xblock_changed_by_id_221b9d0e_fk_auth_user` (`changed_by_id`),
|
|
KEY `xblock_django_xblockconfiguration_name_9596c362` (`name`),
|
|
CONSTRAINT `xblock_django_xblock_changed_by_id_221b9d0e_fk_auth_user` 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 `xblock_django_xblockstudioconfiguration`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xblock_django_xblockstudioconfiguration` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`template` varchar(255) NOT NULL,
|
|
`support_level` varchar(2) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_django_xblock_changed_by_id_641b0905_fk_auth_user` (`changed_by_id`),
|
|
KEY `xblock_django_xblockstudioconfiguration_name_1450bfa3` (`name`),
|
|
CONSTRAINT `xblock_django_xblock_changed_by_id_641b0905_fk_auth_user` 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 `xblock_django_xblockstudioconfigurationflag`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `xblock_django_xblockstudioconfigurationflag` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`change_date` datetime(6) NOT NULL,
|
|
`enabled` tinyint(1) NOT NULL,
|
|
`changed_by_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `xblock_django_xblock_changed_by_id_fdf047b8_fk_auth_user` (`changed_by_id`),
|
|
CONSTRAINT `xblock_django_xblock_changed_by_id_fdf047b8_fk_auth_user` 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 */;
|
|
|