-- Table structure for table `mdl_lti_tool_settings`
--

CREATE TABLE `mdl_lti_tool_settings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `toolproxyid` bigint(10) NOT NULL,
  `course` bigint(10) DEFAULT NULL,
  `coursemoduleid` bigint(10) DEFAULT NULL,
  `settings` longtext COLLATE utf8_unicode_ci NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltitoolsett_too_ix` (`toolproxyid`),
  KEY `mdl_ltitoolsett_cou_ix` (`course`),
  KEY `mdl_ltitoolsett_cou2_ix` (`coursemoduleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='LTI tool setting values';

--
-- Dumping data for table `mdl_lti_tool_settings`
--


--
-- Table structure for table `mdl_lti_types`
--

CREATE TABLE `mdl_lti_types` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'basiclti Activity',
  `baseurl` longtext COLLATE utf8_unicode_ci NOT NULL,
  `tooldomain` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `state` tinyint(2) NOT NULL DEFAULT '2',
  `course` bigint(10) NOT NULL,
  `coursevisible` tinyint(1) NOT NULL DEFAULT '0',
  `toolproxyid` bigint(10) DEFAULT NULL,
  `enabledcapability` longtext COLLATE utf8_unicode_ci,
  `parameter` longtext COLLATE utf8_unicode_ci,
  `icon` longtext COLLATE utf8_unicode_ci,
  `secureicon` longtext COLLATE utf8_unicode_ci,
  `createdby` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `mdl_ltitype_cou_ix` (`course`),
  KEY `mdl_ltitype_too_ix` (`tooldomain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Basic LTI pre-configured activities';

--
-- Dumping data for table `mdl_lti_types`
--


--
-- Table structure for table `mdl_lti_types_config`
--

CREATE TABLE `mdl_lti_types_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `typeid` bigint(10) NOT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltitypeconf_typ_ix` (`typeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Basic LTI types configuration';

--
-- Dumping data for table `mdl_lti_types_config`
--


--
-- Table structure for table `mdl_ltiservice_gradebookservices`
--

CREATE TABLE `mdl_ltiservice_gradebookservices` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `gradeitemid` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `toolproxyid` bigint(10) DEFAULT NULL,
  `typeid` bigint(10) DEFAULT NULL,
  `baseurl` longtext COLLATE utf8_unicode_ci,
  `ltilinkid` bigint(10) DEFAULT NULL,
  `tag` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltisgrad_lti_ix` (`ltilinkid`),
  KEY `mdl_ltisgrad_gracou_ix` (`gradeitemid`,`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This file records the grade items created by the LTI Gradebo';

--
-- Dumping data for table `mdl_ltiservice_gradebookservices`
--


--
-- Table structure for table `mdl_message`
--

CREATE TABLE `mdl_message` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext COLLATE utf8_unicode_ci,
  `contexturlname` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timeuserfromdeleted` bigint(10) NOT NULL DEFAULT '0',
  `timeusertodeleted` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `eventtype` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_mess_useusetimtim_ix` (`useridfrom`,`useridto`,`timeuserfromdeleted`,`timeusertodeleted`),
  KEY `mdl_mess_usetimnot_ix` (`useridfrom`,`timeuserfromdeleted`,`notification`),
  KEY `mdl_mess_usetimnot2_ix` (`useridto`,`timeusertodeleted`,`notification`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all unread messages';

--
-- Dumping data for table `mdl_message`
--


--
-- Table structure for table `mdl_message_airnotifier_devices`
--

CREATE TABLE `mdl_message_airnotifier_devices` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userdeviceid` bigint(10) NOT NULL,
  `enable` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messairndevi_use_uix` (`userdeviceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Store information about the devices registered in Airnotifie';

--
-- Dumping data for table `mdl_message_airnotifier_devices`
--


--
-- Table structure for table `mdl_message_contact_requests`
--

CREATE TABLE `mdl_message_contact_requests` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `requesteduserid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messcontrequ_usereq_uix` (`userid`,`requesteduserid`),
  KEY `mdl_messcontrequ_use_ix` (`userid`),
  KEY `mdl_messcontrequ_req_ix` (`requesteduserid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maintains list of contact requests between users';

--
-- Dumping data for table `mdl_message_contact_requests`
--


--
-- Table structure for table `mdl_message_contacts`
--

CREATE TABLE `mdl_message_contacts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `contactid` bigint(10) NOT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messcont_usecon_uix` (`userid`,`contactid`),
  KEY `mdl_messcont_use_ix` (`userid`),
  KEY `mdl_messcont_con_ix` (`contactid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maintains lists of contacts between users';

--
-- Dumping data for table `mdl_message_contacts`
--


--
-- Table structure for table `mdl_message_conversation_members`
--

CREATE TABLE `mdl_message_conversation_members` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `conversationid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messconvmemb_con_ix` (`conversationid`),
  KEY `mdl_messconvmemb_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all members in a conversations';

--
-- Dumping data for table `mdl_message_conversation_members`
--


--
-- Table structure for table `mdl_message_conversations`
--

CREATE TABLE `mdl_message_conversations` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` bigint(10) NOT NULL DEFAULT '1',
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `convhash` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itemtype` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itemid` bigint(10) DEFAULT NULL,
  `contextid` bigint(10) DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messconv_typ_ix` (`type`),
  KEY `mdl_messconv_con_ix` (`convhash`),
  KEY `mdl_messconv_comiteitecon_ix` (`component`,`itemtype`,`itemid`,`contextid`),
  KEY `mdl_messconv_con2_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all message conversations';

--
-- Dumping data for table `mdl_message_conversations`
--


--
-- Table structure for table `mdl_message_popup`
--

CREATE TABLE `mdl_message_popup` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `messageid` bigint(10) NOT NULL,
  `isread` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messpopu_mesisr_uix` (`messageid`,`isread`),
  KEY `mdl_messpopu_isr_ix` (`isread`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Keep state of notifications for the popup message processor';

--
-- Dumping data for table `mdl_message_popup`
--


--
-- Table structure for table `mdl_message_popup_notifications`
--

CREATE TABLE `mdl_message_popup_notifications` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `notificationid` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messpopunoti_not_ix` (`notificationid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of notifications to display in the message output popup';

--
-- Dumping data for table `mdl_message_popup_notifications`
--


--
-- Table structure for table `mdl_message_processors`
--

CREATE TABLE `mdl_message_processors` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(166) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of message output plugins';

--
-- Dumping data for table `mdl_message_processors`
--

INSERT INTO `mdl_message_processors` VALUES (1,'airnotifier',0),(2,'email',1),(3,'jabber',1),(4,'popup',1);

--
-- Table structure for table `mdl_message_providers`
--

CREATE TABLE `mdl_message_providers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `component` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `capability` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messprov_comnam_uix` (`component`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table stores the message providers (modules and core sy';

--
-- Dumping data for table `mdl_message_providers`
--

INSERT INTO `mdl_message_providers` VALUES (1,'notices','moodle','moodle/site:config'),(2,'errors','moodle','moodle/site:config'),(3,'availableupdate','moodle','moodle/site:config'),(4,'instantmessage','moodle',NULL),(5,'backup','moodle','moodle/site:config'),(6,'courserequested','moodle','moodle/site:approvecourse'),(7,'courserequestapproved','moodle','moodle/course:request'),(8,'courserequestrejected','moodle','moodle/course:request'),(9,'badgerecipientnotice','moodle','moodle/badges:earnbadge'),(10,'badgecreatornotice','moodle',NULL),(11,'competencyplancomment','moodle',NULL),(12,'competencyusercompcomment','moodle',NULL),(13,'insights','moodle','moodle/analytics:listinsights'),(14,'messagecontactrequests','moodle',NULL),(15,'assign_notification','mod_assign',NULL),(16,'assignment_updates','mod_assignment',NULL),(17,'submission','mod_feedback',NULL),(18,'message','mod_feedback',NULL),(19,'posts','mod_forum',NULL),(20,'digests','mod_forum',NULL),(21,'graded_essay','mod_lesson',NULL),(22,'submission','mod_quiz','mod/quiz:emailnotifysubmission'),(23,'confirmation','mod_quiz','mod/quiz:emailconfirmsubmission'),(24,'attempt_overdue','mod_quiz','mod/quiz:emailwarnoverdue'),(25,'flatfile_enrolment','enrol_flatfile',NULL),(26,'imsenterprise_enrolment','enrol_imsenterprise',NULL),(27,'expiry_notification','enrol_manual',NULL),(28,'paypal_enrolment','enrol_paypal',NULL),(29,'expiry_notification','enrol_self',NULL),(30,'contactdataprotectionofficer','tool_dataprivacy','tool/dataprivacy:managedatarequests'),(31,'datarequestprocessingresults','tool_dataprivacy',NULL),(32,'notifyexceptions','tool_dataprivacy','tool/dataprivacy:managedatarequests'),(33,'invalidrecipienthandler','tool_messageinbound',NULL),(34,'messageprocessingerror','tool_messageinbound',NULL),(35,'messageprocessingsuccess','tool_messageinbound',NULL),(36,'notification','tool_monitor','tool/monitor:subscribe');

--
-- Table structure for table `mdl_message_read`
--

CREATE TABLE `mdl_message_read` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext COLLATE utf8_unicode_ci,
  `contexturlname` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timeread` bigint(10) NOT NULL DEFAULT '0',
  `timeuserfromdeleted` bigint(10) NOT NULL DEFAULT '0',
  `timeusertodeleted` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `eventtype` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messread_useusetimtim_ix` (`useridfrom`,`useridto`,`timeuserfromdeleted`,`timeusertodeleted`),
  KEY `mdl_messread_nottim_ix` (`notification`,`timeread`),
  KEY `mdl_messread_usetimnot_ix` (`useridfrom`,`timeuserfromdeleted`,`notification`),
  KEY `mdl_messread_usetimnot2_ix` (`useridto`,`timeusertodeleted`,`notification`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all messages that have been read';

--
-- Dumping data for table `mdl_message_read`
--


--
-- Table structure for table `mdl_message_user_actions`
--

CREATE TABLE `mdl_message_user_actions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `messageid` bigint(10) NOT NULL,
  `action` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messuseracti_usemesact_uix` (`userid`,`messageid`,`action`),
  KEY `mdl_messuseracti_use_ix` (`userid`),
  KEY `mdl_messuseracti_mes_ix` (`messageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all per-user actions on individual messages';

--
-- Dumping data for table `mdl_message_user_actions`
--


--
-- Table structure for table `mdl_message_users_blocked`
--

CREATE TABLE `mdl_message_users_blocked` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `blockeduserid` bigint(10) NOT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messuserbloc_useblo_uix` (`userid`,`blockeduserid`),
  KEY `mdl_messuserbloc_use_ix` (`userid`),
  KEY `mdl_messuserbloc_blo_ix` (`blockeduserid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maintains lists of blocked users';

--
-- Dumping data for table `mdl_message_users_blocked`
--


--
-- Table structure for table `mdl_messageinbound_datakeys`
--

CREATE TABLE `mdl_messageinbound_datakeys` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `handler` bigint(10) NOT NULL,
  `datavalue` bigint(10) NOT NULL,
  `datakey` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `expires` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messdata_handat_uix` (`handler`,`datavalue`),
  KEY `mdl_messdata_han_ix` (`handler`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Inbound Message data item secret keys.';

--
-- Dumping data for table `mdl_messageinbound_datakeys`
--


--
-- Table structure for table `mdl_messageinbound_handlers`
--

CREATE TABLE `mdl_messageinbound_handlers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `defaultexpiration` bigint(10) NOT NULL DEFAULT '86400',
  `validateaddress` tinyint(1) NOT NULL DEFAULT '1',
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messhand_cla_uix` (`classname`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Inbound Message Handler definitions.';

--
-- Dumping data for table `mdl_messageinbound_handlers`
--

INSERT INTO `mdl_messageinbound_handlers` VALUES (1,'core','\\core\\message\\inbound\\private_files_handler',0,1,0),(2,'mod_forum','\\mod_forum\\message\\inbound\\reply_handler',604800,1,0),(3,'tool_messageinbound','\\tool_messageinbound\\message\\inbound\\invalid_recipient_handler',604800,0,1);

--
-- Table structure for table `mdl_messageinbound_messagelist`
--

CREATE TABLE `mdl_messageinbound_messagelist` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `messageid` longtext COLLATE utf8_unicode_ci NOT NULL,
  `userid` bigint(10) NOT NULL,
  `address` longtext COLLATE utf8_unicode_ci NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messmess_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A list of message IDs for existing replies';

--
-- Dumping data for table `mdl_messageinbound_messagelist`
--


--
-- Table structure for table `mdl_messages`
--

CREATE TABLE `mdl_messages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL,
  `conversationid` bigint(10) NOT NULL,
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` tinyint(1) NOT NULL DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_mess_contim_ix` (`conversationid`,`timecreated`),
  KEY `mdl_mess_use_ix` (`useridfrom`),
  KEY `mdl_mess_con_ix` (`conversationid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all messages';

--
-- Dumping data for table `mdl_messages`
--


--
-- Table structure for table `mdl_mnet_application`
--

CREATE TABLE `mdl_mnet_application` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `display_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `xmlrpc_server_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sso_land_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sso_jump_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Information about applications on remote hosts';

--
-- Dumping data for table `mdl_mnet_application`
--

INSERT INTO `mdl_mnet_application` VALUES (1,'moodle','Moodle','/mnet/xmlrpc/server.php','/auth/mnet/land.php','/auth/mnet/jump.php'),(2,'mahara','Mahara','/api/xmlrpc/server.php','/auth/xmlrpc/land.php','/auth/xmlrpc/jump.php');

--
-- Table structure for table `mdl_mnet_host`
--

CREATE TABLE `mdl_mnet_host` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `wwwroot` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(80) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `public_key` longtext COLLATE utf8_unicode_ci NOT NULL,
  `public_key_expires` bigint(10) NOT NULL DEFAULT '0',
  `transport` tinyint(2) NOT NULL DEFAULT '0',
  `portno` mediumint(5) NOT NULL DEFAULT '0',
  `last_connect_time` bigint(10) NOT NULL DEFAULT '0',
  `last_log_id` bigint(10) NOT NULL DEFAULT '0',
  `force_theme` tinyint(1) NOT NULL DEFAULT '0',
  `theme` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `applicationid` bigint(10) NOT NULL DEFAULT '1',
  `sslverification` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_mnethost_app_ix` (`applicationid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Information about the local and remote hosts for RPC';

--
-- Dumping data for table `mdl_mnet_host`
--

INSERT INTO `mdl_mnet_host` VALUES (1,0,'http://localhost/moodle','::1','','',0,0,0,0,0,0,NULL,1,0),(2,0,'','','All Hosts','',0,0,0,0,0,0,NULL,1,0);

--
-- Table structure for table `mdl_mnet_host2service`
--

CREATE TABLE `mdl_mnet_host2service` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL DEFAULT '0',
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `publish` tinyint(1) NOT NULL DEFAULT '0',
  `subscribe` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnethost_hosser_uix` (`hostid`,`serviceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Information about the services for a given host';

--
-- Dumping data for table `mdl_mnet_host2service`
--


--
-- Table structure for table `mdl_mnet_log`
--

CREATE TABLE `mdl_mnet_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL DEFAULT '0',
  `remoteid` bigint(10) NOT NULL DEFAULT '0',
  `time` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `ip` varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `coursename` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cmid` bigint(10) NOT NULL DEFAULT '0',
  `action` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_mnetlog_hosusecou_ix` (`hostid`,`userid`,`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Store session data from users migrating to other sites';

--
-- Dumping data for table `mdl_mnet_log`
--


--
-- Table structure for table `mdl_mnet_remote_rpc`
--

CREATE TABLE `mdl_mnet_remote_rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `functionname` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `xmlrpcpath` varchar(80) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `plugintype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pluginname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table describes functions that might be called remotely';

--
-- Dumping data for table `mdl_mnet_remote_rpc`
--

INSERT INTO `mdl_mnet_remote_rpc` VALUES (1,'user_authorise','auth/mnet/auth.php/user_authorise','auth','mnet',1),(2,'keepalive_server','auth/mnet/auth.php/keepalive_server','auth','mnet',1),(3,'kill_children','auth/mnet/auth.php/kill_children','auth','mnet',1),(4,'refresh_log','auth/mnet/auth.php/refresh_log','auth','mnet',1),(5,'fetch_user_image','auth/mnet/auth.php/fetch_user_image','auth','mnet',1),(6,'fetch_theme_info','auth/mnet/auth.php/fetch_theme_info','auth','mnet',1),(7,'update_enrolments','auth/mnet/auth.php/update_enrolments','auth','mnet',1),(8,'keepalive_client','auth/mnet/auth.php/keepalive_client','auth','mnet',1),(9,'kill_child','auth/mnet/auth.php/kill_child','auth','mnet',1),(10,'available_courses','enrol/mnet/enrol.php/available_courses','enrol','mnet',1),(11,'user_enrolments','enrol/mnet/enrol.php/user_enrolments','enrol','mnet',1),(12,'enrol_user','enrol/mnet/enrol.php/enrol_user','enrol','mnet',1),(13,'unenrol_user','enrol/mnet/enrol.php/unenrol_user','enrol','mnet',1),(14,'course_enrolments','enrol/mnet/enrol.php/course_enrolments','enrol','mnet',1),(15,'send_content_intent','portfolio/mahara/lib.php/send_content_intent','portfolio','mahara',1),(16,'send_content_ready','portfolio/mahara/lib.php/send_content_ready','portfolio','mahara',1);

--
-- Table structure for table `mdl_mnet_remote_service2rpc`
--

CREATE TABLE `mdl_mnet_remote_service2rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `rpcid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetremoserv_rpcser_uix` (`rpcid`,`serviceid`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Group functions or methods under a service';

--
-- Dumping data for table `mdl_mnet_remote_service2rpc`
--

INSERT INTO `mdl_mnet_remote_service2rpc` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,2,8),(9,2,9),(10,3,10),(11,3,11),(12,3,12),(13,3,13),(14,3,14),(15,4,15),(16,4,16);

--
-- Table structure for table `mdl_mnet_rpc`
--

CREATE TABLE `mdl_mnet_rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `functionname` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `xmlrpcpath` varchar(80) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `plugintype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pluginname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  `help` longtext COLLATE utf8_unicode_ci NOT NULL,
  `profile` longtext COLLATE utf8_unicode_ci NOT NULL,
  `filename` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classname` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `static` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_mnetrpc_enaxml_ix` (`enabled`,`xmlrpcpath`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Functions or methods that we may publish or subscribe to';

--
-- Dumping data for table `mdl_mnet_rpc`
--

INSERT INTO `mdl_mnet_rpc` VALUES (1,'user_authorise','auth/mnet/auth.php/user_authorise','auth','mnet',1,'Return user data for the provided token, compare with user_agent string.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:5:\"token\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:37:\"The unique ID provided by remotehost.\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:18:\"User Agent string.\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:44:\"$userdata Array of user info for remote host\";}}','auth.php','auth_plugin_mnet',0),(2,'keepalive_server','auth/mnet/auth.php/keepalive_server','auth','mnet',1,'Receives an array of usernames from a remote machine and prods their\nsessions to keep them alive','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"array\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:21:\"An array of usernames\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"\"All ok\" or an error message\";}}','auth.php','auth_plugin_mnet',0),(3,'kill_children','auth/mnet/auth.php/kill_children','auth','mnet',1,'The IdP uses this function to kill child sessions on other hosts','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"Username for session to kill\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:35:\"SHA1 hash of user agent to look for\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:39:\"A plaintext report of what has happened\";}}','auth.php','auth_plugin_mnet',0),(4,'refresh_log','auth/mnet/auth.php/refresh_log','auth','mnet',1,'Receives an array of log entries from an SP and adds them to the mnet_log\ntable','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"array\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:21:\"An array of usernames\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"\"All ok\" or an error message\";}}','auth.php','auth_plugin_mnet',0),(5,'fetch_user_image','auth/mnet/auth.php/fetch_user_image','auth','mnet',1,'Returns the user\'s profile image info\nIf the user exists and has a profile picture, the returned array will contain keys:\nf1          - the content of the default 100x100px image\nf1_mimetype - the mimetype of the f1 file\nf2          - the content of the 35x35px variant of the image\nf2_mimetype - the mimetype of the f2 file\nThe mimetype information was added in Moodle 2.0. In Moodle 1.x, images are always jpegs.','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:18:\"The id of the user\";}}s:6:\"return\";a:2:{s:4:\"type\";s:11:\"false|array\";s:11:\"description\";s:84:\"false if user not found, empty array if no picture exists, array with data otherwise\";}}','auth.php','auth_plugin_mnet',0),(6,'fetch_theme_info','auth/mnet/auth.php/fetch_theme_info','auth','mnet',1,'Returns the theme information and logo url as strings.','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:14:\"The theme info\";}}','auth.php','auth_plugin_mnet',0),(7,'update_enrolments','auth/mnet/auth.php/update_enrolments','auth','mnet',1,'Invoke this function _on_ the IDP to update it with enrolment info local to\nthe SP right after calling user_authorise()\nNormally called by the SP after calling user_authorise()','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:12:\"The username\";}i:1;a:3:{s:4:\"name\";s:7:\"courses\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:75:\"Assoc array of courses following the structure of mnetservice_enrol_courses\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:0:\"\";}}','auth.php','auth_plugin_mnet',0),(8,'keepalive_client','auth/mnet/auth.php/keepalive_client','auth','mnet',1,'Poll the IdP server to let it know that a user it has authenticated is still\nonline','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"void\";s:11:\"description\";s:0:\"\";}}','auth.php','auth_plugin_mnet',0),(9,'kill_child','auth/mnet/auth.php/kill_child','auth','mnet',1,'When the IdP requests that child sessions are terminated,\nthis function will be called on each of the child hosts. The machine that\ncalls the function (over xmlrpc) provides us with the mnethostid we need.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"Username for session to kill\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:35:\"SHA1 hash of user agent to look for\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:15:\"True on success\";}}','auth.php','auth_plugin_mnet',0),(10,'available_courses','enrol/mnet/enrol.php/available_courses','enrol','mnet',1,'Returns list of courses that we offer to the caller for remote enrolment of their users\nSince Moodle 2.0, courses are made available for MNet peers by creating an instance\nof enrol_mnet plugin for the course. Hidden courses are not returned. If there are two\ninstances - one specific for the host and one for \'All hosts\', the setting of the specific\none is used. The id of the peer is kept in customint1, no other custom fields are used.','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(11,'user_enrolments','enrol/mnet/enrol.php/user_enrolments','enrol','mnet',1,'This method has never been implemented in Moodle MNet API','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:11:\"empty array\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(12,'enrol_user','enrol/mnet/enrol.php/enrol_user','enrol','mnet',1,'Enrol remote user to our course\nIf we do not have local record for the remote user in our database,\nit gets created here.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"userdata\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:43:\"user details {@see mnet_fields_to_import()}\";}i:1;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:19:\"our local course id\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:69:\"true if the enrolment has been successful, throws exception otherwise\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(13,'unenrol_user','enrol/mnet/enrol.php/unenrol_user','enrol','mnet',1,'Unenrol remote user from our course\nOnly users enrolled via enrol_mnet plugin can be unenrolled remotely. If the\nremote user is enrolled into the local course via some other enrol plugin\n(enrol_manual for example), the remote host can\'t touch such enrolment. Please\ndo not report this behaviour as bug, it is a feature ;-)','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:18:\"of the remote user\";}i:1;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:19:\"of our local course\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:71:\"true if the unenrolment has been successful, throws exception otherwise\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(14,'course_enrolments','enrol/mnet/enrol.php/course_enrolments','enrol','mnet',1,'Returns a list of users from the client server who are enrolled in our course\nSuitable instance of enrol_mnet must be created in the course. This method will not\nreturn any information about the enrolments in courses that are not available for\nremote enrolment, even if their users are enrolled into them via other plugin\n(note the difference from {@link self::user_enrolments()}).\nThis method will return enrolment information for users from hosts regardless\nthe enrolment plugin. It does not matter if the user was enrolled remotely by\ntheir admin or locally. Once the course is available for remote enrolments, we\nwill tell them everything about their users.\nIn Moodle 1.x the returned array used to be indexed by username. The side effect\nof MDL-19219 fix is that we do not need to use such index and therefore we can\nreturn all enrolment records. MNet clients 1.x will only use the last record for\nthe student, if she is enrolled via multiple plugins.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:16:\"ID of our course\";}i:1;a:3:{s:4:\"name\";s:5:\"roles\";s:4:\"type\";s:12:\"string|array\";s:11:\"description\";s:58:\"comma separated list of role shortnames (or array of them)\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(15,'fetch_file','portfolio/mahara/lib.php/fetch_file','portfolio','mahara',1,'xmlrpc (mnet) function to get the file.\nreads in the file and returns it base_64 encoded\nso that it can be enrypted by mnet.','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"token\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:56:\"the token recieved previously during send_content_intent\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"void\";s:11:\"description\";s:0:\"\";}}','lib.php','portfolio_plugin_mahara',1);

--
-- Table structure for table `mdl_mnet_service`
--

CREATE TABLE `mdl_mnet_service` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `apiversion` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `offer` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A service is a group of functions';

--
-- Dumping data for table `mdl_mnet_service`
--

INSERT INTO `mdl_mnet_service` VALUES (1,'sso_idp','','1',1),(2,'sso_sp','','1',1),(3,'mnet_enrol','','1',1),(4,'pf','','1',1);

--
-- Table structure for table `mdl_mnet_service2rpc`
--

CREATE TABLE `mdl_mnet_service2rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `rpcid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetserv_rpcser_uix` (`rpcid`,`serviceid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Group functions or methods under a service';

--
-- Dumping data for table `mdl_mnet_service2rpc`
--

INSERT INTO `mdl_mnet_service2rpc` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,2,8),(9,2,9),(10,3,10),(11,3,11),(12,3,12),(13,3,13),(14,3,14),(15,4,15);

--
-- Table structure for table `mdl_mnet_session`
--

CREATE TABLE `mdl_mnet_session` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `token` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mnethostid` bigint(10) NOT NULL DEFAULT '0',
  `useragent` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `confirm_timeout` bigint(10) NOT NULL DEFAULT '0',
  `session_id` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `expires` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetsess_tok_uix` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Store session data from users migrating to other sites';

--
-- Dumping data for table `mdl_mnet_session`
--


--
-- Table structure for table `mdl_mnet_sso_access_control`
--

CREATE TABLE `mdl_mnet_sso_access_control` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mnet_host_id` bigint(10) NOT NULL DEFAULT '0',
  `accessctrl` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'allow',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetssoaccecont_mneuse_uix` (`mnet_host_id`,`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Users by host permitted (or not) to login from a remote prov';

--
-- Dumping data for table `mdl_mnet_sso_access_control`
--


--
-- Table structure for table `mdl_mnetservice_enrol_courses`
--

CREATE TABLE `mdl_mnetservice_enrol_courses` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL,
  `remoteid` bigint(10) NOT NULL,
  `categoryid` bigint(10) NOT NULL,
  `categoryname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `fullname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci NOT NULL,
  `summaryformat` smallint(3) DEFAULT '0',
  `startdate` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `rolename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetenrocour_hosrem_uix` (`hostid`,`remoteid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Caches the information fetched via XML-RPC about courses on ';

--
-- Dumping data for table `mdl_mnetservice_enrol_courses`
--


--
-- Table structure for table `mdl_mnetservice_enrol_enrolments`
--

CREATE TABLE `mdl_mnetservice_enrol_enrolments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `remotecourseid` bigint(10) NOT NULL,
  `rolename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enroltime` bigint(10) NOT NULL DEFAULT '0',
  `enroltype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_mnetenroenro_use_ix` (`userid`),
  KEY `mdl_mnetenroenro_hos_ix` (`hostid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Caches the information about enrolments of our local users i';

--
-- Dumping data for table `mdl_mnetservice_enrol_enrolments`
--


--
-- Table structure for table `mdl_modules`
--

CREATE TABLE `mdl_modules` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cron` bigint(10) NOT NULL DEFAULT '0',
  `lastcron` bigint(10) NOT NULL DEFAULT '0',
  `search` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_modu_nam_ix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='modules available in the site';

--
-- Dumping data for table `mdl_modules`
--

INSERT INTO `mdl_modules` VALUES (1,'assign',60,1547537402,'',1),(2,'assignment',60,0,'',0),(3,'book',0,0,'',1),(4,'chat',300,1547537402,'',1),(5,'choice',0,0,'',1),(6,'data',0,0,'',1),(7,'feedback',0,0,'',1),(8,'folder',0,0,'',1),(9,'forum',0,0,'',1),(10,'glossary',0,0,'',1),(11,'imscp',0,0,'',1),(12,'label',0,0,'',1),(13,'lesson',0,0,'',1),(14,'lti',0,0,'',1),(15,'page',0,0,'',1),(16,'quiz',60,1547537402,'',1),(17,'resource',0,0,'',1),(18,'scorm',0,0,'',1),(19,'survey',0,0,'',1),(20,'url',0,0,'',1),(21,'wiki',0,0,'',1),(22,'workshop',60,1547537402,'',1);

--
-- Table structure for table `mdl_my_pages`
--

CREATE TABLE `mdl_my_pages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) DEFAULT '0',
  `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `private` tinyint(1) NOT NULL DEFAULT '1',
  `sortorder` mediumint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_mypage_usepri_ix` (`userid`,`private`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Extra user pages for the My Moodle system';

--
-- Dumping data for table `mdl_my_pages`
--

INSERT INTO `mdl_my_pages` VALUES (1,NULL,'__default',0,0),(2,NULL,'__default',1,0),(3,2,'__default',1,0);

--
-- Table structure for table `mdl_notifications`
--

CREATE TABLE `mdl_notifications` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL,
  `useridto` bigint(10) NOT NULL,
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` tinyint(1) NOT NULL DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `eventtype` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contexturl` longtext COLLATE utf8_unicode_ci,
  `contexturlname` longtext COLLATE utf8_unicode_ci,
  `timeread` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_noti_use_ix` (`useridto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all notifications';

--
-- Dumping data for table `mdl_notifications`
--


--
-- Table structure for table `mdl_oauth2_access_token`
--

CREATE TABLE `mdl_oauth2_access_token` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `issuerid` bigint(10) NOT NULL,
  `token` longtext COLLATE utf8_unicode_ci NOT NULL,
  `expires` bigint(10) NOT NULL,
  `scope` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_oautaccetoke_iss_uix` (`issuerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores access tokens for system accounts in order to be able';

--
-- Dumping data for table `mdl_oauth2_access_token`
--


--
-- Table structure for table `mdl_oauth2_endpoint`
--

CREATE TABLE `mdl_oauth2_endpoint` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url` longtext COLLATE utf8_unicode_ci NOT NULL,
  `issuerid` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_oautendp_iss_ix` (`issuerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Describes the named endpoint for an oauth2 service.';

--
-- Dumping data for table `mdl_oauth2_endpoint`
--


--
-- Table structure for table `mdl_oauth2_issuer`
--

CREATE TABLE `mdl_oauth2_issuer` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `image` longtext COLLATE utf8_unicode_ci NOT NULL,
  `baseurl` longtext COLLATE utf8_unicode_ci NOT NULL,
  `clientid` longtext COLLATE utf8_unicode_ci NOT NULL,
  `clientsecret` longtext COLLATE utf8_unicode_ci NOT NULL,
  `loginscopes` longtext COLLATE utf8_unicode_ci NOT NULL,
  `loginscopesoffline` longtext COLLATE utf8_unicode_ci NOT NULL,
  `loginparams` longtext COLLATE utf8_unicode_ci NOT NULL,
  `loginparamsoffline` longtext COLLATE utf8_unicode_ci NOT NULL,
  `alloweddomains` longtext COLLATE utf8_unicode_ci NOT NULL,
  `scopessupported` longtext COLLATE utf8_unicode_ci,
  `enabled` tinyint(2) NOT NULL DEFAULT '1',
  `showonloginpage` tinyint(2) NOT NULL DEFAULT '1',
  `basicauth` tinyint(2) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL,
  `requireconfirmation` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Details for an oauth 2 connect identity issuer.';

--
-- Dumping data for table `mdl_oauth2_issuer`
--


--
-- Table structure for table `mdl_oauth2_system_account`
--

CREATE TABLE `mdl_oauth2_system_account` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `issuerid` bigint(10) NOT NULL,
  `refreshtoken` longtext COLLATE utf8_unicode_ci NOT NULL,
  `grantedscopes` longtext COLLATE utf8_unicode_ci NOT NULL,
  `email` longtext COLLATE utf8_unicode_ci,
  `username` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_oautsystacco_iss_uix` (`issuerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stored details used to get an access token as a system user ';

--
-- Dumping data for table `mdl_oauth2_system_account`
--


--
-- Table structure for table `mdl_oauth2_user_field_mapping`
--

CREATE TABLE `mdl_oauth2_user_field_mapping` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timemodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `issuerid` bigint(10) NOT NULL,
  `externalfield` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `internalfield` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_oautuserfielmapp_issin_uix` (`issuerid`,`internalfield`),
  KEY `mdl_oautuserfielmapp_iss_ix` (`issuerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Mapping of oauth user fields to moodle fields.';

--
-- Dumping data for table `mdl_oauth2_user_field_mapping`
--


--
-- Table structure for table `mdl_page`
--

CREATE TABLE `mdl_page` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `content` longtext COLLATE utf8_unicode_ci,
  `contentformat` smallint(4) NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) DEFAULT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext COLLATE utf8_unicode_ci,
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_page_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each record is one page and its config data';

--
-- Dumping data for table `mdl_page`
--


--
-- Table structure for table `mdl_portfolio_instance`
--

CREATE TABLE `mdl_portfolio_instance` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `plugin` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='base table (not including config data) for instances of port';

--
-- Dumping data for table `mdl_portfolio_instance`
--


--
-- Table structure for table `mdl_portfolio_instance_config`
--

CREATE TABLE `mdl_portfolio_instance_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `mdl_portinstconf_nam_ix` (`name`),
  KEY `mdl_portinstconf_ins_ix` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='config for portfolio plugin instances';

--
-- Dumping data for table `mdl_portfolio_instance_config`
--


--
-- Table structure for table `mdl_portfolio_instance_user`
--

CREATE TABLE `mdl_portfolio_instance_user` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `mdl_portinstuser_ins_ix` (`instance`),
  KEY `mdl_portinstuser_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data for portfolio instances.';

--
-- Dumping data for table `mdl_portfolio_instance_user`
--


--
-- Table structure for table `mdl_portfolio_log`
--

CREATE TABLE `mdl_portfolio_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `time` bigint(10) NOT NULL,
  `portfolio` bigint(10) NOT NULL,
  `caller_class` varchar(150) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `caller_file` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `caller_component` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `caller_sha1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tempdataid` bigint(10) NOT NULL DEFAULT '0',
  `returnurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `continueurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_portlog_use_ix` (`userid`),
  KEY `mdl_portlog_por_ix` (`portfolio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='log of portfolio transfers (used to later check for duplicat';

--
-- Dumping data for table `mdl_portfolio_log`
--


--
-- Table structure for table `mdl_portfolio_mahara_queue`
--

CREATE TABLE `mdl_portfolio_mahara_queue` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `transferid` bigint(10) NOT NULL,
  `token` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_portmahaqueu_tok_ix` (`token`),
  KEY `mdl_portmahaqueu_tra_ix` (`transferid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='maps mahara tokens to transfer ids';

--
-- Dumping data for table `mdl_portfolio_mahara_queue`
--


--
-- Table structure for table `mdl_portfolio_tempdata`
--

CREATE TABLE `mdl_portfolio_tempdata` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `data` longtext COLLATE utf8_unicode_ci,
  `expirytime` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `instance` bigint(10) DEFAULT '0',
  `queued` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_porttemp_use_ix` (`userid`),
  KEY `mdl_porttemp_ins_ix` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='stores temporary data for portfolio exports. the id of this ';

--
-- Dumping data for table `mdl_portfolio_tempdata`
--


--
-- Table structure for table `mdl_post`
--

CREATE TABLE `mdl_post` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `moduleid` bigint(10) NOT NULL DEFAULT '0',
  `coursemoduleid` bigint(10) NOT NULL DEFAULT '0',
  `subject` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci,
  `content` longtext COLLATE utf8_unicode_ci,
  `uniquehash` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `rating` bigint(10) NOT NULL DEFAULT '0',
  `format` bigint(10) NOT NULL DEFAULT '0',
  `summaryformat` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `publishstate` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'draft',
  `lastmodified` bigint(10) NOT NULL DEFAULT '0',
  `created` bigint(10) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_post_iduse_uix` (`id`,`userid`),
  KEY `mdl_post_las_ix` (`lastmodified`),
  KEY `mdl_post_mod_ix` (`module`),
  KEY `mdl_post_sub_ix` (`subject`),
  KEY `mdl_post_use_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Generic post table to hold data blog entries etc in differen';

--
-- Dumping data for table `mdl_post`
--


--
-- Table structure for table `mdl_profiling`
--

CREATE TABLE `mdl_profiling` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `runid` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `data` longtext COLLATE utf8_unicode_ci NOT NULL,
  `totalexecutiontime` bigint(10) NOT NULL,
  `totalcputime` bigint(10) NOT NULL,
  `totalcalls` bigint(10) NOT NULL,
  `totalmemory` bigint(10) NOT NULL,
  `runreference` tinyint(2) NOT NULL DEFAULT '0',
  `runcomment` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_prof_run_uix` (`runid`),
  KEY `mdl_prof_urlrun_ix` (`url`,`runreference`),
  KEY `mdl_prof_timrun_ix` (`timecreated`,`runreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the results of all the profiling runs';

--
-- Dumping data for table `mdl_profiling`
--


--
-- Table structure for table `mdl_qtype_ddimageortext`
--

CREATE TABLE `mdl_qtype_ddimageortext` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddim_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines drag and drop (text or images onto a background imag';

--
-- Dumping data for table `mdl_qtype_ddimageortext`
--


--
-- Table structure for table `mdl_qtype_ddimageortext_drags`
--

CREATE TABLE `mdl_qtype_ddimageortext_drags` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `no` bigint(10) NOT NULL DEFAULT '0',
  `draggroup` bigint(10) NOT NULL DEFAULT '0',
  `infinite` smallint(4) NOT NULL DEFAULT '0',
  `label` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddimdrag_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Images to drag. Actual file names are not stored here we use';

--
-- Dumping data for table `mdl_qtype_ddimageortext_drags`
--


--
-- Table structure for table `mdl_qtype_ddimageortext_drops`
--

CREATE TABLE `mdl_qtype_ddimageortext_drops` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `no` bigint(10) NOT NULL DEFAULT '0',
  `xleft` bigint(10) NOT NULL DEFAULT '0',
  `ytop` bigint(10) NOT NULL DEFAULT '0',
  `choice` bigint(10) NOT NULL DEFAULT '0',
  `label` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddimdrop_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Drop boxes';

--
-- Dumping data for table `mdl_qtype_ddimageortext_drops`
--


--
-- Table structure for table `mdl_qtype_ddmarker`
--

CREATE TABLE `mdl_qtype_ddmarker` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  `showmisplaced` smallint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddma_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines drag and drop (text or images onto a background imag';

--
-- Dumping data for table `mdl_qtype_ddmarker`
--


--
-- Table structure for table `mdl_qtype_ddmarker_drags`
--

CREATE TABLE `mdl_qtype_ddmarker_drags` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `no` bigint(10) NOT NULL DEFAULT '0',
  `label` longtext COLLATE utf8_unicode_ci NOT NULL,
  `infinite` smallint(4) NOT NULL DEFAULT '0',
  `noofdrags` bigint(10) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddmadrag_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Labels for markers to drag.';

--
-- Dumping data for table `mdl_qtype_ddmarker_drags`
--


--
-- Table structure for table `mdl_qtype_ddmarker_drops`
--

CREATE TABLE `mdl_qtype_ddmarker_drops` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `no` bigint(10) NOT NULL DEFAULT '0',
  `shape` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `coords` longtext COLLATE utf8_unicode_ci NOT NULL,
  `choice` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypddmadrop_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='drop regions';

--
-- Dumping data for table `mdl_qtype_ddmarker_drops`
--


--
-- Table structure for table `mdl_qtype_essay_options`
--

CREATE TABLE `mdl_qtype_essay_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL,
  `responseformat` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'editor',
  `responserequired` tinyint(2) NOT NULL DEFAULT '1',
  `responsefieldlines` smallint(4) NOT NULL DEFAULT '15',
  `attachments` smallint(4) NOT NULL DEFAULT '0',
  `attachmentsrequired` smallint(4) NOT NULL DEFAULT '0',
  `graderinfo` longtext COLLATE utf8_unicode_ci,
  `graderinfoformat` smallint(4) NOT NULL DEFAULT '0',
  `responsetemplate` longtext COLLATE utf8_unicode_ci,
  `responsetemplateformat` smallint(4) NOT NULL DEFAULT '0',
  `filetypeslist` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypessaopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Extra options for essay questions.';

--
-- Dumping data for table `mdl_qtype_essay_options`
--


--
-- Table structure for table `mdl_qtype_match_options`
--

CREATE TABLE `mdl_qtype_match_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypmatcopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines the question-type specific options for matching ques';

--
-- Dumping data for table `mdl_qtype_match_options`
--


--
-- Table structure for table `mdl_qtype_match_subquestions`
--

CREATE TABLE `mdl_qtype_match_subquestions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `questiontext` longtext COLLATE utf8_unicode_ci NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `answertext` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypmatcsubq_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The subquestions that make up a matching question';

--
-- Dumping data for table `mdl_qtype_match_subquestions`
--


--
-- Table structure for table `mdl_qtype_multichoice_options`
--

CREATE TABLE `mdl_qtype_multichoice_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `layout` smallint(4) NOT NULL DEFAULT '0',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `answernumbering` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'abc',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypmultopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for multiple choice questions';

--
-- Dumping data for table `mdl_qtype_multichoice_options`
--


--
-- Table structure for table `mdl_qtype_randomsamatch_options`
--

CREATE TABLE `mdl_qtype_randomsamatch_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `choose` bigint(10) NOT NULL DEFAULT '4',
  `subcats` tinyint(2) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtyprandopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about a random short-answer matching question';

--
-- Dumping data for table `mdl_qtype_randomsamatch_options`
--


--
-- Table structure for table `mdl_qtype_shortanswer_options`
--

CREATE TABLE `mdl_qtype_shortanswer_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `usecase` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypshoropti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for short answer questions';

--
-- Dumping data for table `mdl_qtype_shortanswer_options`
--


--
-- Table structure for table `mdl_question`
--

CREATE TABLE `mdl_question` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `category` bigint(10) NOT NULL DEFAULT '0',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `questiontext` longtext COLLATE utf8_unicode_ci NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `generalfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `generalfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `defaultmark` decimal(12,7) NOT NULL DEFAULT '1.0000000',
  `penalty` decimal(12,7) NOT NULL DEFAULT '0.3333333',
  `qtype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `length` bigint(10) NOT NULL DEFAULT '1',
  `stamp` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hidden` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `createdby` bigint(10) DEFAULT NULL,
  `modifiedby` bigint(10) DEFAULT NULL,
  `idnumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_ques_catidn_uix` (`category`,`idnumber`),
  KEY `mdl_ques_qty_ix` (`qtype`),
  KEY `mdl_ques_cat_ix` (`category`),
  KEY `mdl_ques_par_ix` (`parent`),
  KEY `mdl_ques_cre_ix` (`createdby`),
  KEY `mdl_ques_mod_ix` (`modifiedby`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The questions themselves';

--
-- Dumping data for table `mdl_question`
--


--
-- Table structure for table `mdl_question_answers`
--

CREATE TABLE `mdl_question_answers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` longtext COLLATE utf8_unicode_ci NOT NULL,
  `answerformat` tinyint(2) NOT NULL DEFAULT '0',
  `fraction` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `feedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `feedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesansw_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Answers, with a fractional grade (0-1) and feedback';

--
-- Dumping data for table `mdl_question_answers`
--


--
-- Table structure for table `mdl_question_attempt_step_data`
--

CREATE TABLE `mdl_question_attempt_step_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `attemptstepid` bigint(10) NOT NULL,
  `name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `mdl_quesattestepdata_att_ix` (`attemptstepid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each question_attempt_step has an associative array of the d';

--
-- Dumping data for table `mdl_question_attempt_step_data`
--


--
-- Table structure for table `mdl_question_attempt_steps`
--

CREATE TABLE `mdl_question_attempt_steps` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionattemptid` bigint(10) NOT NULL,
  `sequencenumber` bigint(10) NOT NULL,
  `state` varchar(13) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fraction` decimal(12,7) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `userid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesattestep_queseq_uix` (`questionattemptid`,`sequencenumber`),
  KEY `mdl_quesattestep_que_ix` (`questionattemptid`),
  KEY `mdl_quesattestep_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores one step in in a question attempt. As well as the dat';

--
-- Dumping data for table `mdl_question_attempt_steps`
--


--
-- Table structure for table `mdl_question_attempts`
--

CREATE TABLE `mdl_question_attempts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionusageid` bigint(10) NOT NULL,
  `slot` bigint(10) NOT NULL,
  `behaviour` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `questionid` bigint(10) NOT NULL,
  `variant` bigint(10) NOT NULL DEFAULT '1',
  `maxmark` decimal(12,7) NOT NULL,
  `minfraction` decimal(12,7) NOT NULL,
  `maxfraction` decimal(12,7) NOT NULL DEFAULT '1.0000000',
  `flagged` tinyint(1) NOT NULL DEFAULT '0',
  `questionsummary` longtext COLLATE utf8_unicode_ci,
  `rightanswer` longtext COLLATE utf8_unicode_ci,
  `responsesummary` longtext COLLATE utf8_unicode_ci,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesatte_queslo_uix` (`questionusageid`,`slot`),
  KEY `mdl_quesatte_beh_ix` (`behaviour`),
  KEY `mdl_quesatte_que_ix` (`questionid`),
  KEY `mdl_quesatte_que2_ix` (`questionusageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each row here corresponds to an attempt at one question, as ';

--
-- Dumping data for table `mdl_question_attempts`
--


--
-- Table structure for table `mdl_question_calculated`
--

CREATE TABLE `mdl_question_calculated` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` bigint(10) NOT NULL DEFAULT '0',
  `tolerance` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.0',
  `tolerancetype` bigint(10) NOT NULL DEFAULT '1',
  `correctanswerlength` bigint(10) NOT NULL DEFAULT '2',
  `correctanswerformat` bigint(10) NOT NULL DEFAULT '2',
  PRIMARY KEY (`id`),
  KEY `mdl_quescalc_ans_ix` (`answer`),
  KEY `mdl_quescalc_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for questions of type calculated';

--
-- Dumping data for table `mdl_question_calculated`
--


--
-- Table structure for table `mdl_question_calculated_options`
--

CREATE TABLE `mdl_question_calculated_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `synchronize` tinyint(2) NOT NULL DEFAULT '0',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '0',
  `correctfeedback` longtext COLLATE utf8_unicode_ci,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `answernumbering` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'abc',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quescalcopti_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for questions of type calculated';

--
-- Dumping data for table `mdl_question_calculated_options`
--


--
-- Table structure for table `mdl_question_categories`
--

CREATE TABLE `mdl_question_categories` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `info` longtext COLLATE utf8_unicode_ci NOT NULL,
  `infoformat` tinyint(2) NOT NULL DEFAULT '0',
  `stamp` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '999',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quescate_consta_uix` (`contextid`,`stamp`),
  UNIQUE KEY `mdl_quescate_conidn_uix` (`contextid`,`idnumber`),
  KEY `mdl_quescate_con_ix` (`contextid`),
  KEY `mdl_quescate_par_ix` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Categories are for grouping questions';

--
-- Dumping data for table `mdl_question_categories`
--


--
-- Table structure for table `mdl_question_dataset_definitions`
--

CREATE TABLE `mdl_question_dataset_definitions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `category` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` bigint(10) NOT NULL DEFAULT '0',
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemcount` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdatadefi_cat_ix` (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Organises and stores properties for dataset items';

--
-- Dumping data for table `mdl_question_dataset_definitions`
--


--
-- Table structure for table `mdl_question_dataset_items`
--

CREATE TABLE `mdl_question_dataset_items` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definition` bigint(10) NOT NULL DEFAULT '0',
  `itemnumber` bigint(10) NOT NULL DEFAULT '0',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdataitem_def_ix` (`definition`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Individual dataset items';

--
-- Dumping data for table `mdl_question_dataset_items`
--


--
-- Table structure for table `mdl_question_datasets`
--

CREATE TABLE `mdl_question_datasets` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `datasetdefinition` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdata_quedat_ix` (`question`,`datasetdefinition`),
  KEY `mdl_quesdata_que_ix` (`question`),
  KEY `mdl_quesdata_dat_ix` (`datasetdefinition`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Many-many relation between questions and dataset definitions';

--
-- Dumping data for table `mdl_question_datasets`
--


--
-- Table structure for table `mdl_question_ddwtos`
--

CREATE TABLE `mdl_question_ddwtos` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesddwt_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines drag and drop (words into sentences) questions';

--
-- Dumping data for table `mdl_question_ddwtos`
--


--
-- Table structure for table `mdl_question_gapselect`
--

CREATE TABLE `mdl_question_gapselect` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext COLLATE utf8_unicode_ci NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesgaps_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines select missing words questions';

--
-- Dumping data for table `mdl_question_gapselect`
--


--
-- Table structure for table `mdl_question_hints`
--

CREATE TABLE `mdl_question_hints` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL,
  `hint` longtext COLLATE utf8_unicode_ci NOT NULL,
  `hintformat` smallint(4) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(1) DEFAULT NULL,
  `clearwrong` tinyint(1) DEFAULT NULL,
  `options` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_queshint_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the the part of the question definition that gives di';

--
-- Dumping data for table `mdl_question_hints`
--


--
-- Table structure for table `mdl_question_multianswer`
--

CREATE TABLE `mdl_question_multianswer` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `sequence` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quesmult_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for multianswer questions';

--
-- Dumping data for table `mdl_question_multianswer`
--


--
-- Table structure for table `mdl_question_numerical`
--

CREATE TABLE `mdl_question_numerical` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` bigint(10) NOT NULL DEFAULT '0',
  `tolerance` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesnume_ans_ix` (`answer`),
  KEY `mdl_quesnume_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for numerical questions.';

--
-- Dumping data for table `mdl_question_numerical`
--


--
-- Table structure for table `mdl_question_numerical_options`
--

CREATE TABLE `mdl_question_numerical_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `showunits` smallint(4) NOT NULL DEFAULT '0',
  `unitsleft` smallint(4) NOT NULL DEFAULT '0',
  `unitgradingtype` smallint(4) NOT NULL DEFAULT '0',
  `unitpenalty` decimal(12,7) NOT NULL DEFAULT '0.1000000',
  PRIMARY KEY (`id`),
  KEY `mdl_quesnumeopti_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for questions of type numerical This table is also u';

--
-- Dumping data for table `mdl_question_numerical_options`
--


--
-- Table structure for table `mdl_question_numerical_units`
--

CREATE TABLE `mdl_question_numerical_units` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `multiplier` decimal(38,19) NOT NULL DEFAULT '1.0000000000000000000',
  `unit` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesnumeunit_queuni_uix` (`question`,`unit`),
  KEY `mdl_quesnumeunit_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Optional unit options for numerical questions. This table is';

--
-- Dumping data for table `mdl_question_numerical_units`
--


--
-- Table structure for table `mdl_question_response_analysis`
--

CREATE TABLE `mdl_question_response_analysis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `whichtries` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL,
  `questionid` bigint(10) NOT NULL,
  `variant` bigint(10) DEFAULT NULL,
  `subqid` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `aid` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `response` longtext COLLATE utf8_unicode_ci,
  `credit` decimal(15,5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Analysis of student responses given to questions.';

--
-- Dumping data for table `mdl_question_response_analysis`
--


--
-- Table structure for table `mdl_question_response_count`
--

CREATE TABLE `mdl_question_response_count` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `analysisid` bigint(10) NOT NULL,
  `try` bigint(10) NOT NULL,
  `rcount` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quesrespcoun_ana_ix` (`analysisid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Count for each responses for each try at a question.';

--
-- Dumping data for table `mdl_question_response_count`
--


--
-- Table structure for table `mdl_question_statistics`
--

CREATE TABLE `mdl_question_statistics` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL,
  `questionid` bigint(10) NOT NULL,
  `slot` bigint(10) DEFAULT NULL,
  `subquestion` smallint(4) NOT NULL,
  `variant` bigint(10) DEFAULT NULL,
  `s` bigint(10) NOT NULL DEFAULT '0',
  `effectiveweight` decimal(15,5) DEFAULT NULL,
  `negcovar` tinyint(2) NOT NULL DEFAULT '0',
  `discriminationindex` decimal(15,5) DEFAULT NULL,
  `discriminativeefficiency` decimal(15,5) DEFAULT NULL,
  `sd` decimal(15,10) DEFAULT NULL,
  `facility` decimal(15,10) DEFAULT NULL,
  `subquestions` longtext COLLATE utf8_unicode_ci,
  `maxmark` decimal(12,7) DEFAULT NULL,
  `positions` longtext COLLATE utf8_unicode_ci,
  `randomguessscore` decimal(12,7) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Statistics for individual questions used in an activity.';

--
-- Dumping data for table `mdl_question_statistics`
--


--
-- Table structure for table `mdl_question_truefalse`
--

CREATE TABLE `mdl_question_truefalse` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `trueanswer` bigint(10) NOT NULL DEFAULT '0',
  `falseanswer` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_questrue_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for True-False questions';

--
-- Dumping data for table `mdl_question_truefalse`
--


--
-- Table structure for table `mdl_question_usages`
--

CREATE TABLE `mdl_question_usages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `preferredbehaviour` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_quesusag_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table''s main purpose it to assign a unique id to each a';

--
-- Dumping data for table `mdl_question_usages`
--


--
-- Table structure for table `mdl_quiz`
--

CREATE TABLE `mdl_quiz` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timelimit` bigint(10) NOT NULL DEFAULT '0',
  `overduehandling` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'autoabandon',
  `graceperiod` bigint(10) NOT NULL DEFAULT '0',
  `preferredbehaviour` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `canredoquestions` smallint(4) NOT NULL DEFAULT '0',
  `attempts` mediumint(6) NOT NULL DEFAULT '0',
  `attemptonlast` smallint(4) NOT NULL DEFAULT '0',
  `grademethod` smallint(4) NOT NULL DEFAULT '1',
  `decimalpoints` smallint(4) NOT NULL DEFAULT '2',
  `questiondecimalpoints` smallint(4) NOT NULL DEFAULT '-1',
  `reviewattempt` mediumint(6) NOT NULL DEFAULT '0',
  `reviewcorrectness` mediumint(6) NOT NULL DEFAULT '0',
  `reviewmarks` mediumint(6) NOT NULL DEFAULT '0',
  `reviewspecificfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `reviewgeneralfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `reviewrightanswer` mediumint(6) NOT NULL DEFAULT '0',
  `reviewoverallfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `questionsperpage` bigint(10) NOT NULL DEFAULT '0',
  `navmethod` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'free',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '0',
  `sumgrades` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `grade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `subnet` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `browsersecurity` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `delay1` bigint(10) NOT NULL DEFAULT '0',
  `delay2` bigint(10) NOT NULL DEFAULT '0',
  `showuserpicture` smallint(4) NOT NULL DEFAULT '0',
  `showblocks` smallint(4) NOT NULL DEFAULT '0',
  `completionattemptsexhausted` tinyint(1) DEFAULT '0',
  `completionpass` tinyint(1) DEFAULT '0',
  `allowofflineattempts` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quiz_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The settings for each quiz.';

--
-- Dumping data for table `mdl_quiz`
--


--
-- Table structure for table `mdl_quiz_attempts`
--

CREATE TABLE `mdl_quiz_attempts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `attempt` mediumint(6) NOT NULL DEFAULT '0',
  `uniqueid` bigint(10) NOT NULL DEFAULT '0',
  `layout` longtext COLLATE utf8_unicode_ci NOT NULL,
  `currentpage` bigint(10) NOT NULL DEFAULT '0',
  `preview` smallint(3) NOT NULL DEFAULT '0',
  `state` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'inprogress',
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timefinish` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `timemodifiedoffline` bigint(10) NOT NULL DEFAULT '0',
  `timecheckstate` bigint(10) DEFAULT '0',
  `sumgrades` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizatte_quiuseatt_uix` (`quiz`,`userid`,`attempt`),
  UNIQUE KEY `mdl_quizatte_uni_uix` (`uniqueid`),
  KEY `mdl_quizatte_statim_ix` (`state`,`timecheckstate`),
  KEY `mdl_quizatte_qui_ix` (`quiz`),
  KEY `mdl_quizatte_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores users attempts at quizzes.';

--
-- Dumping data for table `mdl_quiz_attempts`
--


--
-- Table structure for table `mdl_quiz_feedback`
--

CREATE TABLE `mdl_quiz_feedback` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quizid` bigint(10) NOT NULL DEFAULT '0',
  `feedbacktext` longtext COLLATE utf8_unicode_ci NOT NULL,
  `feedbacktextformat` tinyint(2) NOT NULL DEFAULT '0',
  `mingrade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `maxgrade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  PRIMARY KEY (`id`),
  KEY `mdl_quizfeed_qui_ix` (`quizid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Feedback given to students based on which grade band their o';

--
-- Dumping data for table `mdl_quiz_feedback`
--


--
-- Table structure for table `mdl_quiz_grades`
--

CREATE TABLE `mdl_quiz_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `grade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quizgrad_use_ix` (`userid`),
  KEY `mdl_quizgrad_qui_ix` (`quiz`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the overall grade for each user on the quiz, based on';

--
-- Dumping data for table `mdl_quiz_grades`
--


--
-- Table structure for table `mdl_quiz_overrides`
--

CREATE TABLE `mdl_quiz_overrides` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) DEFAULT NULL,
  `userid` bigint(10) DEFAULT NULL,
  `timeopen` bigint(10) DEFAULT NULL,
  `timeclose` bigint(10) DEFAULT NULL,
  `timelimit` bigint(10) DEFAULT NULL,
  `attempts` mediumint(6) DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quizover_qui_ix` (`quiz`),
  KEY `mdl_quizover_gro_ix` (`groupid`),
  KEY `mdl_quizover_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The overrides to quiz settings on a per-user and per-group b';

--
-- Dumping data for table `mdl_quiz_overrides`
--


--
-- Table structure for table `mdl_quiz_overview_regrades`
--

CREATE TABLE `mdl_quiz_overview_regrades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionusageid` bigint(10) NOT NULL,
  `slot` bigint(10) NOT NULL,
  `newfraction` decimal(12,7) DEFAULT NULL,
  `oldfraction` decimal(12,7) DEFAULT NULL,
  `regraded` smallint(4) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quizoverregr_queslo_ix` (`questionusageid`,`slot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table records which question attempts need regrading an';

--
-- Dumping data for table `mdl_quiz_overview_regrades`
--


--
-- Table structure for table `mdl_quiz_reports`
--

CREATE TABLE `mdl_quiz_reports` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `displayorder` bigint(10) NOT NULL,
  `capability` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizrepo_nam_uix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Lists all the installed quiz reports and their display order';

--
-- Dumping data for table `mdl_quiz_reports`
--

INSERT INTO `mdl_quiz_reports` VALUES (1,'grading',6000,'mod/quiz:grade'),(2,'overview',10000,NULL),(3,'responses',9000,NULL),(4,'statistics',8000,'quiz/statistics:view');

--
-- Table structure for table `mdl_quiz_sections`
--

CREATE TABLE `mdl_quiz_sections` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quizid` bigint(10) NOT NULL,
  `firstslot` bigint(10) NOT NULL,
  `heading` varchar(1333) COLLATE utf8_unicode_ci DEFAULT NULL,
  `shufflequestions` smallint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizsect_quifir_uix` (`quizid`,`firstslot`),
  KEY `mdl_quizsect_qui_ix` (`quizid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores sections of a quiz with section name (heading), from ';

--
-- Dumping data for table `mdl_quiz_sections`
--


--
-- Table structure for table `mdl_quiz_slot_tags`
--

CREATE TABLE `mdl_quiz_slot_tags` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `slotid` bigint(10) DEFAULT NULL,
  `tagid` bigint(10) DEFAULT NULL,
  `tagname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quizslottags_slo_ix` (`slotid`),
  KEY `mdl_quizslottags_tag_ix` (`tagid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores data about the tags that a question must have so that';

--
-- Dumping data for table `mdl_quiz_slot_tags`
--


--
-- Table structure for table `mdl_quiz_slots`
--

CREATE TABLE `mdl_quiz_slots` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `slot` bigint(10) NOT NULL,
  `quizid` bigint(10) NOT NULL DEFAULT '0',
  `page` bigint(10) NOT NULL,
  `requireprevious` smallint(4) NOT NULL DEFAULT '0',
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `questioncategoryid` bigint(10) DEFAULT NULL,
  `includingsubcategories` smallint(4) DEFAULT NULL,
  `maxmark` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizslot_quislo_uix` (`quizid`,`slot`),
  KEY `mdl_quizslot_qui_ix` (`quizid`),
  KEY `mdl_quizslot_que_ix` (`questionid`),
  KEY `mdl_quizslot_que2_ix` (`questioncategoryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the question used in a quiz, with the order, and for ';

--
-- Dumping data for table `mdl_quiz_slots`
--


--
-- Table structure for table `mdl_quiz_statistics`
--

CREATE TABLE `mdl_quiz_statistics` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `whichattempts` smallint(4) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `firstattemptscount` bigint(10) NOT NULL,
  `highestattemptscount` bigint(10) NOT NULL,
  `lastattemptscount` bigint(10) NOT NULL,
  `allattemptscount` bigint(10) NOT NULL,
  `firstattemptsavg` decimal(15,5) DEFAULT NULL,
  `highestattemptsavg` decimal(15,5) DEFAULT NULL,
  `lastattemptsavg` decimal(15,5) DEFAULT NULL,
  `allattemptsavg` decimal(15,5) DEFAULT NULL,
  `median` decimal(15,5) DEFAULT NULL,
  `standarddeviation` decimal(15,5) DEFAULT NULL,
  `skewness` decimal(15,10) DEFAULT NULL,
  `kurtosis` decimal(15,5) DEFAULT NULL,
  `cic` decimal(15,10) DEFAULT NULL,
  `errorratio` decimal(15,10) DEFAULT NULL,
  `standarderror` decimal(15,10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='table to cache results from analysis done in statistics repo';

--
-- Dumping data for table `mdl_quiz_statistics`
--


--
-- Table structure for table `mdl_rating`
--

CREATE TABLE `mdl_rating` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ratingarea` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `scaleid` bigint(10) NOT NULL,
  `rating` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_rati_comratconite_ix` (`component`,`ratingarea`,`contextid`,`itemid`),
  KEY `mdl_rati_con_ix` (`contextid`),
  KEY `mdl_rati_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='moodle ratings';

--
-- Dumping data for table `mdl_rating`
--


--
-- Table structure for table `mdl_registration_hubs`
--

CREATE TABLE `mdl_registration_hubs` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hubname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `huburl` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `confirmed` tinyint(1) NOT NULL DEFAULT '0',
  `secret` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='hub where the site is registered on with their associated to';

--
-- Dumping data for table `mdl_registration_hubs`
--


--
-- Table structure for table `mdl_repository`
--

CREATE TABLE `mdl_repository` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(1) DEFAULT '1',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table contains one entry for every configured external ';

--
-- Dumping data for table `mdl_repository`
--

INSERT INTO `mdl_repository` VALUES (1,'areafiles',1,1),(2,'local',1,2),(3,'recent',1,3),(4,'upload',1,4),(5,'url',1,5),(6,'user',1,6),(7,'wikimedia',1,7);

--
-- Table structure for table `mdl_repository_instance_config`
--

CREATE TABLE `mdl_repository_instance_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instanceid` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The config for intances';

--
-- Dumping data for table `mdl_repository_instance_config`
--


--
-- Table structure for table `mdl_repository_instances`
--

CREATE TABLE `mdl_repository_instances` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `typeid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table contains one entry for every configured external ';

--
-- Dumping data for table `mdl_repository_instances`
--

INSERT INTO `mdl_repository_instances` VALUES (1,'',1,0,1,NULL,NULL,1547050122,1547050122,0),(2,'',2,0,1,NULL,NULL,1547050123,1547050123,0),(3,'',3,0,1,NULL,NULL,1547050123,1547050123,0),(4,'',4,0,1,NULL,NULL,1547050123,1547050123,0),(5,'',5,0,1,NULL,NULL,1547050124,1547050124,0),(6,'',6,0,1,NULL,NULL,1547050124,1547050124,0),(7,'',7,0,1,NULL,NULL,1547050124,1547050124,0);

--
-- Table structure for table `mdl_repository_onedrive_access`
--

CREATE TABLE `mdl_repository_onedrive_access` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `timemodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `permissionid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_repoonedacce_use_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of temporary access grants.';

--
-- Dumping data for table `mdl_repository_onedrive_access`
--


--
-- Table structure for table `mdl_resource`
--

CREATE TABLE `mdl_resource` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `tobemigrated` smallint(4) NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) DEFAULT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext COLLATE utf8_unicode_ci,
  `filterfiles` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_reso_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each record is one resource and its config data';

--
-- Dumping data for table `mdl_resource`
--


--
-- Table structure for table `mdl_resource_old`
--

CREATE TABLE `mdl_resource_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `alltext` longtext COLLATE utf8_unicode_ci NOT NULL,
  `popup` longtext COLLATE utf8_unicode_ci NOT NULL,
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `cmid` bigint(10) DEFAULT NULL,
  `newmodule` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  `migrated` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_resoold_old_uix` (`oldid`),
  KEY `mdl_resoold_cmi_ix` (`cmid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='backup of all old resource instances from 1.9';

--
-- Dumping data for table `mdl_resource_old`
--


--
-- Table structure for table `mdl_role`
--

CREATE TABLE `mdl_role` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `archetype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_role_sor_uix` (`sortorder`),
  UNIQUE KEY `mdl_role_sho_uix` (`shortname`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='moodle roles';

--
-- Dumping data for table `mdl_role`
--

INSERT INTO `mdl_role` VALUES (1,'','manager','',1,'manager'),(2,'','coursecreator','',2,'coursecreator'),(3,'','editingteacher','',3,'editingteacher'),(4,'','teacher','',4,'teacher'),(5,'','student','',5,'student'),(6,'','guest','',6,'guest'),(7,'','user','',7,'user'),(8,'','frontpage','',8,'frontpage');

--
-- Table structure for table `mdl_role_allow_assign`
--

CREATE TABLE `mdl_role_allow_assign` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `allowassign` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloassi_rolall_uix` (`roleid`,`allowassign`),
  KEY `mdl_rolealloassi_rol_ix` (`roleid`),
  KEY `mdl_rolealloassi_all_ix` (`allowassign`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='this defines what role can assign what role';

--
-- Dumping data for table `mdl_role_allow_assign`
--

INSERT INTO `mdl_role_allow_assign` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,3,4),(7,3,5);

--
-- Table structure for table `mdl_role_allow_override`
--

CREATE TABLE `mdl_role_allow_override` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `allowoverride` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloover_rolall_uix` (`roleid`,`allowoverride`),
  KEY `mdl_rolealloover_rol_ix` (`roleid`),
  KEY `mdl_rolealloover_all_ix` (`allowoverride`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='this defines what role can override what role';

--
-- Dumping data for table `mdl_role_allow_override`
--

INSERT INTO `mdl_role_allow_override` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,1,8),(9,3,4),(10,3,5),(11,3,6);

--
-- Table structure for table `mdl_role_allow_switch`
--

CREATE TABLE `mdl_role_allow_switch` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL,
  `allowswitch` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloswit_rolall_uix` (`roleid`,`allowswitch`),
  KEY `mdl_rolealloswit_rol_ix` (`roleid`),
  KEY `mdl_rolealloswit_all_ix` (`allowswitch`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table stores which which other roles a user is allowed ';

--
-- Dumping data for table `mdl_role_allow_switch`
--

INSERT INTO `mdl_role_allow_switch` VALUES (1,1,3),(2,1,4),(3,1,5),(4,1,6),(5,3,4),(6,3,5),(7,3,6),(8,4,5),(9,4,6);

--
-- Table structure for table `mdl_role_allow_view`
--

CREATE TABLE `mdl_role_allow_view` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL,
  `allowview` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloview_rolall_uix` (`roleid`,`allowview`),
  KEY `mdl_rolealloview_rol_ix` (`roleid`),
  KEY `mdl_rolealloview_all_ix` (`allowview`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table stores which which other roles a user is allowed ';

--
-- Dumping data for table `mdl_role_allow_view`
--

INSERT INTO `mdl_role_allow_view` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,1,8),(9,2,2),(10,2,3),(11,2,4),(12,2,5),(13,3,2),(14,3,3),(15,3,4),(16,3,5),(17,4,2),(18,4,3),(19,4,4),(20,4,5),(21,5,2),(22,5,3),(23,5,4),(24,5,5);

--
-- Table structure for table `mdl_role_assignments`
--

CREATE TABLE `mdl_role_assignments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_roleassi_sor_ix` (`sortorder`),
  KEY `mdl_roleassi_rolcon_ix` (`roleid`,`contextid`),
  KEY `mdl_roleassi_useconrol_ix` (`userid`,`contextid`,`roleid`),
  KEY `mdl_roleassi_comiteuse_ix` (`component`,`itemid`,`userid`),
  KEY `mdl_roleassi_rol_ix` (`roleid`),
  KEY `mdl_roleassi_con_ix` (`contextid`),
  KEY `mdl_roleassi_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='assigning roles in different context';

--
-- Dumping data for table `mdl_role_assignments`
--


--
-- Table structure for table `mdl_role_capabilities`
--

CREATE TABLE `mdl_role_capabilities` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `capability` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `permission` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolecapa_rolconcap_uix` (`roleid`,`contextid`,`capability`),
  KEY `mdl_rolecapa_rol_ix` (`roleid`),
  KEY `mdl_rolecapa_con_ix` (`contextid`),
  KEY `mdl_rolecapa_mod_ix` (`modifierid`),
  KEY `mdl_rolecapa_cap_ix` (`capability`)
) ENGINE=InnoDB AUTO_INCREMENT=1306 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='permission has to be signed, overriding a capability for a p';

--
-- Dumping data for table `mdl_role_capabilities`
--

INSERT INTO `mdl_role_capabilities` VALUES (1,1,1,'moodle/site:configview',1,1547050082,0),(2,1,2,'moodle/site:configview',1,1547050082,0),(3,1,1,'moodle/site:readallmessages',1,1547050082,0),(4,1,3,'moodle/site:readallmessages',1,1547050082,0),(5,1,1,'moodle/site:manageallmessaging',1,1547050082,0),(6,1,1,'moodle/site:deleteanymessage',1,1547050082,0),(7,1,1,'moodle/site:sendmessage',1,1547050082,0),(8,1,7,'moodle/site:sendmessage',1,1547050082,0),(9,1,7,'moodle/site:deleteownmessage',1,1547050082,0),(10,1,1,'moodle/site:approvecourse',1,1547050082,0),(11,1,3,'moodle/backup:backupcourse',1,1547050082,0),(12,1,1,'moodle/backup:backupcourse',1,1547050082,0),(13,1,3,'moodle/backup:backupsection',1,1547050082,0),(14,1,1,'moodle/backup:backupsection',1,1547050082,0),(15,1,3,'moodle/backup:backupactivity',1,1547050082,0),(16,1,1,'moodle/backup:backupactivity',1,1547050082,0),(17,1,3,'moodle/backup:backuptargethub',1,1547050082,0),(18,1,1,'moodle/backup:backuptargethub',1,1547050082,0),(19,1,3,'moodle/backup:backuptargetimport',1,1547050082,0),(20,1,1,'moodle/backup:backuptargetimport',1,1547050082,0),(21,1,3,'moodle/backup:downloadfile',1,1547050082,0),(22,1,1,'moodle/backup:downloadfile',1,1547050082,0),(23,1,3,'moodle/backup:configure',1,1547050082,0),(24,1,1,'moodle/backup:configure',1,1547050082,0),(25,1,1,'moodle/backup:userinfo',1,1547050082,0),(26,1,1,'moodle/backup:anonymise',1,1547050082,0),(27,1,3,'moodle/restore:restorecourse',1,1547050082,0),(28,1,1,'moodle/restore:restorecourse',1,1547050082,0),(29,1,3,'moodle/restore:restoresection',1,1547050082,0),(30,1,1,'moodle/restore:restoresection',1,1547050082,0),(31,1,3,'moodle/restore:restoreactivity',1,1547050082,0),(32,1,1,'moodle/restore:restoreactivity',1,1547050082,0),(33,1,3,'moodle/restore:viewautomatedfilearea',1,1547050082,0),(34,1,1,'moodle/restore:viewautomatedfilearea',1,1547050082,0),(35,1,3,'moodle/restore:restoretargethub',1,1547050082,0),(36,1,1,'moodle/restore:restoretargethub',1,1547050082,0),(37,1,3,'moodle/restore:restoretargetimport',1,1547050082,0),(38,1,1,'moodle/restore:restoretargetimport',1,1547050082,0),(39,1,3,'moodle/restore:uploadfile',1,1547050082,0),(40,1,1,'moodle/restore:uploadfile',1,1547050082,0),(41,1,3,'moodle/restore:configure',1,1547050082,0),(42,1,1,'moodle/restore:configure',1,1547050082,0),(43,1,2,'moodle/restore:rolldates',1,1547050082,0),(44,1,1,'moodle/restore:rolldates',1,1547050082,0),(45,1,1,'moodle/restore:userinfo',1,1547050082,0),(46,1,1,'moodle/restore:createuser',1,1547050082,0),(47,1,3,'moodle/site:manageblocks',1,1547050082,0),(48,1,1,'moodle/site:manageblocks',1,1547050082,0),(49,1,3,'moodle/site:accessallgroups',1,1547050082,0),(50,1,1,'moodle/site:accessallgroups',1,1547050082,0),(51,1,4,'moodle/site:viewfullnames',1,1547050082,0),(52,1,3,'moodle/site:viewfullnames',1,1547050082,0),(53,1,1,'moodle/site:viewfullnames',1,1547050082,0),(54,1,4,'moodle/site:viewuseridentity',1,1547050082,0),(55,1,3,'moodle/site:viewuseridentity',1,1547050082,0),(56,1,1,'moodle/site:viewuseridentity',1,1547050082,0),(57,1,4,'moodle/site:viewreports',1,1547050082,0),(58,1,3,'moodle/site:viewreports',1,1547050082,0),(59,1,1,'moodle/site:viewreports',1,1547050082,0),(60,1,3,'moodle/site:trustcontent',1,1547050082,0),(61,1,1,'moodle/site:trustcontent',1,1547050082,0),(62,1,1,'moodle/site:uploadusers',1,1547050082,0),(63,1,3,'moodle/filter:manage',1,1547050082,0),(64,1,1,'moodle/filter:manage',1,1547050082,0),(65,1,1,'moodle/user:create',1,1547050082,0),(66,1,1,'moodle/user:delete',1,1547050082,0),(67,1,1,'moodle/user:update',1,1547050082,0),(68,1,6,'moodle/user:viewdetails',1,1547050082,0),(69,1,5,'moodle/user:viewdetails',1,1547050082,0),(70,1,4,'moodle/user:viewdetails',1,1547050082,0),(71,1,3,'moodle/user:viewdetails',1,1547050082,0),(72,1,1,'moodle/user:viewdetails',1,1547050082,0),(73,1,1,'moodle/user:viewalldetails',1,1547050082,0),(74,1,1,'moodle/user:viewlastip',1,1547050082,0),(75,1,4,'moodle/user:viewhiddendetails',1,1547050082,0),(76,1,3,'moodle/user:viewhiddendetails',1,1547050082,0),(77,1,1,'moodle/user:viewhiddendetails',1,1547050082,0),(78,1,1,'moodle/user:loginas',1,1547050082,0),(79,1,1,'moodle/user:managesyspages',1,1547050082,0),(80,1,7,'moodle/user:manageownblocks',1,1547050082,0),(81,1,7,'moodle/user:manageownfiles',1,1547050082,0),(82,1,1,'moodle/my:configsyspages',1,1547050082,0),(83,1,3,'moodle/role:assign',1,1547050082,0),(84,1,1,'moodle/role:assign',1,1547050082,0),(85,1,4,'moodle/role:review',1,1547050082,0),(86,1,3,'moodle/role:review',1,1547050082,0),(87,1,1,'moodle/role:review',1,1547050082,0),(88,1,1,'moodle/role:override',1,1547050082,0),(89,1,3,'moodle/role:safeoverride',1,1547050082,0),(90,1,1,'moodle/role:manage',1,1547050083,0),(91,1,3,'moodle/role:switchroles',1,1547050083,0),(92,1,1,'moodle/role:switchroles',1,1547050083,0),(93,1,1,'moodle/category:manage',1,1547050083,0),(94,1,2,'moodle/category:viewhiddencategories',1,1547050083,0),(95,1,1,'moodle/category:viewhiddencategories',1,1547050083,0),(96,1,1,'moodle/cohort:manage',1,1547050083,0),(97,1,1,'moodle/cohort:assign',1,1547050083,0),(98,1,3,'moodle/cohort:view',1,1547050083,0),(99,1,1,'moodle/cohort:view',1,1547050083,0),(100,1,2,'moodle/course:create',1,1547050083,0),(101,1,1,'moodle/course:create',1,1547050083,0),(102,1,3,'moodle/course:creategroupconversations',1,1547050083,0),(103,1,1,'moodle/course:creategroupconversations',1,1547050083,0),(104,1,7,'moodle/course:request',1,1547050083,0),(105,1,1,'moodle/course:delete',1,1547050083,0),(106,1,3,'moodle/course:update',1,1547050083,0),(107,1,1,'moodle/course:update',1,1547050083,0),(108,1,1,'moodle/course:view',1,1547050083,0),(109,1,3,'moodle/course:enrolreview',1,1547050083,0),(110,1,1,'moodle/course:enrolreview',1,1547050083,0),(111,1,3,'moodle/course:enrolconfig',1,1547050083,0),(112,1,1,'moodle/course:enrolconfig',1,1547050083,0),(113,1,3,'moodle/course:reviewotherusers',1,1547050083,0),(114,1,1,'moodle/course:reviewotherusers',1,1547050083,0),(115,1,4,'moodle/course:bulkmessaging',1,1547050083,0),(116,1,3,'moodle/course:bulkmessaging',1,1547050083,0),(117,1,1,'moodle/course:bulkmessaging',1,1547050083,0),(118,1,4,'moodle/course:viewhiddenuserfields',1,1547050083,0),(119,1,3,'moodle/course:viewhiddenuserfields',1,1547050083,0),(120,1,1,'moodle/course:viewhiddenuserfields',1,1547050083,0),(121,1,2,'moodle/course:viewhiddencourses',1,1547050083,0),(122,1,4,'moodle/course:viewhiddencourses',1,1547050083,0),(123,1,3,'moodle/course:viewhiddencourses',1,1547050083,0),(124,1,1,'moodle/course:viewhiddencourses',1,1547050083,0),(125,1,3,'moodle/course:visibility',1,1547050083,0),(126,1,1,'moodle/course:visibility',1,1547050083,0),(127,1,3,'moodle/course:managefiles',1,1547050083,0),(128,1,1,'moodle/course:managefiles',1,1547050083,0),(129,1,1,'moodle/course:ignoreavailabilityrestrictions',1,1547050083,0),(130,1,2,'moodle/course:ignoreavailabilityrestrictions',1,1547050083,0),(131,1,3,'moodle/course:ignoreavailabilityrestrictions',1,1547050083,0),(132,1,4,'moodle/course:ignoreavailabilityrestrictions',1,1547050083,0),(133,1,3,'moodle/course:manageactivities',1,1547050083,0),(134,1,1,'moodle/course:manageactivities',1,1547050083,0),(135,1,3,'moodle/course:activityvisibility',1,1547050083,0),(136,1,1,'moodle/course:activityvisibility',1,1547050083,0),(137,1,4,'moodle/course:viewhiddenactivities',1,1547050083,0),(138,1,3,'moodle/course:viewhiddenactivities',1,1547050083,0),(139,1,1,'moodle/course:viewhiddenactivities',1,1547050083,0),(140,1,5,'moodle/course:viewparticipants',1,1547050083,0),(141,1,4,'moodle/course:viewparticipants',1,1547050083,0),(142,1,3,'moodle/course:viewparticipants',1,1547050083,0),(143,1,1,'moodle/course:viewparticipants',1,1547050083,0),(144,1,3,'moodle/course:changefullname',1,1547050083,0),(145,1,1,'moodle/course:changefullname',1,1547050083,0),(146,1,3,'moodle/course:changeshortname',1,1547050083,0),(147,1,1,'moodle/course:changeshortname',1,1547050083,0),(148,1,3,'moodle/course:renameroles',1,1547050083,0),(149,1,1,'moodle/course:renameroles',1,1547050083,0),(150,1,3,'moodle/course:changeidnumber',1,1547050083,0),(151,1,1,'moodle/course:changeidnumber',1,1547050083,0),(152,1,3,'moodle/course:changecategory',1,1547050083,0),(153,1,1,'moodle/course:changecategory',1,1547050083,0),(154,1,3,'moodle/course:changesummary',1,1547050083,0),(155,1,1,'moodle/course:changesummary',1,1547050083,0),(156,1,3,'moodle/course:setforcedlanguage',1,1547050083,0),(157,1,1,'moodle/course:setforcedlanguage',1,1547050083,0),(158,1,1,'moodle/site:viewparticipants',1,1547050083,0),(159,1,5,'moodle/course:isincompletionreports',1,1547050083,0),(160,1,5,'moodle/course:viewscales',1,1547050083,0),(161,1,4,'moodle/course:viewscales',1,1547050083,0),(162,1,3,'moodle/course:viewscales',1,1547050083,0),(163,1,1,'moodle/course:viewscales',1,1547050083,0),(164,1,3,'moodle/course:managescales',1,1547050083,0),(165,1,1,'moodle/course:managescales',1,1547050083,0),(166,1,3,'moodle/course:managegroups',1,1547050083,0),(167,1,1,'moodle/course:managegroups',1,1547050083,0),(168,1,3,'moodle/course:reset',1,1547050083,0),(169,1,1,'moodle/course:reset',1,1547050083,0),(170,1,3,'moodle/course:viewsuspendedusers',1,1547050083,0),(171,1,1,'moodle/course:viewsuspendedusers',1,1547050083,0),(172,1,1,'moodle/course:tag',1,1547050083,0),(173,1,3,'moodle/course:tag',1,1547050083,0),(174,1,6,'moodle/blog:view',1,1547050083,0),(175,1,7,'moodle/blog:view',1,1547050083,0),(176,1,5,'moodle/blog:view',1,1547050083,0),(177,1,4,'moodle/blog:view',1,1547050083,0),(178,1,3,'moodle/blog:view',1,1547050083,0),(179,1,1,'moodle/blog:view',1,1547050083,0),(180,1,6,'moodle/blog:search',1,1547050083,0),(181,1,7,'moodle/blog:search',1,1547050083,0),(182,1,5,'moodle/blog:search',1,1547050083,0),(183,1,4,'moodle/blog:search',1,1547050083,0),(184,1,3,'moodle/blog:search',1,1547050083,0),(185,1,1,'moodle/blog:search',1,1547050083,0),(186,1,1,'moodle/blog:viewdrafts',1,1547050083,0),(187,1,7,'moodle/blog:create',1,1547050083,0),(188,1,1,'moodle/blog:create',1,1547050083,0),(189,1,4,'moodle/blog:manageentries',1,1547050083,0),(190,1,3,'moodle/blog:manageentries',1,1547050083,0),(191,1,1,'moodle/blog:manageentries',1,1547050083,0),(192,1,5,'moodle/blog:manageexternal',1,1547050083,0),(193,1,7,'moodle/blog:manageexternal',1,1547050083,0),(194,1,4,'moodle/blog:manageexternal',1,1547050083,0),(195,1,3,'moodle/blog:manageexternal',1,1547050083,0),(196,1,1,'moodle/blog:manageexternal',1,1547050083,0),(197,1,7,'moodle/calendar:manageownentries',1,1547050083,0),(198,1,1,'moodle/calendar:manageownentries',1,1547050083,0),(199,1,4,'moodle/calendar:managegroupentries',1,1547050083,0),(200,1,3,'moodle/calendar:managegroupentries',1,1547050083,0),(201,1,1,'moodle/calendar:managegroupentries',1,1547050083,0),(202,1,4,'moodle/calendar:manageentries',1,1547050083,0),(203,1,3,'moodle/calendar:manageentries',1,1547050083,0),(204,1,1,'moodle/calendar:manageentries',1,1547050083,0),(205,1,1,'moodle/user:editprofile',1,1547050083,0),(206,1,6,'moodle/user:editownprofile',-1000,1547050083,0),(207,1,7,'moodle/user:editownprofile',1,1547050083,0),(208,1,1,'moodle/user:editownprofile',1,1547050083,0),(209,1,6,'moodle/user:changeownpassword',-1000,1547050083,0),(210,1,7,'moodle/user:changeownpassword',1,1547050083,0),(211,1,1,'moodle/user:changeownpassword',1,1547050083,0),(212,1,5,'moodle/user:readuserposts',1,1547050083,0),(213,1,4,'moodle/user:readuserposts',1,1547050083,0),(214,1,3,'moodle/user:readuserposts',1,1547050083,0),(215,1,1,'moodle/user:readuserposts',1,1547050083,0),(216,1,5,'moodle/user:readuserblogs',1,1547050083,0),(217,1,4,'moodle/user:readuserblogs',1,1547050083,0),(218,1,3,'moodle/user:readuserblogs',1,1547050083,0),(219,1,1,'moodle/user:readuserblogs',1,1547050083,0),(220,1,1,'moodle/user:editmessageprofile',1,1547050083,0),(221,1,6,'moodle/user:editownmessageprofile',-1000,1547050083,0),(222,1,7,'moodle/user:editownmessageprofile',1,1547050083,0),(223,1,1,'moodle/user:editownmessageprofile',1,1547050083,0),(224,1,3,'moodle/question:managecategory',1,1547050083,0),(225,1,1,'moodle/question:managecategory',1,1547050083,0),(226,1,3,'moodle/question:add',1,1547050083,0),(227,1,1,'moodle/question:add',1,1547050083,0),(228,1,3,'moodle/question:editmine',1,1547050083,0),(229,1,1,'moodle/question:editmine',1,1547050083,0),(230,1,3,'moodle/question:editall',1,1547050083,0),(231,1,1,'moodle/question:editall',1,1547050083,0),(232,1,3,'moodle/question:viewmine',1,1547050083,0),(233,1,1,'moodle/question:viewmine',1,1547050083,0),(234,1,3,'moodle/question:viewall',1,1547050083,0),(235,1,1,'moodle/question:viewall',1,1547050083,0),(236,1,3,'moodle/question:usemine',1,1547050083,0),(237,1,1,'moodle/question:usemine',1,1547050083,0),(238,1,3,'moodle/question:useall',1,1547050083,0),(239,1,1,'moodle/question:useall',1,1547050083,0),(240,1,3,'moodle/question:movemine',1,1547050083,0),(241,1,1,'moodle/question:movemine',1,1547050083,0),(242,1,3,'moodle/question:moveall',1,1547050083,0),(243,1,1,'moodle/question:moveall',1,1547050083,0),(244,1,1,'moodle/question:config',1,1547050083,0),(245,1,5,'moodle/question:flag',1,1547050083,0),(246,1,4,'moodle/question:flag',1,1547050083,0),(247,1,3,'moodle/question:flag',1,1547050083,0),(248,1,1,'moodle/question:flag',1,1547050083,0),(249,1,3,'moodle/question:tagmine',1,1547050083,0),(250,1,1,'moodle/question:tagmine',1,1547050083,0),(251,1,3,'moodle/question:tagall',1,1547050083,0),(252,1,1,'moodle/question:tagall',1,1547050083,0),(253,1,4,'moodle/site:doclinks',1,1547050083,0),(254,1,3,'moodle/site:doclinks',1,1547050083,0),(255,1,1,'moodle/site:doclinks',1,1547050083,0),(256,1,3,'moodle/course:sectionvisibility',1,1547050083,0),(257,1,1,'moodle/course:sectionvisibility',1,1547050083,0),(258,1,3,'moodle/course:useremail',1,1547050083,0),(259,1,1,'moodle/course:useremail',1,1547050083,0),(260,1,3,'moodle/course:viewhiddensections',1,1547050083,0),(261,1,1,'moodle/course:viewhiddensections',1,1547050083,0),(262,1,3,'moodle/course:setcurrentsection',1,1547050083,0),(263,1,1,'moodle/course:setcurrentsection',1,1547050083,0),(264,1,3,'moodle/course:movesections',1,1547050083,0),(265,1,1,'moodle/course:movesections',1,1547050083,0),(266,1,4,'moodle/grade:viewall',1,1547050083,0),(267,1,3,'moodle/grade:viewall',1,1547050084,0),(268,1,1,'moodle/grade:viewall',1,1547050084,0),(269,1,5,'moodle/grade:view',1,1547050084,0),(270,1,4,'moodle/grade:viewhidden',1,1547050084,0),(271,1,3,'moodle/grade:viewhidden',1,1547050084,0),(272,1,1,'moodle/grade:viewhidden',1,1547050084,0),(273,1,3,'moodle/grade:import',1,1547050084,0),(274,1,1,'moodle/grade:import',1,1547050084,0),(275,1,4,'moodle/grade:export',1,1547050084,0),(276,1,3,'moodle/grade:export',1,1547050084,0),(277,1,1,'moodle/grade:export',1,1547050084,0),(278,1,3,'moodle/grade:manage',1,1547050084,0),(279,1,1,'moodle/grade:manage',1,1547050084,0),(280,1,3,'moodle/grade:edit',1,1547050084,0),(281,1,1,'moodle/grade:edit',1,1547050084,0),(282,1,3,'moodle/grade:managegradingforms',1,1547050084,0),(283,1,1,'moodle/grade:managegradingforms',1,1547050084,0),(284,1,1,'moodle/grade:sharegradingforms',1,1547050084,0),(285,1,1,'moodle/grade:managesharedforms',1,1547050084,0),(286,1,3,'moodle/grade:manageoutcomes',1,1547050084,0),(287,1,1,'moodle/grade:manageoutcomes',1,1547050084,0),(288,1,3,'moodle/grade:manageletters',1,1547050084,0),(289,1,1,'moodle/grade:manageletters',1,1547050084,0),(290,1,3,'moodle/grade:hide',1,1547050084,0),(291,1,1,'moodle/grade:hide',1,1547050084,0),(292,1,3,'moodle/grade:lock',1,1547050084,0),(293,1,1,'moodle/grade:lock',1,1547050084,0),(294,1,3,'moodle/grade:unlock',1,1547050084,0),(295,1,1,'moodle/grade:unlock',1,1547050084,0),(296,1,7,'moodle/my:manageblocks',1,1547050084,0),(297,1,4,'moodle/notes:view',1,1547050084,0),(298,1,3,'moodle/notes:view',1,1547050084,0),(299,1,1,'moodle/notes:view',1,1547050084,0),(300,1,4,'moodle/notes:manage',1,1547050084,0),(301,1,3,'moodle/notes:manage',1,1547050084,0),(302,1,1,'moodle/notes:manage',1,1547050084,0),(303,1,1,'moodle/tag:manage',1,1547050085,0),(304,1,1,'moodle/tag:edit',1,1547050085,0),(305,1,7,'moodle/tag:flag',1,1547050085,0),(306,1,4,'moodle/tag:editblocks',1,1547050085,0),(307,1,3,'moodle/tag:editblocks',1,1547050085,0),(308,1,1,'moodle/tag:editblocks',1,1547050085,0),(309,1,6,'moodle/block:view',1,1547050085,0),(310,1,7,'moodle/block:view',1,1547050085,0),(311,1,5,'moodle/block:view',1,1547050085,0),(312,1,4,'moodle/block:view',1,1547050085,0),(313,1,3,'moodle/block:view',1,1547050085,0),(314,1,3,'moodle/block:edit',1,1547050085,0),(315,1,1,'moodle/block:edit',1,1547050085,0),(316,1,7,'moodle/portfolio:export',1,1547050085,0),(317,1,5,'moodle/portfolio:export',1,1547050085,0),(318,1,4,'moodle/portfolio:export',1,1547050085,0),(319,1,3,'moodle/portfolio:export',1,1547050085,0),(320,1,8,'moodle/comment:view',1,1547050085,0),(321,1,6,'moodle/comment:view',1,1547050085,0),(322,1,7,'moodle/comment:view',1,1547050085,0),(323,1,5,'moodle/comment:view',1,1547050085,0),(324,1,4,'moodle/comment:view',1,1547050085,0),(325,1,3,'moodle/comment:view',1,1547050085,0),(326,1,1,'moodle/comment:view',1,1547050085,0),(327,1,7,'moodle/comment:post',1,1547050085,0),(328,1,5,'moodle/comment:post',1,1547050085,0),(329,1,4,'moodle/comment:post',1,1547050085,0),(330,1,3,'moodle/comment:post',1,1547050085,0),(331,1,1,'moodle/comment:post',1,1547050085,0),(332,1,3,'moodle/comment:delete',1,1547050085,0),(333,1,1,'moodle/comment:delete',1,1547050085,0),(334,1,1,'moodle/webservice:createtoken',1,1547050085,0),(335,1,7,'moodle/webservice:createmobiletoken',1,1547050085,0),(336,1,7,'moodle/rating:view',1,1547050085,0),(337,1,5,'moodle/rating:view',1,1547050085,0),(338,1,4,'moodle/rating:view',1,1547050085,0),(339,1,3,'moodle/rating:view',1,1547050085,0),(340,1,1,'moodle/rating:view',1,1547050085,0),(341,1,7,'moodle/rating:viewany',1,1547050085,0),(342,1,5,'moodle/rating:viewany',1,1547050085,0),(343,1,4,'moodle/rating:viewany',1,1547050085,0),(344,1,3,'moodle/rating:viewany',1,1547050085,0),(345,1,1,'moodle/rating:viewany',1,1547050085,0),(346,1,7,'moodle/rating:viewall',1,1547050085,0),(347,1,5,'moodle/rating:viewall',1,1547050085,0),(348,1,4,'moodle/rating:viewall',1,1547050085,0),(349,1,3,'moodle/rating:viewall',1,1547050085,0),(350,1,1,'moodle/rating:viewall',1,1547050085,0),(351,1,7,'moodle/rating:rate',1,1547050085,0),(352,1,5,'moodle/rating:rate',1,1547050085,0),(353,1,4,'moodle/rating:rate',1,1547050085,0),(354,1,3,'moodle/rating:rate',1,1547050085,0),(355,1,1,'moodle/rating:rate',1,1547050085,0),(356,1,1,'moodle/course:publish',1,1547050085,0),(357,1,4,'moodle/course:markcomplete',1,1547050085,0),(358,1,3,'moodle/course:markcomplete',1,1547050085,0),(359,1,1,'moodle/course:markcomplete',1,1547050085,0),(360,1,4,'moodle/course:overridecompletion',1,1547050085,0),(361,1,3,'moodle/course:overridecompletion',1,1547050085,0),(362,1,1,'moodle/course:overridecompletion',1,1547050085,0),(363,1,1,'moodle/community:add',1,1547050085,0),(364,1,4,'moodle/community:add',1,1547050085,0),(365,1,3,'moodle/community:add',1,1547050085,0),(366,1,1,'moodle/community:download',1,1547050085,0),(367,1,3,'moodle/community:download',1,1547050085,0),(368,1,1,'moodle/badges:manageglobalsettings',1,1547050085,0),(369,1,7,'moodle/badges:viewbadges',1,1547050085,0),(370,1,7,'moodle/badges:manageownbadges',1,1547050085,0),(371,1,7,'moodle/badges:viewotherbadges',1,1547050085,0),(372,1,7,'moodle/badges:earnbadge',1,1547050085,0),(373,1,1,'moodle/badges:createbadge',1,1547050085,0),(374,1,3,'moodle/badges:createbadge',1,1547050085,0),(375,1,1,'moodle/badges:deletebadge',1,1547050085,0),(376,1,3,'moodle/badges:deletebadge',1,1547050085,0),(377,1,1,'moodle/badges:configuredetails',1,1547050085,0),(378,1,3,'moodle/badges:configuredetails',1,1547050085,0),(379,1,1,'moodle/badges:configurecriteria',1,1547050085,0),(380,1,3,'moodle/badges:configurecriteria',1,1547050085,0),(381,1,1,'moodle/badges:configuremessages',1,1547050085,0),(382,1,3,'moodle/badges:configuremessages',1,1547050086,0),(383,1,1,'moodle/badges:awardbadge',1,1547050086,0),(384,1,4,'moodle/badges:awardbadge',1,1547050086,0),(385,1,3,'moodle/badges:awardbadge',1,1547050086,0),(386,1,1,'moodle/badges:revokebadge',1,1547050086,0),(387,1,4,'moodle/badges:revokebadge',1,1547050086,0),(388,1,3,'moodle/badges:revokebadge',1,1547050086,0),(389,1,1,'moodle/badges:viewawarded',1,1547050086,0),(390,1,4,'moodle/badges:viewawarded',1,1547050086,0),(391,1,3,'moodle/badges:viewawarded',1,1547050086,0),(392,1,6,'moodle/search:query',1,1547050086,0),(393,1,7,'moodle/search:query',1,1547050086,0),(394,1,5,'moodle/search:query',1,1547050086,0),(395,1,4,'moodle/search:query',1,1547050086,0),(396,1,3,'moodle/search:query',1,1547050086,0),(397,1,1,'moodle/search:query',1,1547050086,0),(398,1,1,'moodle/competency:competencymanage',1,1547050086,0),(399,1,7,'moodle/competency:competencyview',1,1547050086,0),(400,1,3,'moodle/competency:competencygrade',1,1547050086,0),(401,1,4,'moodle/competency:competencygrade',1,1547050086,0),(402,1,1,'moodle/competency:competencygrade',1,1547050086,0),(403,1,3,'moodle/competency:coursecompetencymanage',1,1547050086,0),(404,1,1,'moodle/competency:coursecompetencymanage',1,1547050086,0),(405,1,1,'moodle/competency:coursecompetencyconfigure',1,1547050086,0),(406,1,5,'moodle/competency:coursecompetencygradable',1,1547050086,0),(407,1,7,'moodle/competency:coursecompetencyview',1,1547050086,0),(408,1,1,'moodle/competency:planmanage',1,1547050086,0),(409,1,1,'moodle/competency:planmanagedraft',1,1547050086,0),(410,1,1,'moodle/competency:planview',1,1547050086,0),(411,1,1,'moodle/competency:planviewdraft',1,1547050086,0),(412,1,7,'moodle/competency:planviewown',1,1547050086,0),(413,1,1,'moodle/competency:planrequestreview',1,1547050086,0),(414,1,7,'moodle/competency:planrequestreviewown',1,1547050086,0),(415,1,1,'moodle/competency:planreview',1,1547050086,0),(416,1,1,'moodle/competency:plancomment',1,1547050086,0),(417,1,7,'moodle/competency:plancommentown',1,1547050086,0),(418,1,1,'moodle/competency:usercompetencyview',1,1547050086,0),(419,1,3,'moodle/competency:usercompetencyview',1,1547050086,0),(420,1,4,'moodle/competency:usercompetencyview',1,1547050086,0),(421,1,1,'moodle/competency:usercompetencyrequestreview',1,1547050086,0),(422,1,7,'moodle/competency:usercompetencyrequestreviewown',1,1547050086,0),(423,1,1,'moodle/competency:usercompetencyreview',1,1547050086,0),(424,1,1,'moodle/competency:usercompetencycomment',1,1547050086,0),(425,1,7,'moodle/competency:usercompetencycommentown',1,1547050086,0),(426,1,1,'moodle/competency:templatemanage',1,1547050086,0),(427,1,4,'moodle/analytics:listinsights',1,1547050086,0),(428,1,3,'moodle/analytics:listinsights',1,1547050086,0),(429,1,1,'moodle/analytics:listinsights',1,1547050086,0),(430,1,1,'moodle/analytics:managemodels',1,1547050086,0),(431,1,1,'moodle/competency:templateview',1,1547050086,0),(432,1,1,'moodle/competency:userevidencemanage',1,1547050086,0),(433,1,7,'moodle/competency:userevidencemanageown',1,1547050086,0),(434,1,1,'moodle/competency:userevidenceview',1,1547050086,0),(435,1,4,'moodle/site:messageanyuser',1,1547050086,0),(436,1,3,'moodle/site:messageanyuser',1,1547050086,0),(437,1,1,'moodle/site:messageanyuser',1,1547050086,0),(438,1,6,'mod/assign:view',1,1547050099,0),(439,1,5,'mod/assign:view',1,1547050099,0),(440,1,4,'mod/assign:view',1,1547050099,0),(441,1,3,'mod/assign:view',1,1547050099,0),(442,1,1,'mod/assign:view',1,1547050099,0),(443,1,5,'mod/assign:submit',1,1547050099,0),(444,1,4,'mod/assign:grade',1,1547050099,0),(445,1,3,'mod/assign:grade',1,1547050099,0),(446,1,1,'mod/assign:grade',1,1547050099,0),(447,1,4,'mod/assign:exportownsubmission',1,1547050099,0),(448,1,3,'mod/assign:exportownsubmission',1,1547050099,0),(449,1,1,'mod/assign:exportownsubmission',1,1547050099,0),(450,1,5,'mod/assign:exportownsubmission',1,1547050099,0),(451,1,3,'mod/assign:addinstance',1,1547050099,0),(452,1,1,'mod/assign:addinstance',1,1547050099,0),(453,1,4,'mod/assign:grantextension',1,1547050099,0),(454,1,3,'mod/assign:grantextension',1,1547050099,0),(455,1,1,'mod/assign:grantextension',1,1547050099,0),(456,1,3,'mod/assign:revealidentities',1,1547050099,0),(457,1,1,'mod/assign:revealidentities',1,1547050099,0),(458,1,3,'mod/assign:reviewgrades',1,1547050099,0),(459,1,1,'mod/assign:reviewgrades',1,1547050099,0),(460,1,3,'mod/assign:releasegrades',1,1547050099,0),(461,1,1,'mod/assign:releasegrades',1,1547050099,0),(462,1,3,'mod/assign:managegrades',1,1547050099,0),(463,1,1,'mod/assign:managegrades',1,1547050099,0),(464,1,3,'mod/assign:manageallocations',1,1547050099,0),(465,1,1,'mod/assign:manageallocations',1,1547050099,0),(466,1,3,'mod/assign:viewgrades',1,1547050099,0),(467,1,1,'mod/assign:viewgrades',1,1547050099,0),(468,1,4,'mod/assign:viewgrades',1,1547050099,0),(469,1,1,'mod/assign:viewblinddetails',1,1547050099,0),(470,1,4,'mod/assign:receivegradernotifications',1,1547050099,0),(471,1,3,'mod/assign:receivegradernotifications',1,1547050099,0),(472,1,1,'mod/assign:receivegradernotifications',1,1547050099,0),(473,1,3,'mod/assign:manageoverrides',1,1547050099,0),(474,1,1,'mod/assign:manageoverrides',1,1547050099,0),(475,1,6,'mod/assignment:view',1,1547050100,0),(476,1,5,'mod/assignment:view',1,1547050100,0),(477,1,4,'mod/assignment:view',1,1547050100,0),(478,1,3,'mod/assignment:view',1,1547050100,0),(479,1,1,'mod/assignment:view',1,1547050100,0),(480,1,3,'mod/assignment:addinstance',1,1547050100,0),(481,1,1,'mod/assignment:addinstance',1,1547050100,0),(482,1,5,'mod/assignment:submit',1,1547050100,0),(483,1,4,'mod/assignment:grade',1,1547050100,0),(484,1,3,'mod/assignment:grade',1,1547050100,0),(485,1,1,'mod/assignment:grade',1,1547050100,0),(486,1,4,'mod/assignment:exportownsubmission',1,1547050100,0),(487,1,3,'mod/assignment:exportownsubmission',1,1547050100,0),(488,1,1,'mod/assignment:exportownsubmission',1,1547050100,0),(489,1,5,'mod/assignment:exportownsubmission',1,1547050100,0),(490,1,3,'mod/book:addinstance',1,1547050100,0),(491,1,1,'mod/book:addinstance',1,1547050100,0),(492,1,6,'mod/book:read',1,1547050100,0),(493,1,8,'mod/book:read',1,1547050100,0),(494,1,5,'mod/book:read',1,1547050100,0),(495,1,4,'mod/book:read',1,1547050100,0),(496,1,3,'mod/book:read',1,1547050100,0),(497,1,1,'mod/book:read',1,1547050100,0),(498,1,4,'mod/book:viewhiddenchapters',1,1547050100,0),(499,1,3,'mod/book:viewhiddenchapters',1,1547050100,0),(500,1,1,'mod/book:viewhiddenchapters',1,1547050100,0),(501,1,3,'mod/book:edit',1,1547050100,0),(502,1,1,'mod/book:edit',1,1547050100,0),(503,1,3,'mod/chat:addinstance',1,1547050100,0),(504,1,1,'mod/chat:addinstance',1,1547050100,0),(505,1,5,'mod/chat:chat',1,1547050100,0),(506,1,4,'mod/chat:chat',1,1547050100,0),(507,1,3,'mod/chat:chat',1,1547050100,0),(508,1,1,'mod/chat:chat',1,1547050100,0),(509,1,5,'mod/chat:readlog',1,1547050100,0),(510,1,4,'mod/chat:readlog',1,1547050100,0),(511,1,3,'mod/chat:readlog',1,1547050100,0),(512,1,1,'mod/chat:readlog',1,1547050100,0),(513,1,4,'mod/chat:deletelog',1,1547050100,0),(514,1,3,'mod/chat:deletelog',1,1547050100,0),(515,1,1,'mod/chat:deletelog',1,1547050100,0),(516,1,4,'mod/chat:exportparticipatedsession',1,1547050100,0),(517,1,3,'mod/chat:exportparticipatedsession',1,1547050100,0),(518,1,1,'mod/chat:exportparticipatedsession',1,1547050100,0),(519,1,4,'mod/chat:exportsession',1,1547050100,0),(520,1,3,'mod/chat:exportsession',1,1547050100,0),(521,1,1,'mod/chat:exportsession',1,1547050100,0),(522,1,7,'mod/chat:view',1,1547050100,0),(523,1,6,'mod/chat:view',1,1547050100,0),(524,1,3,'mod/choice:addinstance',1,1547050101,0),(525,1,1,'mod/choice:addinstance',1,1547050101,0),(526,1,5,'mod/choice:choose',1,1547050101,0),(527,1,4,'mod/choice:choose',1,1547050101,0),(528,1,3,'mod/choice:choose',1,1547050101,0),(529,1,4,'mod/choice:readresponses',1,1547050101,0),(530,1,3,'mod/choice:readresponses',1,1547050101,0),(531,1,1,'mod/choice:readresponses',1,1547050101,0),(532,1,4,'mod/choice:deleteresponses',1,1547050101,0),(533,1,3,'mod/choice:deleteresponses',1,1547050101,0),(534,1,1,'mod/choice:deleteresponses',1,1547050101,0),(535,1,4,'mod/choice:downloadresponses',1,1547050101,0),(536,1,3,'mod/choice:downloadresponses',1,1547050101,0),(537,1,1,'mod/choice:downloadresponses',1,1547050101,0),(538,1,7,'mod/choice:view',1,1547050101,0),(539,1,6,'mod/choice:view',1,1547050101,0),(540,1,3,'mod/data:addinstance',1,1547050101,0),(541,1,1,'mod/data:addinstance',1,1547050101,0),(542,1,8,'mod/data:viewentry',1,1547050101,0),(543,1,6,'mod/data:viewentry',1,1547050101,0),(544,1,5,'mod/data:viewentry',1,1547050101,0),(545,1,4,'mod/data:viewentry',1,1547050101,0),(546,1,3,'mod/data:viewentry',1,1547050101,0),(547,1,1,'mod/data:viewentry',1,1547050101,0),(548,1,5,'mod/data:writeentry',1,1547050101,0),(549,1,4,'mod/data:writeentry',1,1547050101,0),(550,1,3,'mod/data:writeentry',1,1547050101,0),(551,1,1,'mod/data:writeentry',1,1547050101,0),(552,1,5,'mod/data:comment',1,1547050101,0),(553,1,4,'mod/data:comment',1,1547050101,0),(554,1,3,'mod/data:comment',1,1547050101,0),(555,1,1,'mod/data:comment',1,1547050101,0),(556,1,4,'mod/data:rate',1,1547050101,0),(557,1,3,'mod/data:rate',1,1547050101,0),(558,1,1,'mod/data:rate',1,1547050101,0),(559,1,4,'mod/data:viewrating',1,1547050101,0),(560,1,3,'mod/data:viewrating',1,1547050101,0),(561,1,1,'mod/data:viewrating',1,1547050101,0),(562,1,4,'mod/data:viewanyrating',1,1547050101,0),(563,1,3,'mod/data:viewanyrating',1,1547050101,0),(564,1,1,'mod/data:viewanyrating',1,1547050101,0),(565,1,4,'mod/data:viewallratings',1,1547050101,0),(566,1,3,'mod/data:viewallratings',1,1547050101,0),(567,1,1,'mod/data:viewallratings',1,1547050101,0),(568,1,4,'mod/data:approve',1,1547050101,0),(569,1,3,'mod/data:approve',1,1547050101,0),(570,1,1,'mod/data:approve',1,1547050101,0),(571,1,4,'mod/data:manageentries',1,1547050101,0),(572,1,3,'mod/data:manageentries',1,1547050101,0),(573,1,1,'mod/data:manageentries',1,1547050101,0),(574,1,4,'mod/data:managecomments',1,1547050101,0),(575,1,3,'mod/data:managecomments',1,1547050101,0),(576,1,1,'mod/data:managecomments',1,1547050101,0),(577,1,3,'mod/data:managetemplates',1,1547050101,0),(578,1,1,'mod/data:managetemplates',1,1547050101,0),(579,1,4,'mod/data:viewalluserpresets',1,1547050101,0),(580,1,3,'mod/data:viewalluserpresets',1,1547050101,0),(581,1,1,'mod/data:viewalluserpresets',1,1547050101,0),(582,1,1,'mod/data:manageuserpresets',1,1547050101,0),(583,1,1,'mod/data:exportentry',1,1547050101,0),(584,1,4,'mod/data:exportentry',1,1547050101,0),(585,1,3,'mod/data:exportentry',1,1547050101,0),(586,1,1,'mod/data:exportownentry',1,1547050101,0),(587,1,4,'mod/data:exportownentry',1,1547050101,0),(588,1,3,'mod/data:exportownentry',1,1547050101,0),(589,1,5,'mod/data:exportownentry',1,1547050101,0),(590,1,1,'mod/data:exportallentries',1,1547050101,0),(591,1,4,'mod/data:exportallentries',1,1547050101,0),(592,1,3,'mod/data:exportallentries',1,1547050101,0),(593,1,1,'mod/data:exportuserinfo',1,1547050101,0),(594,1,4,'mod/data:exportuserinfo',1,1547050101,0),(595,1,3,'mod/data:exportuserinfo',1,1547050101,0),(596,1,6,'mod/data:view',1,1547050101,0),(597,1,5,'mod/data:view',1,1547050101,0),(598,1,4,'mod/data:view',1,1547050101,0),(599,1,3,'mod/data:view',1,1547050101,0),(600,1,1,'mod/data:view',1,1547050101,0),(601,1,3,'mod/feedback:addinstance',1,1547050102,0),(602,1,1,'mod/feedback:addinstance',1,1547050102,0),(603,1,6,'mod/feedback:view',1,1547050102,0),(604,1,8,'mod/feedback:view',1,1547050102,0),(605,1,5,'mod/feedback:view',1,1547050102,0),(606,1,4,'mod/feedback:view',1,1547050102,0),(607,1,3,'mod/feedback:view',1,1547050102,0),(608,1,1,'mod/feedback:view',1,1547050102,0),(609,1,8,'mod/feedback:complete',1,1547050102,0),(610,1,5,'mod/feedback:complete',1,1547050102,0),(611,1,5,'mod/feedback:viewanalysepage',1,1547050102,0),(612,1,3,'mod/feedback:viewanalysepage',1,1547050102,0),(613,1,1,'mod/feedback:viewanalysepage',1,1547050102,0),(614,1,3,'mod/feedback:deletesubmissions',1,1547050102,0),(615,1,1,'mod/feedback:deletesubmissions',1,1547050102,0),(616,1,1,'mod/feedback:mapcourse',1,1547050102,0),(617,1,3,'mod/feedback:edititems',1,1547050102,0),(618,1,1,'mod/feedback:edititems',1,1547050102,0),(619,1,3,'mod/feedback:createprivatetemplate',1,1547050102,0),(620,1,1,'mod/feedback:createprivatetemplate',1,1547050102,0),(621,1,3,'mod/feedback:createpublictemplate',1,1547050102,0),(622,1,1,'mod/feedback:createpublictemplate',1,1547050102,0),(623,1,3,'mod/feedback:deletetemplate',1,1547050102,0),(624,1,1,'mod/feedback:deletetemplate',1,1547050102,0),(625,1,4,'mod/feedback:viewreports',1,1547050102,0),(626,1,3,'mod/feedback:viewreports',1,1547050102,0),(627,1,1,'mod/feedback:viewreports',1,1547050102,0),(628,1,4,'mod/feedback:receivemail',1,1547050102,0),(629,1,3,'mod/feedback:receivemail',1,1547050102,0),(630,1,3,'mod/folder:addinstance',1,1547050102,0),(631,1,1,'mod/folder:addinstance',1,1547050102,0),(632,1,6,'mod/folder:view',1,1547050102,0),(633,1,7,'mod/folder:view',1,1547050102,0),(634,1,3,'mod/folder:managefiles',1,1547050102,0),(635,1,3,'mod/forum:addinstance',1,1547050102,0),(636,1,1,'mod/forum:addinstance',1,1547050102,0),(637,1,8,'mod/forum:viewdiscussion',1,1547050102,0),(638,1,6,'mod/forum:viewdiscussion',1,1547050102,0),(639,1,5,'mod/forum:viewdiscussion',1,1547050102,0),(640,1,4,'mod/forum:viewdiscussion',1,1547050102,0),(641,1,3,'mod/forum:viewdiscussion',1,1547050102,0),(642,1,1,'mod/forum:viewdiscussion',1,1547050102,0),(643,1,4,'mod/forum:viewhiddentimedposts',1,1547050102,0),(644,1,3,'mod/forum:viewhiddentimedposts',1,1547050102,0),(645,1,1,'mod/forum:viewhiddentimedposts',1,1547050102,0),(646,1,5,'mod/forum:startdiscussion',1,1547050102,0),(647,1,4,'mod/forum:startdiscussion',1,1547050102,0),(648,1,3,'mod/forum:startdiscussion',1,1547050102,0),(649,1,1,'mod/forum:startdiscussion',1,1547050102,0),(650,1,5,'mod/forum:replypost',1,1547050102,0),(651,1,4,'mod/forum:replypost',1,1547050102,0),(652,1,3,'mod/forum:replypost',1,1547050102,0),(653,1,1,'mod/forum:replypost',1,1547050102,0),(654,1,4,'mod/forum:addnews',1,1547050102,0),(655,1,3,'mod/forum:addnews',1,1547050102,0),(656,1,1,'mod/forum:addnews',1,1547050102,0),(657,1,4,'mod/forum:replynews',1,1547050102,0),(658,1,3,'mod/forum:replynews',1,1547050102,0),(659,1,1,'mod/forum:replynews',1,1547050102,0),(660,1,5,'mod/forum:viewrating',1,1547050103,0),(661,1,4,'mod/forum:viewrating',1,1547050103,0),(662,1,3,'mod/forum:viewrating',1,1547050103,0),(663,1,1,'mod/forum:viewrating',1,1547050103,0),(664,1,4,'mod/forum:viewanyrating',1,1547050103,0),(665,1,3,'mod/forum:viewanyrating',1,1547050103,0),(666,1,1,'mod/forum:viewanyrating',1,1547050103,0),(667,1,4,'mod/forum:viewallratings',1,1547050103,0),(668,1,3,'mod/forum:viewallratings',1,1547050103,0),(669,1,1,'mod/forum:viewallratings',1,1547050103,0),(670,1,4,'mod/forum:rate',1,1547050103,0),(671,1,3,'mod/forum:rate',1,1547050103,0),(672,1,1,'mod/forum:rate',1,1547050103,0),(673,1,5,'mod/forum:createattachment',1,1547050103,0),(674,1,4,'mod/forum:createattachment',1,1547050103,0),(675,1,3,'mod/forum:createattachment',1,1547050103,0),(676,1,1,'mod/forum:createattachment',1,1547050103,0),(677,1,5,'mod/forum:deleteownpost',1,1547050103,0),(678,1,4,'mod/forum:deleteownpost',1,1547050103,0),(679,1,3,'mod/forum:deleteownpost',1,1547050103,0),(680,1,1,'mod/forum:deleteownpost',1,1547050103,0),(681,1,4,'mod/forum:deleteanypost',1,1547050103,0),(682,1,3,'mod/forum:deleteanypost',1,1547050103,0),(683,1,1,'mod/forum:deleteanypost',1,1547050103,0),(684,1,4,'mod/forum:splitdiscussions',1,1547050103,0),(685,1,3,'mod/forum:splitdiscussions',1,1547050103,0),(686,1,1,'mod/forum:splitdiscussions',1,1547050103,0),(687,1,4,'mod/forum:movediscussions',1,1547050103,0),(688,1,3,'mod/forum:movediscussions',1,1547050103,0),(689,1,1,'mod/forum:movediscussions',1,1547050103,0),(690,1,4,'mod/forum:pindiscussions',1,1547050103,0),(691,1,3,'mod/forum:pindiscussions',1,1547050103,0),(692,1,1,'mod/forum:pindiscussions',1,1547050103,0),(693,1,4,'mod/forum:editanypost',1,1547050103,0),(694,1,3,'mod/forum:editanypost',1,1547050103,0),(695,1,1,'mod/forum:editanypost',1,1547050103,0),(696,1,4,'mod/forum:viewqandawithoutposting',1,1547050103,0),(697,1,3,'mod/forum:viewqandawithoutposting',1,1547050103,0),(698,1,1,'mod/forum:viewqandawithoutposting',1,1547050103,0),(699,1,4,'mod/forum:viewsubscribers',1,1547050103,0),(700,1,3,'mod/forum:viewsubscribers',1,1547050103,0),(701,1,1,'mod/forum:viewsubscribers',1,1547050103,0),(702,1,4,'mod/forum:managesubscriptions',1,1547050103,0),(703,1,3,'mod/forum:managesubscriptions',1,1547050103,0),(704,1,1,'mod/forum:managesubscriptions',1,1547050103,0),(705,1,4,'mod/forum:postwithoutthrottling',1,1547050103,0),(706,1,3,'mod/forum:postwithoutthrottling',1,1547050103,0),(707,1,1,'mod/forum:postwithoutthrottling',1,1547050103,0),(708,1,4,'mod/forum:exportdiscussion',1,1547050103,0),(709,1,3,'mod/forum:exportdiscussion',1,1547050103,0),(710,1,1,'mod/forum:exportdiscussion',1,1547050103,0),(711,1,4,'mod/forum:exportpost',1,1547050103,0),(712,1,3,'mod/forum:exportpost',1,1547050103,0),(713,1,1,'mod/forum:exportpost',1,1547050103,0),(714,1,4,'mod/forum:exportownpost',1,1547050103,0),(715,1,3,'mod/forum:exportownpost',1,1547050103,0),(716,1,1,'mod/forum:exportownpost',1,1547050103,0),(717,1,5,'mod/forum:exportownpost',1,1547050103,0),(718,1,4,'mod/forum:addquestion',1,1547050103,0),(719,1,3,'mod/forum:addquestion',1,1547050103,0),(720,1,1,'mod/forum:addquestion',1,1547050103,0),(721,1,5,'mod/forum:allowforcesubscribe',1,1547050103,0),(722,1,4,'mod/forum:allowforcesubscribe',1,1547050103,0),(723,1,3,'mod/forum:allowforcesubscribe',1,1547050103,0),(724,1,8,'mod/forum:allowforcesubscribe',1,1547050103,0),(725,1,4,'mod/forum:canposttomygroups',1,1547050103,0),(726,1,3,'mod/forum:canposttomygroups',1,1547050103,0),(727,1,1,'mod/forum:canposttomygroups',1,1547050103,0),(728,1,4,'mod/forum:canoverridediscussionlock',1,1547050103,0),(729,1,3,'mod/forum:canoverridediscussionlock',1,1547050103,0),(730,1,1,'mod/forum:canoverridediscussionlock',1,1547050103,0),(731,1,3,'mod/glossary:addinstance',1,1547050103,0),(732,1,1,'mod/glossary:addinstance',1,1547050103,0),(733,1,8,'mod/glossary:view',1,1547050103,0),(734,1,6,'mod/glossary:view',1,1547050103,0),(735,1,5,'mod/glossary:view',1,1547050103,0),(736,1,4,'mod/glossary:view',1,1547050103,0),(737,1,3,'mod/glossary:view',1,1547050103,0),(738,1,1,'mod/glossary:view',1,1547050103,0),(739,1,5,'mod/glossary:write',1,1547050103,0),(740,1,4,'mod/glossary:write',1,1547050103,0),(741,1,3,'mod/glossary:write',1,1547050103,0),(742,1,1,'mod/glossary:write',1,1547050103,0),(743,1,4,'mod/glossary:manageentries',1,1547050103,0),(744,1,3,'mod/glossary:manageentries',1,1547050103,0),(745,1,1,'mod/glossary:manageentries',1,1547050103,0),(746,1,4,'mod/glossary:managecategories',1,1547050103,0),(747,1,3,'mod/glossary:managecategories',1,1547050103,0),(748,1,1,'mod/glossary:managecategories',1,1547050103,0),(749,1,5,'mod/glossary:comment',1,1547050103,0),(750,1,4,'mod/glossary:comment',1,1547050103,0),(751,1,3,'mod/glossary:comment',1,1547050103,0),(752,1,1,'mod/glossary:comment',1,1547050103,0),(753,1,4,'mod/glossary:managecomments',1,1547050103,0),(754,1,3,'mod/glossary:managecomments',1,1547050103,0),(755,1,1,'mod/glossary:managecomments',1,1547050103,0),(756,1,4,'mod/glossary:import',1,1547050103,0),(757,1,3,'mod/glossary:import',1,1547050103,0),(758,1,1,'mod/glossary:import',1,1547050103,0),(759,1,4,'mod/glossary:export',1,1547050103,0),(760,1,3,'mod/glossary:export',1,1547050103,0),(761,1,1,'mod/glossary:export',1,1547050103,0),(762,1,4,'mod/glossary:approve',1,1547050103,0),(763,1,3,'mod/glossary:approve',1,1547050103,0),(764,1,1,'mod/glossary:approve',1,1547050103,0),(765,1,4,'mod/glossary:rate',1,1547050103,0),(766,1,3,'mod/glossary:rate',1,1547050103,0),(767,1,1,'mod/glossary:rate',1,1547050103,0),(768,1,4,'mod/glossary:viewrating',1,1547050103,0),(769,1,3,'mod/glossary:viewrating',1,1547050103,0),(770,1,1,'mod/glossary:viewrating',1,1547050103,0),(771,1,4,'mod/glossary:viewanyrating',1,1547050103,0),(772,1,3,'mod/glossary:viewanyrating',1,1547050104,0),(773,1,1,'mod/glossary:viewanyrating',1,1547050104,0),(774,1,4,'mod/glossary:viewallratings',1,1547050104,0),(775,1,3,'mod/glossary:viewallratings',1,1547050104,0),(776,1,1,'mod/glossary:viewallratings',1,1547050104,0),(777,1,4,'mod/glossary:exportentry',1,1547050104,0),(778,1,3,'mod/glossary:exportentry',1,1547050104,0),(779,1,1,'mod/glossary:exportentry',1,1547050104,0),(780,1,4,'mod/glossary:exportownentry',1,1547050104,0),(781,1,3,'mod/glossary:exportownentry',1,1547050104,0),(782,1,1,'mod/glossary:exportownentry',1,1547050104,0),(783,1,5,'mod/glossary:exportownentry',1,1547050104,0),(784,1,6,'mod/imscp:view',1,1547050104,0),(785,1,7,'mod/imscp:view',1,1547050104,0),(786,1,3,'mod/imscp:addinstance',1,1547050104,0),(787,1,1,'mod/imscp:addinstance',1,1547050104,0),(788,1,3,'mod/label:addinstance',1,1547050104,0),(789,1,1,'mod/label:addinstance',1,1547050104,0),(790,1,7,'mod/label:view',1,1547050104,0),(791,1,6,'mod/label:view',1,1547050104,0),(792,1,3,'mod/lesson:addinstance',1,1547050104,0),(793,1,1,'mod/lesson:addinstance',1,1547050104,0),(794,1,3,'mod/lesson:edit',1,1547050104,0),(795,1,1,'mod/lesson:edit',1,1547050104,0),(796,1,4,'mod/lesson:grade',1,1547050104,0),(797,1,3,'mod/lesson:grade',1,1547050104,0),(798,1,1,'mod/lesson:grade',1,1547050104,0),(799,1,4,'mod/lesson:viewreports',1,1547050104,0),(800,1,3,'mod/lesson:viewreports',1,1547050104,0),(801,1,1,'mod/lesson:viewreports',1,1547050104,0),(802,1,4,'mod/lesson:manage',1,1547050104,0),(803,1,3,'mod/lesson:manage',1,1547050104,0),(804,1,1,'mod/lesson:manage',1,1547050104,0),(805,1,3,'mod/lesson:manageoverrides',1,1547050104,0),(806,1,1,'mod/lesson:manageoverrides',1,1547050104,0),(807,1,7,'mod/lesson:view',1,1547050104,0),(808,1,6,'mod/lesson:view',1,1547050104,0),(809,1,5,'mod/lti:view',1,1547050105,0),(810,1,4,'mod/lti:view',1,1547050105,0),(811,1,3,'mod/lti:view',1,1547050105,0),(812,1,1,'mod/lti:view',1,1547050105,0),(813,1,3,'mod/lti:addinstance',1,1547050105,0),(814,1,1,'mod/lti:addinstance',1,1547050105,0),(815,1,4,'mod/lti:manage',1,1547050105,0),(816,1,3,'mod/lti:manage',1,1547050105,0),(817,1,1,'mod/lti:manage',1,1547050105,0),(818,1,3,'mod/lti:addcoursetool',1,1547050105,0),(819,1,1,'mod/lti:addcoursetool',1,1547050105,0),(820,1,3,'mod/lti:requesttooladd',1,1547050105,0),(821,1,1,'mod/lti:requesttooladd',1,1547050105,0),(822,1,6,'mod/page:view',1,1547050105,0),(823,1,7,'mod/page:view',1,1547050105,0),(824,1,3,'mod/page:addinstance',1,1547050105,0),(825,1,1,'mod/page:addinstance',1,1547050105,0),(826,1,6,'mod/quiz:view',1,1547050105,0),(827,1,5,'mod/quiz:view',1,1547050105,0),(828,1,4,'mod/quiz:view',1,1547050105,0),(829,1,3,'mod/quiz:view',1,1547050105,0),(830,1,1,'mod/quiz:view',1,1547050105,0),(831,1,3,'mod/quiz:addinstance',1,1547050105,0),(832,1,1,'mod/quiz:addinstance',1,1547050105,0),(833,1,5,'mod/quiz:attempt',1,1547050105,0),(834,1,5,'mod/quiz:reviewmyattempts',1,1547050105,0),(835,1,3,'mod/quiz:manage',1,1547050105,0),(836,1,1,'mod/quiz:manage',1,1547050105,0),(837,1,3,'mod/quiz:manageoverrides',1,1547050105,0),(838,1,1,'mod/quiz:manageoverrides',1,1547050105,0),(839,1,4,'mod/quiz:preview',1,1547050105,0),(840,1,3,'mod/quiz:preview',1,1547050105,0),(841,1,1,'mod/quiz:preview',1,1547050105,0),(842,1,4,'mod/quiz:grade',1,1547050105,0),(843,1,3,'mod/quiz:grade',1,1547050105,0),(844,1,1,'mod/quiz:grade',1,1547050105,0),(845,1,4,'mod/quiz:regrade',1,1547050105,0),(846,1,3,'mod/quiz:regrade',1,1547050105,0),(847,1,1,'mod/quiz:regrade',1,1547050105,0),(848,1,4,'mod/quiz:viewreports',1,1547050105,0),(849,1,3,'mod/quiz:viewreports',1,1547050105,0),(850,1,1,'mod/quiz:viewreports',1,1547050105,0),(851,1,3,'mod/quiz:deleteattempts',1,1547050105,0),(852,1,1,'mod/quiz:deleteattempts',1,1547050105,0),(853,1,6,'mod/resource:view',1,1547050106,0),(854,1,7,'mod/resource:view',1,1547050106,0),(855,1,3,'mod/resource:addinstance',1,1547050106,0),(856,1,1,'mod/resource:addinstance',1,1547050106,0),(857,1,3,'mod/scorm:addinstance',1,1547050106,0),(858,1,1,'mod/scorm:addinstance',1,1547050106,0),(859,1,4,'mod/scorm:viewreport',1,1547050106,0),(860,1,3,'mod/scorm:viewreport',1,1547050106,0),(861,1,1,'mod/scorm:viewreport',1,1547050106,0),(862,1,5,'mod/scorm:skipview',1,1547050106,0),(863,1,5,'mod/scorm:savetrack',1,1547050106,0),(864,1,4,'mod/scorm:savetrack',1,1547050106,0),(865,1,3,'mod/scorm:savetrack',1,1547050106,0),(866,1,1,'mod/scorm:savetrack',1,1547050106,0),(867,1,5,'mod/scorm:viewscores',1,1547050106,0),(868,1,4,'mod/scorm:viewscores',1,1547050106,0),(869,1,3,'mod/scorm:viewscores',1,1547050106,0),(870,1,1,'mod/scorm:viewscores',1,1547050106,0),(871,1,4,'mod/scorm:deleteresponses',1,1547050106,0),(872,1,3,'mod/scorm:deleteresponses',1,1547050106,0),(873,1,1,'mod/scorm:deleteresponses',1,1547050106,0),(874,1,3,'mod/survey:addinstance',1,1547050106,0),(875,1,1,'mod/survey:addinstance',1,1547050106,0),(876,1,5,'mod/survey:participate',1,1547050106,0),(877,1,4,'mod/survey:participate',1,1547050106,0),(878,1,3,'mod/survey:participate',1,1547050106,0),(879,1,1,'mod/survey:participate',1,1547050106,0),(880,1,4,'mod/survey:readresponses',1,1547050106,0),(881,1,3,'mod/survey:readresponses',1,1547050106,0),(882,1,1,'mod/survey:readresponses',1,1547050106,0),(883,1,4,'mod/survey:download',1,1547050106,0),(884,1,3,'mod/survey:download',1,1547050106,0),(885,1,1,'mod/survey:download',1,1547050106,0),(886,1,6,'mod/url:view',1,1547050107,0),(887,1,7,'mod/url:view',1,1547050107,0),(888,1,3,'mod/url:addinstance',1,1547050107,0),(889,1,1,'mod/url:addinstance',1,1547050107,0),(890,1,3,'mod/wiki:addinstance',1,1547050107,0),(891,1,1,'mod/wiki:addinstance',1,1547050107,0),(892,1,6,'mod/wiki:viewpage',1,1547050107,0),(893,1,8,'mod/wiki:viewpage',1,1547050107,0),(894,1,5,'mod/wiki:viewpage',1,1547050107,0),(895,1,4,'mod/wiki:viewpage',1,1547050107,0),(896,1,3,'mod/wiki:viewpage',1,1547050107,0),(897,1,1,'mod/wiki:viewpage',1,1547050107,0),(898,1,5,'mod/wiki:editpage',1,1547050107,0),(899,1,4,'mod/wiki:editpage',1,1547050107,0),(900,1,3,'mod/wiki:editpage',1,1547050107,0),(901,1,1,'mod/wiki:editpage',1,1547050107,0),(902,1,5,'mod/wiki:createpage',1,1547050107,0),(903,1,4,'mod/wiki:createpage',1,1547050107,0),(904,1,3,'mod/wiki:createpage',1,1547050107,0),(905,1,1,'mod/wiki:createpage',1,1547050107,0),(906,1,5,'mod/wiki:viewcomment',1,1547050107,0),(907,1,4,'mod/wiki:viewcomment',1,1547050107,0),(908,1,3,'mod/wiki:viewcomment',1,1547050107,0),(909,1,1,'mod/wiki:viewcomment',1,1547050107,0),(910,1,5,'mod/wiki:editcomment',1,1547050107,0),(911,1,4,'mod/wiki:editcomment',1,1547050107,0),(912,1,3,'mod/wiki:editcomment',1,1547050107,0),(913,1,1,'mod/wiki:editcomment',1,1547050107,0),(914,1,4,'mod/wiki:managecomment',1,1547050107,0),(915,1,3,'mod/wiki:managecomment',1,1547050107,0),(916,1,1,'mod/wiki:managecomment',1,1547050107,0),(917,1,4,'mod/wiki:managefiles',1,1547050107,0),(918,1,3,'mod/wiki:managefiles',1,1547050107,0),(919,1,1,'mod/wiki:managefiles',1,1547050107,0),(920,1,4,'mod/wiki:overridelock',1,1547050107,0),(921,1,3,'mod/wiki:overridelock',1,1547050107,0),(922,1,1,'mod/wiki:overridelock',1,1547050107,0),(923,1,4,'mod/wiki:managewiki',1,1547050107,0),(924,1,3,'mod/wiki:managewiki',1,1547050107,0),(925,1,1,'mod/wiki:managewiki',1,1547050107,0),(926,1,6,'mod/workshop:view',1,1547050107,0),(927,1,5,'mod/workshop:view',1,1547050107,0),(928,1,4,'mod/workshop:view',1,1547050107,0),(929,1,3,'mod/workshop:view',1,1547050107,0),(930,1,1,'mod/workshop:view',1,1547050107,0),(931,1,3,'mod/workshop:addinstance',1,1547050107,0),(932,1,1,'mod/workshop:addinstance',1,1547050107,0),(933,1,4,'mod/workshop:switchphase',1,1547050107,0),(934,1,3,'mod/workshop:switchphase',1,1547050107,0),(935,1,1,'mod/workshop:switchphase',1,1547050107,0),(936,1,3,'mod/workshop:editdimensions',1,1547050107,0),(937,1,1,'mod/workshop:editdimensions',1,1547050107,0),(938,1,5,'mod/workshop:submit',1,1547050107,0),(939,1,5,'mod/workshop:peerassess',1,1547050107,0),(940,1,4,'mod/workshop:manageexamples',1,1547050107,0),(941,1,3,'mod/workshop:manageexamples',1,1547050107,0),(942,1,1,'mod/workshop:manageexamples',1,1547050107,0),(943,1,4,'mod/workshop:allocate',1,1547050107,0),(944,1,3,'mod/workshop:allocate',1,1547050107,0),(945,1,1,'mod/workshop:allocate',1,1547050107,0),(946,1,4,'mod/workshop:publishsubmissions',1,1547050107,0),(947,1,3,'mod/workshop:publishsubmissions',1,1547050107,0),(948,1,1,'mod/workshop:publishsubmissions',1,1547050107,0),(949,1,5,'mod/workshop:viewauthornames',1,1547050107,0),(950,1,4,'mod/workshop:viewauthornames',1,1547050107,0),(951,1,3,'mod/workshop:viewauthornames',1,1547050107,0),(952,1,1,'mod/workshop:viewauthornames',1,1547050107,0),(953,1,4,'mod/workshop:viewreviewernames',1,1547050107,0),(954,1,3,'mod/workshop:viewreviewernames',1,1547050107,0),(955,1,1,'mod/workshop:viewreviewernames',1,1547050107,0),(956,1,4,'mod/workshop:viewallsubmissions',1,1547050107,0),(957,1,3,'mod/workshop:viewallsubmissions',1,1547050107,0),(958,1,1,'mod/workshop:viewallsubmissions',1,1547050107,0),(959,1,5,'mod/workshop:viewpublishedsubmissions',1,1547050107,0),(960,1,4,'mod/workshop:viewpublishedsubmissions',1,1547050107,0),(961,1,3,'mod/workshop:viewpublishedsubmissions',1,1547050107,0),(962,1,1,'mod/workshop:viewpublishedsubmissions',1,1547050107,0),(963,1,5,'mod/workshop:viewauthorpublished',1,1547050107,0),(964,1,4,'mod/workshop:viewauthorpublished',1,1547050107,0),(965,1,3,'mod/workshop:viewauthorpublished',1,1547050107,0),(966,1,1,'mod/workshop:viewauthorpublished',1,1547050107,0),(967,1,4,'mod/workshop:viewallassessments',1,1547050107,0),(968,1,3,'mod/workshop:viewallassessments',1,1547050107,0),(969,1,1,'mod/workshop:viewallassessments',1,1547050107,0),(970,1,4,'mod/workshop:overridegrades',1,1547050107,0),(971,1,3,'mod/workshop:overridegrades',1,1547050107,0),(972,1,1,'mod/workshop:overridegrades',1,1547050107,0),(973,1,4,'mod/workshop:ignoredeadlines',1,1547050107,0),(974,1,3,'mod/workshop:ignoredeadlines',1,1547050107,0),(975,1,1,'mod/workshop:ignoredeadlines',1,1547050107,0),(976,1,4,'mod/workshop:deletesubmissions',1,1547050107,0),(977,1,3,'mod/workshop:deletesubmissions',1,1547050107,0),(978,1,1,'mod/workshop:deletesubmissions',1,1547050107,0),(979,1,1,'mod/workshop:exportsubmissions',1,1547050107,0),(980,1,4,'mod/workshop:exportsubmissions',1,1547050107,0),(981,1,3,'mod/workshop:exportsubmissions',1,1547050107,0),(982,1,5,'mod/workshop:exportsubmissions',1,1547050107,0),(983,1,7,'auth/oauth2:managelinkedlogins',1,1547050108,0),(984,1,1,'enrol/category:config',1,1547050109,0),(985,1,3,'enrol/category:config',1,1547050109,0),(986,1,3,'enrol/cohort:config',1,1547050109,0),(987,1,1,'enrol/cohort:config',1,1547050109,0),(988,1,1,'enrol/cohort:unenrol',1,1547050109,0),(989,1,1,'enrol/database:unenrol',1,1547050109,0),(990,1,1,'enrol/database:config',1,1547050109,0),(991,1,3,'enrol/database:config',1,1547050109,0),(992,1,1,'enrol/guest:config',1,1547050109,0),(993,1,3,'enrol/guest:config',1,1547050109,0),(994,1,1,'enrol/imsenterprise:config',1,1547050109,0),(995,1,3,'enrol/imsenterprise:config',1,1547050109,0),(996,1,1,'enrol/ldap:manage',1,1547050109,0),(997,1,1,'enrol/lti:config',1,1547050109,0),(998,1,3,'enrol/lti:config',1,1547050109,0),(999,1,1,'enrol/lti:unenrol',1,1547050109,0),(1000,1,3,'enrol/lti:unenrol',1,1547050109,0),(1001,1,1,'enrol/manual:config',1,1547050109,0),(1002,1,1,'enrol/manual:enrol',1,1547050109,0),(1003,1,3,'enrol/manual:enrol',1,1547050110,0),(1004,1,1,'enrol/manual:manage',1,1547050110,0),(1005,1,3,'enrol/manual:manage',1,1547050110,0),(1006,1,1,'enrol/manual:unenrol',1,1547050110,0),(1007,1,3,'enrol/manual:unenrol',1,1547050110,0),(1008,1,1,'enrol/meta:config',1,1547050110,0),(1009,1,3,'enrol/meta:config',1,1547050110,0),(1010,1,1,'enrol/meta:selectaslinked',1,1547050110,0),(1011,1,1,'enrol/meta:unenrol',1,1547050110,0),(1012,1,1,'enrol/mnet:config',1,1547050110,0),(1013,1,3,'enrol/mnet:config',1,1547050110,0),(1014,1,1,'enrol/paypal:config',1,1547050110,0),(1015,1,1,'enrol/paypal:manage',1,1547050110,0),(1016,1,3,'enrol/paypal:manage',1,1547050110,0),(1017,1,1,'enrol/paypal:unenrol',1,1547050110,0),(1018,1,3,'enrol/self:config',1,1547050110,0),(1019,1,1,'enrol/self:config',1,1547050110,0),(1020,1,3,'enrol/self:manage',1,1547050110,0),(1021,1,1,'enrol/self:manage',1,1547050110,0),(1022,1,5,'enrol/self:unenrolself',1,1547050110,0),(1023,1,3,'enrol/self:unenrol',1,1547050110,0),(1024,1,1,'enrol/self:unenrol',1,1547050110,0),(1025,1,7,'message/airnotifier:managedevice',1,1547050110,0),(1026,1,3,'block/activity_modules:addinstance',1,1547050111,0),(1027,1,1,'block/activity_modules:addinstance',1,1547050111,0),(1028,1,3,'block/activity_results:addinstance',1,1547050111,0),(1029,1,1,'block/activity_results:addinstance',1,1547050111,0),(1030,1,7,'block/admin_bookmarks:myaddinstance',1,1547050111,0),(1031,1,3,'block/admin_bookmarks:addinstance',1,1547050111,0),(1032,1,1,'block/admin_bookmarks:addinstance',1,1547050111,0),(1033,1,3,'block/badges:addinstance',1,1547050111,0),(1034,1,1,'block/badges:addinstance',1,1547050111,0),(1035,1,7,'block/badges:myaddinstance',1,1547050111,0),(1036,1,3,'block/blog_menu:addinstance',1,1547050112,0),(1037,1,1,'block/blog_menu:addinstance',1,1547050112,0),(1038,1,3,'block/blog_recent:addinstance',1,1547050112,0),(1039,1,1,'block/blog_recent:addinstance',1,1547050112,0),(1040,1,3,'block/blog_tags:addinstance',1,1547050112,0),(1041,1,1,'block/blog_tags:addinstance',1,1547050112,0),(1042,1,7,'block/calendar_month:myaddinstance',1,1547050112,0),(1043,1,3,'block/calendar_month:addinstance',1,1547050112,0),(1044,1,1,'block/calendar_month:addinstance',1,1547050112,0),(1045,1,7,'block/calendar_upcoming:myaddinstance',1,1547050112,0),(1046,1,3,'block/calendar_upcoming:addinstance',1,1547050112,0),(1047,1,1,'block/calendar_upcoming:addinstance',1,1547050112,0),(1048,1,7,'block/comments:myaddinstance',1,1547050112,0),(1049,1,3,'block/comments:addinstance',1,1547050112,0),(1050,1,1,'block/comments:addinstance',1,1547050112,0),(1051,1,7,'block/community:myaddinstance',1,1547050112,0),(1052,1,3,'block/community:addinstance',1,1547050112,0),(1053,1,1,'block/community:addinstance',1,1547050112,0),(1054,1,3,'block/completionstatus:addinstance',1,1547050112,0),(1055,1,1,'block/completionstatus:addinstance',1,1547050112,0),(1056,1,7,'block/course_list:myaddinstance',1,1547050112,0),(1057,1,3,'block/course_list:addinstance',1,1547050112,0),(1058,1,1,'block/course_list:addinstance',1,1547050112,0),(1059,1,3,'block/course_summary:addinstance',1,1547050112,0),(1060,1,1,'block/course_summary:addinstance',1,1547050112,0),(1061,1,3,'block/feedback:addinstance',1,1547050113,0),(1062,1,1,'block/feedback:addinstance',1,1547050113,0),(1063,1,7,'block/globalsearch:myaddinstance',1,1547050113,0),(1064,1,3,'block/globalsearch:addinstance',1,1547050113,0),(1065,1,1,'block/globalsearch:addinstance',1,1547050113,0),(1066,1,7,'block/glossary_random:myaddinstance',1,1547050113,0),(1067,1,3,'block/glossary_random:addinstance',1,1547050113,0),(1068,1,1,'block/glossary_random:addinstance',1,1547050113,0),(1069,1,7,'block/html:myaddinstance',1,1547050113,0),(1070,1,3,'block/html:addinstance',1,1547050113,0),(1071,1,1,'block/html:addinstance',1,1547050113,0),(1072,1,3,'block/login:addinstance',1,1547050113,0),(1073,1,1,'block/login:addinstance',1,1547050113,0),(1074,1,3,'block/lp:addinstance',1,1547050113,0),(1075,1,1,'block/lp:addinstance',1,1547050113,0),(1076,1,7,'block/lp:myaddinstance',1,1547050113,0),(1077,1,7,'block/lp:view',1,1547050113,0),(1078,1,7,'block/mentees:myaddinstance',1,1547050113,0),(1079,1,3,'block/mentees:addinstance',1,1547050113,0),(1080,1,1,'block/mentees:addinstance',1,1547050113,0),(1081,1,7,'block/mnet_hosts:myaddinstance',1,1547050113,0),(1082,1,3,'block/mnet_hosts:addinstance',1,1547050113,0),(1083,1,1,'block/mnet_hosts:addinstance',1,1547050113,0),(1084,1,7,'block/myoverview:myaddinstance',1,1547050113,0),(1085,1,3,'block/myoverview:addinstance',1,1547050113,0),(1086,1,1,'block/myoverview:addinstance',1,1547050113,0),(1087,1,7,'block/myprofile:myaddinstance',1,1547050113,0),(1088,1,3,'block/myprofile:addinstance',1,1547050113,0),(1089,1,1,'block/myprofile:addinstance',1,1547050113,0),(1090,1,7,'block/navigation:myaddinstance',1,1547050113,0),(1091,1,3,'block/navigation:addinstance',1,1547050113,0),(1092,1,1,'block/navigation:addinstance',1,1547050113,0),(1093,1,7,'block/news_items:myaddinstance',1,1547050113,0),(1094,1,3,'block/news_items:addinstance',1,1547050113,0),(1095,1,1,'block/news_items:addinstance',1,1547050113,0),(1096,1,7,'block/online_users:myaddinstance',1,1547050114,0),(1097,1,3,'block/online_users:addinstance',1,1547050114,0),(1098,1,1,'block/online_users:addinstance',1,1547050114,0),(1099,1,7,'block/online_users:viewlist',1,1547050114,0),(1100,1,6,'block/online_users:viewlist',1,1547050114,0),(1101,1,5,'block/online_users:viewlist',1,1547050114,0),(1102,1,4,'block/online_users:viewlist',1,1547050114,0),(1103,1,3,'block/online_users:viewlist',1,1547050114,0),(1104,1,1,'block/online_users:viewlist',1,1547050114,0),(1105,1,3,'block/participants:addinstance',1,1547050114,0),(1106,1,1,'block/participants:addinstance',1,1547050114,0),(1107,1,7,'block/private_files:myaddinstance',1,1547050114,0),(1108,1,3,'block/private_files:addinstance',1,1547050114,0),(1109,1,1,'block/private_files:addinstance',1,1547050114,0),(1110,1,3,'block/quiz_results:addinstance',1,1547050114,0),(1111,1,1,'block/quiz_results:addinstance',1,1547050114,0),(1112,1,3,'block/recent_activity:addinstance',1,1547050114,0),(1113,1,1,'block/recent_activity:addinstance',1,1547050114,0),(1114,1,7,'block/recent_activity:viewaddupdatemodule',1,1547050114,0),(1115,1,7,'block/recent_activity:viewdeletemodule',1,1547050114,0),(1116,1,7,'block/recentlyaccessedcourses:myaddinstance',1,1547050114,0),(1117,1,3,'block/recentlyaccessedcourses:addinstance',1,1547050114,0),(1118,1,1,'block/recentlyaccessedcourses:addinstance',1,1547050114,0),(1119,1,7,'block/recentlyaccesseditems:myaddinstance',1,1547050114,0),(1120,1,3,'block/recentlyaccesseditems:addinstance',1,1547050114,0),(1121,1,1,'block/recentlyaccesseditems:addinstance',1,1547050114,0),(1122,1,7,'block/rss_client:myaddinstance',1,1547050114,0),(1123,1,3,'block/rss_client:addinstance',1,1547050114,0),(1124,1,1,'block/rss_client:addinstance',1,1547050114,0),(1125,1,4,'block/rss_client:manageownfeeds',1,1547050114,0),(1126,1,3,'block/rss_client:manageownfeeds',1,1547050114,0),(1127,1,1,'block/rss_client:manageownfeeds',1,1547050114,0),(1128,1,1,'block/rss_client:manageanyfeeds',1,1547050114,0),(1129,1,3,'block/search_forums:addinstance',1,1547050114,0),(1130,1,1,'block/search_forums:addinstance',1,1547050114,0),(1131,1,3,'block/section_links:addinstance',1,1547050116,0),(1132,1,1,'block/section_links:addinstance',1,1547050116,0),(1133,1,3,'block/selfcompletion:addinstance',1,1547050116,0),(1134,1,1,'block/selfcompletion:addinstance',1,1547050116,0),(1135,1,7,'block/settings:myaddinstance',1,1547050116,0),(1136,1,3,'block/settings:addinstance',1,1547050116,0),(1137,1,1,'block/settings:addinstance',1,1547050116,0),(1138,1,3,'block/site_main_menu:addinstance',1,1547050116,0),(1139,1,1,'block/site_main_menu:addinstance',1,1547050116,0),(1140,1,3,'block/social_activities:addinstance',1,1547050116,0),(1141,1,1,'block/social_activities:addinstance',1,1547050116,0),(1142,1,7,'block/starredcourses:myaddinstance',1,1547050116,0),(1143,1,3,'block/starredcourses:addinstance',1,1547050116,0),(1144,1,1,'block/starredcourses:addinstance',1,1547050116,0),(1145,1,3,'block/tag_flickr:addinstance',1,1547050116,0),(1146,1,1,'block/tag_flickr:addinstance',1,1547050116,0),(1147,1,3,'block/tag_youtube:addinstance',1,1547050116,0),(1148,1,1,'block/tag_youtube:addinstance',1,1547050116,0),(1149,1,7,'block/tags:myaddinstance',1,1547050117,0),(1150,1,3,'block/tags:addinstance',1,1547050117,0),(1151,1,1,'block/tags:addinstance',1,1547050117,0),(1152,1,7,'block/timeline:myaddinstance',1,1547050117,0),(1153,1,3,'block/timeline:addinstance',1,1547050117,0),(1154,1,1,'block/timeline:addinstance',1,1547050117,0),(1155,1,4,'report/completion:view',1,1547050119,0),(1156,1,3,'report/completion:view',1,1547050119,0),(1157,1,1,'report/completion:view',1,1547050119,0),(1158,1,4,'report/courseoverview:view',1,1547050119,0),(1159,1,3,'report/courseoverview:view',1,1547050119,0),(1160,1,1,'report/courseoverview:view',1,1547050119,0),(1161,1,4,'report/log:view',1,1547050119,0),(1162,1,3,'report/log:view',1,1547050119,0),(1163,1,1,'report/log:view',1,1547050119,0),(1164,1,4,'report/log:viewtoday',1,1547050119,0),(1165,1,3,'report/log:viewtoday',1,1547050119,0),(1166,1,1,'report/log:viewtoday',1,1547050119,0),(1167,1,4,'report/loglive:view',1,1547050120,0),(1168,1,3,'report/loglive:view',1,1547050120,0),(1169,1,1,'report/loglive:view',1,1547050120,0),(1170,1,4,'report/outline:view',1,1547050120,0),(1171,1,3,'report/outline:view',1,1547050120,0),(1172,1,1,'report/outline:view',1,1547050120,0),(1173,1,4,'report/outline:viewuserreport',1,1547050120,0),(1174,1,3,'report/outline:viewuserreport',1,1547050120,0),(1175,1,1,'report/outline:viewuserreport',1,1547050120,0),(1176,1,4,'report/participation:view',1,1547050120,0),(1177,1,3,'report/participation:view',1,1547050120,0),(1178,1,1,'report/participation:view',1,1547050120,0),(1179,1,1,'report/performance:view',1,1547050120,0),(1180,1,4,'report/progress:view',1,1547050120,0),(1181,1,3,'report/progress:view',1,1547050120,0),(1182,1,1,'report/progress:view',1,1547050120,0),(1183,1,1,'report/security:view',1,1547050120,0),(1184,1,4,'report/stats:view',1,1547050120,0),(1185,1,3,'report/stats:view',1,1547050120,0),(1186,1,1,'report/stats:view',1,1547050120,0),(1187,1,6,'report/usersessions:manageownsessions',-1000,1547050120,0),(1188,1,7,'report/usersessions:manageownsessions',1,1547050120,0),(1189,1,1,'report/usersessions:manageownsessions',1,1547050120,0),(1190,1,4,'gradeexport/ods:view',1,1547050120,0),(1191,1,3,'gradeexport/ods:view',1,1547050120,0),(1192,1,1,'gradeexport/ods:view',1,1547050120,0),(1193,1,1,'gradeexport/ods:publish',1,1547050120,0),(1194,1,4,'gradeexport/txt:view',1,1547050120,0),(1195,1,3,'gradeexport/txt:view',1,1547050120,0),(1196,1,1,'gradeexport/txt:view',1,1547050120,0),(1197,1,1,'gradeexport/txt:publish',1,1547050120,0),(1198,1,4,'gradeexport/xls:view',1,1547050121,0),(1199,1,3,'gradeexport/xls:view',1,1547050121,0),(1200,1,1,'gradeexport/xls:view',1,1547050121,0),(1201,1,1,'gradeexport/xls:publish',1,1547050121,0),(1202,1,4,'gradeexport/xml:view',1,1547050121,0),(1203,1,3,'gradeexport/xml:view',1,1547050121,0),(1204,1,1,'gradeexport/xml:view',1,1547050121,0),(1205,1,1,'gradeexport/xml:publish',1,1547050121,0),(1206,1,3,'gradeimport/csv:view',1,1547050121,0),(1207,1,1,'gradeimport/csv:view',1,1547050121,0),(1208,1,3,'gradeimport/direct:view',1,1547050121,0),(1209,1,1,'gradeimport/direct:view',1,1547050121,0),(1210,1,3,'gradeimport/xml:view',1,1547050121,0),(1211,1,1,'gradeimport/xml:view',1,1547050121,0),(1212,1,1,'gradeimport/xml:publish',1,1547050121,0),(1213,1,4,'gradereport/grader:view',1,1547050121,0),(1214,1,3,'gradereport/grader:view',1,1547050121,0),(1215,1,1,'gradereport/grader:view',1,1547050121,0),(1216,1,4,'gradereport/history:view',1,1547050121,0),(1217,1,3,'gradereport/history:view',1,1547050121,0),(1218,1,1,'gradereport/history:view',1,1547050121,0),(1219,1,4,'gradereport/outcomes:view',1,1547050121,0),(1220,1,3,'gradereport/outcomes:view',1,1547050121,0),(1221,1,1,'gradereport/outcomes:view',1,1547050121,0),(1222,1,7,'gradereport/overview:view',1,1547050121,0),(1223,1,3,'gradereport/singleview:view',1,1547050121,0),(1224,1,1,'gradereport/singleview:view',1,1547050121,0),(1225,1,5,'gradereport/user:view',1,1547050121,0),(1226,1,4,'gradereport/user:view',1,1547050121,0),(1227,1,3,'gradereport/user:view',1,1547050121,0),(1228,1,1,'gradereport/user:view',1,1547050121,0),(1229,1,7,'repository/areafiles:view',1,1547050122,0),(1230,1,7,'repository/boxnet:view',1,1547050122,0),(1231,1,2,'repository/coursefiles:view',1,1547050122,0),(1232,1,4,'repository/coursefiles:view',1,1547050122,0),(1233,1,3,'repository/coursefiles:view',1,1547050122,0),(1234,1,1,'repository/coursefiles:view',1,1547050122,0),(1235,1,7,'repository/dropbox:view',1,1547050122,0),(1236,1,7,'repository/equella:view',1,1547050122,0),(1237,1,2,'repository/filesystem:view',1,1547050122,0),(1238,1,4,'repository/filesystem:view',1,1547050122,0),(1239,1,3,'repository/filesystem:view',1,1547050122,0),(1240,1,1,'repository/filesystem:view',1,1547050122,0),(1241,1,7,'repository/flickr:view',1,1547050122,0),(1242,1,7,'repository/flickr_public:view',1,1547050123,0),(1243,1,7,'repository/googledocs:view',1,1547050123,0),(1244,1,2,'repository/local:view',1,1547050123,0),(1245,1,4,'repository/local:view',1,1547050123,0),(1246,1,3,'repository/local:view',1,1547050123,0),(1247,1,1,'repository/local:view',1,1547050123,0),(1248,1,7,'repository/merlot:view',1,1547050123,0),(1249,1,7,'repository/nextcloud:view',1,1547050123,0),(1250,1,7,'repository/onedrive:view',1,1547050123,0),(1251,1,7,'repository/picasa:view',1,1547050123,0),(1252,1,7,'repository/recent:view',1,1547050123,0),(1253,1,7,'repository/s3:view',1,1547050123,0),(1254,1,7,'repository/skydrive:view',1,1547050123,0),(1255,1,7,'repository/upload:view',1,1547050123,0),(1256,1,7,'repository/url:view',1,1547050124,0),(1257,1,7,'repository/user:view',1,1547050124,0),(1258,1,2,'repository/webdav:view',1,1547050124,0),(1259,1,4,'repository/webdav:view',1,1547050124,0),(1260,1,3,'repository/webdav:view',1,1547050124,0),(1261,1,1,'repository/webdav:view',1,1547050124,0),(1262,1,7,'repository/wikimedia:view',1,1547050124,0),(1263,1,7,'repository/youtube:view',1,1547050124,0),(1264,1,1,'tool/customlang:view',1,1547050127,0),(1265,1,1,'tool/customlang:edit',1,1547050127,0),(1266,1,7,'tool/dataprivacy:downloadownrequest',1,1547050127,0),(1267,1,1,'tool/lpmigrate:frameworksmigrate',1,1547050128,0),(1268,1,4,'tool/monitor:subscribe',1,1547050128,0),(1269,1,3,'tool/monitor:subscribe',1,1547050128,0),(1270,1,1,'tool/monitor:subscribe',1,1547050128,0),(1271,1,4,'tool/monitor:managerules',1,1547050128,0),(1272,1,3,'tool/monitor:managerules',1,1547050128,0),(1273,1,1,'tool/monitor:managerules',1,1547050128,0),(1274,1,1,'tool/monitor:managetool',1,1547050128,0),(1275,1,7,'tool/policy:accept',1,1547050129,0),(1276,1,1,'tool/policy:managedocs',1,1547050129,0),(1277,1,1,'tool/policy:viewacceptances',1,1547050129,0),(1278,1,3,'tool/recyclebin:deleteitems',1,1547050129,0),(1279,1,1,'tool/recyclebin:deleteitems',1,1547050129,0),(1280,1,3,'tool/recyclebin:restoreitems',1,1547050129,0),(1281,1,1,'tool/recyclebin:restoreitems',1,1547050129,0),(1282,1,4,'tool/recyclebin:viewitems',1,1547050129,0),(1283,1,3,'tool/recyclebin:viewitems',1,1547050129,0),(1284,1,1,'tool/recyclebin:viewitems',1,1547050129,0),(1285,1,1,'tool/uploaduser:uploaduserpictures',1,1547050129,0),(1286,1,1,'tool/usertours:managetours',1,1547050130,0),(1287,1,3,'booktool/importhtml:import',1,1547050133,0),(1288,1,1,'booktool/importhtml:import',1,1547050133,0),(1289,1,6,'booktool/print:print',1,1547050133,0),(1290,1,8,'booktool/print:print',1,1547050133,0),(1291,1,5,'booktool/print:print',1,1547050133,0),(1292,1,4,'booktool/print:print',1,1547050133,0),(1293,1,3,'booktool/print:print',1,1547050133,0),(1294,1,1,'booktool/print:print',1,1547050133,0),(1295,1,4,'quiz/grading:viewstudentnames',1,1547050134,0),(1296,1,3,'quiz/grading:viewstudentnames',1,1547050134,0),(1297,1,1,'quiz/grading:viewstudentnames',1,1547050134,0),(1298,1,4,'quiz/grading:viewidnumber',1,1547050134,0),(1299,1,3,'quiz/grading:viewidnumber',1,1547050134,0),(1300,1,1,'quiz/grading:viewidnumber',1,1547050134,0),(1301,1,4,'quiz/statistics:view',1,1547050134,0),(1302,1,3,'quiz/statistics:view',1,1547050134,0),(1303,1,1,'quiz/statistics:view',1,1547050134,0),(1304,1,7,'atto/recordrtc:recordaudio',1,1547050138,0),(1305,1,7,'atto/recordrtc:recordvideo',1,1547050138,0);

--
-- Table structure for table `mdl_role_context_levels`
--

CREATE TABLE `mdl_role_context_levels` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolecontleve_conrol_uix` (`contextlevel`,`roleid`),
  KEY `mdl_rolecontleve_rol_ix` (`roleid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Lists which roles can be assigned at which context levels. T';

--
-- Dumping data for table `mdl_role_context_levels`
--

INSERT INTO `mdl_role_context_levels` VALUES (1,1,10),(4,2,10),(2,1,40),(5,2,40),(3,1,50),(6,3,50),(8,4,50),(10,5,50),(7,3,70),(9,4,70),(11,5,70);

--
-- Table structure for table `mdl_role_names`
--

CREATE TABLE `mdl_role_names` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolename_rolcon_uix` (`roleid`,`contextid`),
  KEY `mdl_rolename_rol_ix` (`roleid`),
  KEY `mdl_rolename_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='role names in native strings';

--
-- Dumping data for table `mdl_role_names`
--


--
-- Table structure for table `mdl_role_sortorder`
--

CREATE TABLE `mdl_role_sortorder` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `contextid` bigint(10) NOT NULL,
  `sortoder` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolesort_userolcon_uix` (`userid`,`roleid`,`contextid`),
  KEY `mdl_rolesort_use_ix` (`userid`),
  KEY `mdl_rolesort_rol_ix` (`roleid`),
  KEY `mdl_rolesort_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='sort order of course managers in a course';

--
-- Dumping data for table `mdl_role_sortorder`
--


--
-- Table structure for table `mdl_scale`
--

CREATE TABLE `mdl_scale` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scale` longtext COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scal_cou_ix` (`courseid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines grading scales';

--
-- Dumping data for table `mdl_scale`
--

INSERT INTO `mdl_scale` VALUES (1,0,0,'Vías de conocimiento separadas y conectadas','Muy individualista,Término medio,Muy comunicativo','La escala está basada en la teoría de las vías de conocimiento separadas (aprendizaje individual)  y conectadas (aprendizaje colaborativo). Esta teoría describe dos maneras diferentes con las que podemos evaluar y aprender a partir de lo que vemos y oímos. <li><strong> Conocedores separados (individulaistas) </strong> se mantiene lo la más objetivso posible, sin incluir sentimientos y emociones. En una discusión con otras personas, les gusta defender sus propias ideas, usando la lógica para encontrar fisuras en las ideas del adversario. </li> <li> <strong> Conocedores conectados (colaborativos) </strong> son más sensibles a otras personas. Son expertos en empatía y tienden a escuchar y hacer preguntas hasta que sienten que pueden conectar y \"entender las cosas desde otros punto de vista\". Aprenden tratando de compartir experiencias lo que les permite encontrar el conocimiento en las demás personas.',0,1547050086),(2,0,0,'Escala de competencia por defecto','No competente aún,Competente','Una escala de calificación binaria que no proporciona ninguna información adicional más allá de si alguien a demostrado competencia o no.',0,1547050086);

--
-- Table structure for table `mdl_scale_history`
--

CREATE TABLE `mdl_scale_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scale` longtext COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_scalhist_act_ix` (`action`),
  KEY `mdl_scalhist_tim_ix` (`timemodified`),
  KEY `mdl_scalhist_old_ix` (`oldid`),
  KEY `mdl_scalhist_cou_ix` (`courseid`),
  KEY `mdl_scalhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='History table';

--
-- Dumping data for table `mdl_scale_history`
--


--
-- Table structure for table `mdl_scorm`
--

CREATE TABLE `mdl_scorm` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scormtype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'local',
  `reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `version` varchar(9) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `maxgrade` double NOT NULL DEFAULT '0',
  `grademethod` tinyint(2) NOT NULL DEFAULT '0',
  `whatgrade` bigint(10) NOT NULL DEFAULT '0',
  `maxattempt` bigint(10) NOT NULL DEFAULT '1',
  `forcecompleted` tinyint(1) NOT NULL DEFAULT '0',
  `forcenewattempt` tinyint(1) NOT NULL DEFAULT '0',
  `lastattemptlock` tinyint(1) NOT NULL DEFAULT '0',
  `masteryoverride` tinyint(1) NOT NULL DEFAULT '1',
  `displayattemptstatus` tinyint(1) NOT NULL DEFAULT '1',
  `displaycoursestructure` tinyint(1) NOT NULL DEFAULT '0',
  `updatefreq` tinyint(1) NOT NULL DEFAULT '0',
  `sha1hash` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `md5hash` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `launch` bigint(10) NOT NULL DEFAULT '0',
  `skipview` tinyint(1) NOT NULL DEFAULT '1',
  `hidebrowse` tinyint(1) NOT NULL DEFAULT '0',
  `hidetoc` tinyint(1) NOT NULL DEFAULT '0',
  `nav` tinyint(1) NOT NULL DEFAULT '1',
  `navpositionleft` bigint(10) DEFAULT '-100',
  `navpositiontop` bigint(10) DEFAULT '-100',
  `auto` tinyint(1) NOT NULL DEFAULT '0',
  `popup` tinyint(1) NOT NULL DEFAULT '0',
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `width` bigint(10) NOT NULL DEFAULT '100',
  `height` bigint(10) NOT NULL DEFAULT '600',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionstatusrequired` tinyint(1) DEFAULT NULL,
  `completionscorerequired` bigint(10) DEFAULT NULL,
  `completionstatusallscos` tinyint(1) DEFAULT NULL,
  `displayactivityname` smallint(4) NOT NULL DEFAULT '1',
  `autocommit` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scor_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='each table is one SCORM module and its configuration';

--
-- Dumping data for table `mdl_scorm`
--


--
-- Table structure for table `mdl_scorm_aicc_session`
--

CREATE TABLE `mdl_scorm_aicc_session` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `scormid` bigint(10) NOT NULL DEFAULT '0',
  `hacpsession` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scoid` bigint(10) DEFAULT '0',
  `scormmode` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `scormstatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `attempt` bigint(10) DEFAULT NULL,
  `lessonstatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sessiontime` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scoraiccsess_sco_ix` (`scormid`),
  KEY `mdl_scoraiccsess_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used by AICC HACP to store session information';

--
-- Dumping data for table `mdl_scorm_aicc_session`
--


--
-- Table structure for table `mdl_scorm_scoes`
--

CREATE TABLE `mdl_scorm_scoes` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scorm` bigint(10) NOT NULL DEFAULT '0',
  `manifest` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `organization` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `launch` longtext COLLATE utf8_unicode_ci NOT NULL,
  `scormtype` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scorscoe_sco_ix` (`scorm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='each SCO part of the SCORM module';

--
-- Dumping data for table `mdl_scorm_scoes`
--


--
-- Table structure for table `mdl_scorm_scoes_data`
--

CREATE TABLE `mdl_scorm_scoes_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_scorscoedata_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains variable data get from packages';

--
-- Dumping data for table `mdl_scorm_scoes_data`
--


--
-- Table structure for table `mdl_scorm_scoes_track`
--

CREATE TABLE `mdl_scorm_scoes_track` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `scormid` bigint(10) NOT NULL DEFAULT '0',
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `attempt` bigint(10) NOT NULL DEFAULT '1',
  `element` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorscoetrac_usescosco_uix` (`userid`,`scormid`,`scoid`,`attempt`,`element`),
  KEY `mdl_scorscoetrac_use_ix` (`userid`),
  KEY `mdl_scorscoetrac_ele_ix` (`element`),
  KEY `mdl_scorscoetrac_sco_ix` (`scormid`),
  KEY `mdl_scorscoetrac_sco2_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='to track SCOes';

--
-- Dumping data for table `mdl_scorm_scoes_track`
--


--
-- Table structure for table `mdl_scorm_seq_mapinfo`
--

CREATE TABLE `mdl_scorm_seq_mapinfo` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `objectiveid` bigint(10) NOT NULL DEFAULT '0',
  `targetobjectiveid` bigint(10) NOT NULL DEFAULT '0',
  `readsatisfiedstatus` tinyint(1) NOT NULL DEFAULT '1',
  `readnormalizedmeasure` tinyint(1) NOT NULL DEFAULT '1',
  `writesatisfiedstatus` tinyint(1) NOT NULL DEFAULT '0',
  `writenormalizedmeasure` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqmapi_scoidobj_uix` (`scoid`,`id`,`objectiveid`),
  KEY `mdl_scorseqmapi_sco_ix` (`scoid`),
  KEY `mdl_scorseqmapi_obj_ix` (`objectiveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 objective mapinfo description';

--
-- Dumping data for table `mdl_scorm_seq_mapinfo`
--


--
-- Table structure for table `mdl_scorm_seq_objective`
--

CREATE TABLE `mdl_scorm_seq_objective` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `primaryobj` tinyint(1) NOT NULL DEFAULT '0',
  `objectiveid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `satisfiedbymeasure` tinyint(1) NOT NULL DEFAULT '1',
  `minnormalizedmeasure` float(11,4) NOT NULL DEFAULT '0.0000',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqobje_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqobje_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 objective description';

--
-- Dumping data for table `mdl_scorm_seq_objective`
--


--
-- Table structure for table `mdl_scorm_seq_rolluprule`
--

CREATE TABLE `mdl_scorm_seq_rolluprule` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `childactivityset` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `minimumcount` bigint(10) NOT NULL DEFAULT '0',
  `minimumpercent` float(11,4) NOT NULL DEFAULT '0.0000',
  `conditioncombination` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'all',
  `action` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqroll_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqroll_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 sequencing rule';

--
-- Dumping data for table `mdl_scorm_seq_rolluprule`
--


--
-- Table structure for table `mdl_scorm_seq_rolluprulecond`
--

CREATE TABLE `mdl_scorm_seq_rolluprulecond` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `rollupruleid` bigint(10) NOT NULL DEFAULT '0',
  `operator` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'noOp',
  `cond` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqroll_scorolid_uix` (`scoid`,`rollupruleid`,`id`),
  KEY `mdl_scorseqroll_sco2_ix` (`scoid`),
  KEY `mdl_scorseqroll_rol_ix` (`rollupruleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 sequencing rule';

--
-- Dumping data for table `mdl_scorm_seq_rolluprulecond`
--


--
-- Table structure for table `mdl_scorm_seq_rulecond`
--

CREATE TABLE `mdl_scorm_seq_rulecond` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `ruleconditionsid` bigint(10) NOT NULL DEFAULT '0',
  `refrencedobjective` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `measurethreshold` float(11,4) NOT NULL DEFAULT '0.0000',
  `operator` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'noOp',
  `cond` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'always',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqrule_idscorul_uix` (`id`,`scoid`,`ruleconditionsid`),
  KEY `mdl_scorseqrule_sco2_ix` (`scoid`),
  KEY `mdl_scorseqrule_rul_ix` (`ruleconditionsid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 rule condition';

--
-- Dumping data for table `mdl_scorm_seq_rulecond`
--


--
-- Table structure for table `mdl_scorm_seq_ruleconds`
--

CREATE TABLE `mdl_scorm_seq_ruleconds` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `conditioncombination` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'all',
  `ruletype` tinyint(2) NOT NULL DEFAULT '0',
  `action` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqrule_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqrule_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SCORM2004 rule conditions';

--
-- Dumping data for table `mdl_scorm_seq_ruleconds`
--


--
-- Table structure for table `mdl_search_index_requests`
--

CREATE TABLE `mdl_search_index_requests` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `searcharea` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timerequested` bigint(10) NOT NULL,
  `partialarea` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `partialtime` bigint(10) NOT NULL,
  `indexpriority` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_searinderequ_indtim_ix` (`indexpriority`,`timerequested`),
  KEY `mdl_searinderequ_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Records requests for (re)indexing of specific contexts. Entr';

--
-- Dumping data for table `mdl_search_index_requests`
--


--
-- Table structure for table `mdl_search_simpledb_index`
--

CREATE TABLE `mdl_search_simpledb_index` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `docid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `title` longtext COLLATE utf8_unicode_ci,
  `content` longtext COLLATE utf8_unicode_ci,
  `contextid` bigint(10) NOT NULL,
  `areaid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` tinyint(1) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `owneruserid` bigint(10) DEFAULT NULL,
  `modified` bigint(10) NOT NULL,
  `userid` bigint(10) DEFAULT NULL,
  `description1` longtext COLLATE utf8_unicode_ci,
  `description2` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_searsimpinde_doc_uix` (`docid`),
  KEY `mdl_searsimpinde_owncon_ix` (`owneruserid`,`contextid`),
  FULLTEXT KEY `mdl_search_simpledb_index_index` (`title`,`content`,`description1`,`description2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='search_simpledb table containing the index data.';

--
-- Dumping data for table `mdl_search_simpledb_index`
--


--
-- Table structure for table `mdl_sessions`
--

CREATE TABLE `mdl_sessions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `state` bigint(10) NOT NULL DEFAULT '0',
  `sid` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `sessdata` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `firstip` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lastip` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_sess_sid_uix` (`sid`),
  KEY `mdl_sess_sta_ix` (`state`),
  KEY `mdl_sess_tim_ix` (`timecreated`),
  KEY `mdl_sess_tim2_ix` (`timemodified`),
  KEY `mdl_sess_use_ix` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Database based session storage - now recommended';

--
-- Dumping data for table `mdl_sessions`
--

INSERT INTO `mdl_sessions` VALUES (11,0,'uoj4tah0lgtiqbjncv1p2oe28h',0,NULL,1547537463,1547537464,'10.2.1.254','10.2.1.254');

--
-- Table structure for table `mdl_stats_daily`
--

CREATE TABLE `mdl_stats_daily` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statdail_cou_ix` (`courseid`),
  KEY `mdl_statdail_tim_ix` (`timeend`),
  KEY `mdl_statdail_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='to accumulate daily stats';

--
-- Dumping data for table `mdl_stats_daily`
--


--
-- Table structure for table `mdl_stats_monthly`
--

CREATE TABLE `mdl_stats_monthly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statmont_cou_ix` (`courseid`),
  KEY `mdl_statmont_tim_ix` (`timeend`),
  KEY `mdl_statmont_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To accumulate monthly stats';

--
-- Dumping data for table `mdl_stats_monthly`
--


--
-- Table structure for table `mdl_stats_user_daily`
--

CREATE TABLE `mdl_stats_user_daily` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statuserdail_cou_ix` (`courseid`),
  KEY `mdl_statuserdail_use_ix` (`userid`),
  KEY `mdl_statuserdail_rol_ix` (`roleid`),
  KEY `mdl_statuserdail_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To accumulate daily stats per course/user';

--
-- Dumping data for table `mdl_stats_user_daily`
--


--
-- Table structure for table `mdl_stats_user_monthly`
--

CREATE TABLE `mdl_stats_user_monthly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statusermont_cou_ix` (`courseid`),
  KEY `mdl_statusermont_use_ix` (`userid`),
  KEY `mdl_statusermont_rol_ix` (`roleid`),
  KEY `mdl_statusermont_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To accumulate monthly stats per course/user';

--
-- Dumping data for table `mdl_stats_user_monthly`
--


--
-- Table structure for table `mdl_stats_user_weekly`
--

CREATE TABLE `mdl_stats_user_weekly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statuserweek_cou_ix` (`courseid`),
  KEY `mdl_statuserweek_use_ix` (`userid`),
  KEY `mdl_statuserweek_rol_ix` (`roleid`),
  KEY `mdl_statuserweek_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To accumulate weekly stats per course/user';

--
-- Dumping data for table `mdl_stats_user_weekly`
--


--
-- Table structure for table `mdl_stats_weekly`
--

CREATE TABLE `mdl_stats_weekly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statweek_cou_ix` (`courseid`),
  KEY `mdl_statweek_tim_ix` (`timeend`),
  KEY `mdl_statweek_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To accumulate weekly stats';

--
-- Dumping data for table `mdl_stats_weekly`
--


--
-- Table structure for table `mdl_survey`
--

CREATE TABLE `mdl_survey` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `template` bigint(10) NOT NULL DEFAULT '0',
  `days` mediumint(6) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `questions` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `completionsubmit` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_surv_cou_ix` (`course`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each record is one SURVEY module with its configuration';

--
-- Dumping data for table `mdl_survey`
--

INSERT INTO `mdl_survey` VALUES (1,0,0,0,985017600,985017600,'collesaname','collesaintro',0,'25,26,27,28,29,30,43,44',0),(2,0,0,0,985017600,985017600,'collespname','collespintro',0,'31,32,33,34,35,36,43,44',0),(3,0,0,0,985017600,985017600,'collesapname','collesapintro',0,'37,38,39,40,41,42,43,44',0),(4,0,0,0,985017600,985017600,'attlsname','attlsintro',0,'65,67,68',0),(5,0,0,0,985017600,985017600,'ciqname','ciqintro',0,'69,70,71,72,73',0);

--
-- Table structure for table `mdl_survey_analysis`
--

CREATE TABLE `mdl_survey_analysis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `survey` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `notes` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_survanal_use_ix` (`userid`),
  KEY `mdl_survanal_sur_ix` (`survey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='text about each survey submission';

--
-- Dumping data for table `mdl_survey_analysis`
--


--
-- Table structure for table `mdl_survey_answers`
--

CREATE TABLE `mdl_survey_answers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `survey` bigint(10) NOT NULL DEFAULT '0',
  `question` bigint(10) NOT NULL DEFAULT '0',
  `time` bigint(10) NOT NULL DEFAULT '0',
  `answer1` longtext COLLATE utf8_unicode_ci NOT NULL,
  `answer2` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_survansw_use_ix` (`userid`),
  KEY `mdl_survansw_sur_ix` (`survey`),
  KEY `mdl_survansw_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='the answers to each questions filled by the users';

--
-- Dumping data for table `mdl_survey_answers`
--


--
-- Table structure for table `mdl_survey_questions`
--

CREATE TABLE `mdl_survey_questions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `text` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shorttext` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `multi` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` smallint(3) NOT NULL DEFAULT '0',
  `options` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='the questions conforming one survey';

--
-- Dumping data for table `mdl_survey_questions`
--

INSERT INTO `mdl_survey_questions` VALUES (1,'colles1','colles1short','','',1,'scaletimes5'),(2,'colles2','colles2short','','',1,'scaletimes5'),(3,'colles3','colles3short','','',1,'scaletimes5'),(4,'colles4','colles4short','','',1,'scaletimes5'),(5,'colles5','colles5short','','',1,'scaletimes5'),(6,'colles6','colles6short','','',1,'scaletimes5'),(7,'colles7','colles7short','','',1,'scaletimes5'),(8,'colles8','colles8short','','',1,'scaletimes5'),(9,'colles9','colles9short','','',1,'scaletimes5'),(10,'colles10','colles10short','','',1,'scaletimes5'),(11,'colles11','colles11short','','',1,'scaletimes5'),(12,'colles12','colles12short','','',1,'scaletimes5'),(13,'colles13','colles13short','','',1,'scaletimes5'),(14,'colles14','colles14short','','',1,'scaletimes5'),(15,'colles15','colles15short','','',1,'scaletimes5'),(16,'colles16','colles16short','','',1,'scaletimes5'),(17,'colles17','colles17short','','',1,'scaletimes5'),(18,'colles18','colles18short','','',1,'scaletimes5'),(19,'colles19','colles19short','','',1,'scaletimes5'),(20,'colles20','colles20short','','',1,'scaletimes5'),(21,'colles21','colles21short','','',1,'scaletimes5'),(22,'colles22','colles22short','','',1,'scaletimes5'),(23,'colles23','colles23short','','',1,'scaletimes5'),(24,'colles24','colles24short','','',1,'scaletimes5'),(25,'collesm1','collesm1short','1,2,3,4','collesmintro',1,'scaletimes5'),(26,'collesm2','collesm2short','5,6,7,8','collesmintro',1,'scaletimes5'),(27,'collesm3','collesm3short','9,10,11,12','collesmintro',1,'scaletimes5'),(28,'collesm4','collesm4short','13,14,15,16','collesmintro',1,'scaletimes5'),(29,'collesm5','collesm5short','17,18,19,20','collesmintro',1,'scaletimes5'),(30,'collesm6','collesm6short','21,22,23,24','collesmintro',1,'scaletimes5'),(31,'collesm1','collesm1short','1,2,3,4','collesmintro',2,'scaletimes5'),(32,'collesm2','collesm2short','5,6,7,8','collesmintro',2,'scaletimes5'),(33,'collesm3','collesm3short','9,10,11,12','collesmintro',2,'scaletimes5'),(34,'collesm4','collesm4short','13,14,15,16','collesmintro',2,'scaletimes5'),(35,'collesm5','collesm5short','17,18,19,20','collesmintro',2,'scaletimes5'),(36,'collesm6','collesm6short','21,22,23,24','collesmintro',2,'scaletimes5'),(37,'collesm1','collesm1short','1,2,3,4','collesmintro',3,'scaletimes5'),(38,'collesm2','collesm2short','5,6,7,8','collesmintro',3,'scaletimes5'),(39,'collesm3','collesm3short','9,10,11,12','collesmintro',3,'scaletimes5'),(40,'collesm4','collesm4short','13,14,15,16','collesmintro',3,'scaletimes5'),(41,'collesm5','collesm5short','17,18,19,20','collesmintro',3,'scaletimes5'),(42,'collesm6','collesm6short','21,22,23,24','collesmintro',3,'scaletimes5'),(43,'howlong','','','',1,'howlongoptions'),(44,'othercomments','','','',0,NULL),(45,'attls1','attls1short','','',1,'scaleagree5'),(46,'attls2','attls2short','','',1,'scaleagree5'),(47,'attls3','attls3short','','',1,'scaleagree5'),(48,'attls4','attls4short','','',1,'scaleagree5'),(49,'attls5','attls5short','','',1,'scaleagree5'),(50,'attls6','attls6short','','',1,'scaleagree5'),(51,'attls7','attls7short','','',1,'scaleagree5'),(52,'attls8','attls8short','','',1,'scaleagree5'),(53,'attls9','attls9short','','',1,'scaleagree5'),(54,'attls10','attls10short','','',1,'scaleagree5'),(55,'attls11','attls11short','','',1,'scaleagree5'),(56,'attls12','attls12short','','',1,'scaleagree5'),(57,'attls13','attls13short','','',1,'scaleagree5'),(58,'attls14','attls14short','','',1,'scaleagree5'),(59,'attls15','attls15short','','',1,'scaleagree5'),(60,'attls16','attls16short','','',1,'scaleagree5'),(61,'attls17','attls17short','','',1,'scaleagree5'),(62,'attls18','attls18short','','',1,'scaleagree5'),(63,'attls19','attls19short','','',1,'scaleagree5'),(64,'attls20','attls20short','','',1,'scaleagree5'),(65,'attlsm1','attlsm1','45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64','attlsmintro',1,'scaleagree5'),(66,'-','-','-','-',0,'-'),(67,'attlsm2','attlsm2','63,62,59,57,55,49,52,50,48,47','attlsmintro',-1,'scaleagree5'),(68,'attlsm3','attlsm3','46,54,45,51,60,53,56,58,61,64','attlsmintro',-1,'scaleagree5'),(69,'ciq1','ciq1short','','',0,NULL),(70,'ciq2','ciq2short','','',0,NULL),(71,'ciq3','ciq3short','','',0,NULL),(72,'ciq4','ciq4short','','',0,NULL),(73,'ciq5','ciq5short','','',0,NULL);

--
-- Table structure for table `mdl_tag`
--

CREATE TABLE `mdl_tag` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `tagcollid` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `rawname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `isstandard` tinyint(1) NOT NULL DEFAULT '0',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `flag` smallint(4) DEFAULT '0',
  `timemodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tag_tagnam_uix` (`tagcollid`,`name`),
  KEY `mdl_tag_tagiss_ix` (`tagcollid`,`isstandard`),
  KEY `mdl_tag_use_ix` (`userid`),
  KEY `mdl_tag_tag_ix` (`tagcollid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tag table - this generic table will replace the old "tags" t';

--
-- Dumping data for table `mdl_tag`
--


--
-- Table structure for table `mdl_tag_area`
--

CREATE TABLE `mdl_tag_area` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemtype` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  `tagcollid` bigint(10) NOT NULL,
  `callback` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `callbackfile` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `showstandard` tinyint(1) NOT NULL DEFAULT '0',
  `multiplecontexts` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tagarea_comite_uix` (`component`,`itemtype`),
  KEY `mdl_tagarea_tag_ix` (`tagcollid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines various tag areas, one area is identified by compone';

--
-- Dumping data for table `mdl_tag_area`
--

INSERT INTO `mdl_tag_area` VALUES (1,'core','user',1,1,'user_get_tagged_users','/user/lib.php',2,0),(2,'core','course',1,1,'course_get_tagged_courses','/course/lib.php',0,0),(3,'core_question','question',1,1,NULL,NULL,0,1),(4,'core','post',1,1,'blog_get_tagged_posts','/blog/lib.php',0,0),(5,'core','blog_external',1,1,NULL,NULL,0,0),(6,'core','course_modules',1,1,'course_get_tagged_course_modules','/course/lib.php',0,0),(7,'mod_book','book_chapters',1,1,'mod_book_get_tagged_chapters','/mod/book/locallib.php',0,0),(8,'mod_data','data_records',1,1,'mod_data_get_tagged_records','/mod/data/locallib.php',0,0),(9,'mod_forum','forum_posts',1,1,'mod_forum_get_tagged_posts','/mod/forum/locallib.php',0,0),(10,'mod_glossary','glossary_entries',1,1,'mod_glossary_get_tagged_entries','/mod/glossary/locallib.php',0,0),(11,'mod_wiki','wiki_pages',1,1,'mod_wiki_get_tagged_pages','/mod/wiki/locallib.php',0,0);

--
-- Table structure for table `mdl_tag_coll`
--

CREATE TABLE `mdl_tag_coll` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isdefault` tinyint(2) NOT NULL DEFAULT '0',
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sortorder` mediumint(5) NOT NULL DEFAULT '0',
  `searchable` tinyint(2) NOT NULL DEFAULT '1',
  `customurl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines different set of tags';

--
-- Dumping data for table `mdl_tag_coll`
--

INSERT INTO `mdl_tag_coll` VALUES (1,NULL,1,NULL,0,1,NULL);

--
-- Table structure for table `mdl_tag_correlation`
--

CREATE TABLE `mdl_tag_correlation` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `tagid` bigint(10) NOT NULL,
  `correlatedtags` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_tagcorr_tag_ix` (`tagid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The rationale for the ''tag_correlation'' table is performance';

--
-- Dumping data for table `mdl_tag_correlation`
--


--
-- Table structure for table `mdl_tag_instance`
--

CREATE TABLE `mdl_tag_instance` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `tagid` bigint(10) NOT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemtype` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `contextid` bigint(10) DEFAULT NULL,
  `tiuserid` bigint(10) NOT NULL DEFAULT '0',
  `ordering` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_taginst_comiteiteconti_uix` (`component`,`itemtype`,`itemid`,`contextid`,`tiuserid`,`tagid`),
  KEY `mdl_taginst_itecomtagcon_ix` (`itemtype`,`component`,`tagid`,`contextid`),
  KEY `mdl_taginst_tag_ix` (`tagid`),
  KEY `mdl_taginst_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='tag_instance table holds the information of associations bet';

--
-- Dumping data for table `mdl_tag_instance`
--


--
-- Table structure for table `mdl_task_adhoc`
--

CREATE TABLE `mdl_task_adhoc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `nextruntime` bigint(10) NOT NULL,
  `faildelay` bigint(10) DEFAULT NULL,
  `customdata` longtext COLLATE utf8_unicode_ci,
  `userid` bigint(10) DEFAULT NULL,
  `blocking` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_taskadho_nex_ix` (`nextruntime`),
  KEY `mdl_taskadho_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of adhoc tasks waiting to run.';

--
-- Dumping data for table `mdl_task_adhoc`
--


--
-- Table structure for table `mdl_task_scheduled`
--

CREATE TABLE `mdl_task_scheduled` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lastruntime` bigint(10) DEFAULT NULL,
  `nextruntime` bigint(10) DEFAULT NULL,
  `blocking` tinyint(2) NOT NULL DEFAULT '0',
  `minute` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hour` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `day` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `month` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `dayofweek` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `faildelay` bigint(10) DEFAULT NULL,
  `customised` tinyint(2) NOT NULL DEFAULT '0',
  `disabled` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tasksche_cla_uix` (`classname`)
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of scheduled tasks to be run by cron.';

--
-- Dumping data for table `mdl_task_scheduled`
--

INSERT INTO `mdl_task_scheduled` VALUES (1,'moodle','\\core\\task\\session_cleanup_task',1547537402,1547537460,0,'*','*','*','*','*',0,0,0),(2,'moodle','\\core\\task\\delete_unconfirmed_users_task',0,1547539200,0,'0','*','*','*','*',0,0,0),(3,'moodle','\\core\\task\\delete_incomplete_users_task',0,1547539500,0,'5','*','*','*','*',0,0,0),(4,'moodle','\\core\\task\\backup_cleanup_task',0,1547539800,0,'10','*','*','*','*',0,0,0),(5,'moodle','\\core\\task\\tag_cron_task',0,1547604600,0,'10','3','*','*','*',0,0,0),(6,'moodle','\\core\\task\\context_cleanup_task',0,1547540700,0,'25','*','*','*','*',0,0,0),(7,'moodle','\\core\\task\\cache_cleanup_task',1547537402,1547541000,0,'30','*','*','*','*',0,0,0),(8,'moodle','\\core\\task\\messaging_cleanup_task',0,1547537700,0,'35','*','*','*','*',0,0,0),(9,'moodle','\\core\\task\\send_new_user_passwords_task',1547537402,1547537460,0,'*','*','*','*','*',0,0,0),(10,'moodle','\\core\\task\\send_failed_login_notifications_task',1547537402,1547537460,0,'*','*','*','*','*',0,0,0),(11,'moodle','\\core\\task\\create_contexts_task',0,1547593200,1,'0','0','*','*','*',0,0,0),(12,'moodle','\\core\\task\\legacy_plugin_cron_task',1547537402,1547537460,0,'*','*','*','*','*',0,0,0),(13,'moodle','\\core\\task\\grade_cron_task',1547537402,1547537460,0,'*','*','*','*','*',0,0,0),(14,'moodle','\\core\\task\\completion_regular_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(15,'moodle','\\core\\task\\completion_daily_task',0,1547594100,0,'15','0','*','*','*',0,0,0),(16,'moodle','\\core\\task\\portfolio_cron_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(17,'moodle','\\core\\task\\plagiarism_cron_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(18,'moodle','\\core\\task\\calendar_cron_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(19,'moodle','\\core\\task\\blog_cron_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(20,'moodle','\\core\\task\\question_cron_task',1547537403,1547537460,0,'*','*','*','*','*',0,0,0),(21,'moodle','\\core\\task\\registration_cron_task',0,1548044400,0,'20','5','*','*','1',0,0,0),(22,'moodle','\\core\\task\\check_for_updates_task',0,1547542800,0,'0','*/2','*','*','*',0,0,0),(23,'moodle','\\core\\task\\cache_cron_task',0,1547538600,0,'50','*','*','*','*',0,0,0),(24,'moodle','\\core\\task\\automated_backup_task',0,1547538600,0,'50','*','*','*','*',0,0,0),(25,'moodle','\\core\\task\\badges_cron_task',1547537403,1547537700,0,'*/5','*','*','*','*',0,0,0),(26,'moodle','\\core\\task\\file_temp_cleanup_task',0,1547553300,0,'55','*/6','*','*','*',0,0,0),(27,'moodle','\\core\\task\\file_trash_cleanup_task',0,1547553300,0,'55','*/6','*','*','*',0,0,0),(28,'moodle','\\core\\task\\search_index_task',1547537403,1547539200,0,'*/30','*','*','*','*',0,0,0),(29,'moodle','\\core\\task\\search_optimize_task',0,1547550900,0,'15','*/12','*','*','*',0,0,0),(30,'moodle','\\core\\task\\stats_cron_task',0,1547593200,0,'0','0','*','*','*',0,0,0),(31,'moodle','\\core\\task\\password_reset_cleanup_task',0,1547550000,0,'0','*/6','*','*','*',0,0,0),(32,'moodle','\\core\\task\\complete_plans_task',0,1547539980,0,'13','*','*','*','*',0,0,0),(33,'moodle','\\core\\task\\sync_plans_from_template_cohorts_task',0,1547539440,0,'4','*','*','*','*',0,0,0),(34,'moodle','\\core_files\\task\\conversion_cleanup_task',0,1547600820,0,'7','2','*','*','*',0,0,0),(35,'moodle','\\core\\oauth2\\refresh_system_tokens_task',1547537403,1547541000,0,'30','*','*','*','*',0,0,0),(36,'moodle','\\core\\task\\analytics_cleanup_task',0,1547538120,0,'42','*','*','*','*',0,0,0),(37,'qtype_random','\\qtype_random\\task\\remove_unused_questions',1547537406,1547540520,0,'22','*','*','*','*',0,0,0),(38,'mod_forum','\\mod_forum\\task\\cron_task',1547537407,1547537460,0,'*','*','*','*','*',0,0,0),(39,'mod_scorm','\\mod_scorm\\task\\cron_task',1547537407,1547537700,0,'*/5','*','*','*','*',0,0,0),(40,'auth_cas','\\auth_cas\\task\\sync_task',0,1547074800,0,'0','0','*','*','*',0,0,1),(41,'auth_db','\\auth_db\\task\\sync_users',0,1547126220,0,'17','14','*','*','*',0,0,1),(42,'auth_ldap','\\auth_ldap\\task\\sync_roles',0,1547074800,0,'0','0','*','*','*',0,0,1),(43,'auth_ldap','\\auth_ldap\\task\\sync_task',0,1547074800,0,'0','0','*','*','*',0,0,1),(44,'enrol_category','\\enrol_category\\task\\enrol_category_sync',0,1547050140,0,'*','*','*','*','*',0,0,0),(45,'enrol_cohort','\\enrol_cohort\\task\\enrol_cohort_sync',1547537407,1547540400,0,'20','*','*','*','*',0,0,0),(46,'enrol_flatfile','\\enrol_flatfile\\task\\flatfile_sync_task',0,1547050500,0,'15','*','*','*','*',0,0,0),(47,'enrol_imsenterprise','\\enrol_imsenterprise\\task\\cron_task',0,1547050200,0,'10','*','*','*','*',0,0,0),(48,'enrol_ldap','\\enrol_ldap\\task\\sync_enrolments',0,1547110800,0,'0','10','*','*','*',0,0,1),(49,'enrol_lti','\\enrol_lti\\task\\sync_grades',0,1547051400,0,'*/30','*','*','*','*',0,0,0),(50,'enrol_lti','\\enrol_lti\\task\\sync_members',0,1547051400,0,'*/30','*','*','*','*',0,0,0),(51,'enrol_manual','\\enrol_manual\\task\\sync_enrolments',1547537407,1547538000,0,'*/10','*','*','*','*',0,0,0),(52,'enrol_manual','\\enrol_manual\\task\\send_expiry_notifications',1547537407,1547538000,0,'*/10','*','*','*','*',0,0,0),(53,'enrol_meta','\\enrol_meta\\task\\enrol_meta_sync',0,1547050500,0,'15','*','*','*','*',0,0,0),(54,'enrol_paypal','\\enrol_paypal\\task\\process_expirations',0,1547050140,0,'*','*','*','*','*',0,0,0),(55,'enrol_self','\\enrol_self\\task\\sync_enrolments',1547537407,1547538000,0,'*/10','*','*','*','*',0,0,0),(56,'enrol_self','\\enrol_self\\task\\send_expiry_notifications',1547537407,1547538000,0,'*/10','*','*','*','*',0,0,0),(57,'block_recent_activity','\\block_recent_activity\\task\\cleanup',1547537403,1547623080,0,'18','8','*','*','*',0,0,0),(58,'block_rss_client','\\block_rss_client\\task\\refreshfeeds',1547537407,1547537700,0,'*/5','*','*','*','*',0,0,0),(59,'editor_atto','\\editor_atto\\task\\autosave_cleanup_task',1547537403,1547906640,0,'4','15','*','*','6',0,0,0),(60,'repository_onedrive','\\repository_onedrive\\remove_temp_access_task',0,1547596860,0,'1','1','*','*','3',0,0,0),(61,'tool_analytics','\\tool_analytics\\task\\train_models',1547537403,1547604000,0,'0','3','*','*','*',0,0,0),(62,'tool_analytics','\\tool_analytics\\task\\predict_models',0,1547537643,0,'0','1','*','*','*',240,0,0),(63,'tool_cohortroles','\\tool_cohortroles\\task\\cohort_role_sync',1547537403,1547539260,0,'1','*','*','*','*',0,0,0),(64,'tool_dataprivacy','\\tool_dataprivacy\\task\\expired_retention_period',1547537403,1547593200,0,'0','0','*','*','*',0,0,0),(65,'tool_dataprivacy','\\tool_dataprivacy\\task\\delete_expired_contexts',1547537403,1547600400,0,'0','2','*','*','*',0,0,0),(66,'tool_dataprivacy','\\tool_dataprivacy\\task\\delete_expired_requests',1547537403,1547568720,0,'12','17','*','*','*',0,0,0),(67,'tool_dataprivacy','\\tool_dataprivacy\\task\\delete_existing_deleted_users',0,1547122020,0,'7','13','*','*','*',0,0,1),(68,'tool_langimport','\\tool_langimport\\task\\update_langpacks_task',1547537406,1547608140,0,'9','4','*','*','*',0,0,0),(69,'tool_messageinbound','\\tool_messageinbound\\task\\pickup_task',1547537407,1547537460,0,'*','*','*','*','*',0,0,0),(70,'tool_messageinbound','\\tool_messageinbound\\task\\cleanup_task',1547537406,1547600100,0,'55','1','*','*','*',0,0,0),(71,'tool_monitor','\\tool_monitor\\task\\clean_events',1547537407,1547537460,0,'*','*','*','*','*',0,0,0),(72,'tool_monitor','\\tool_monitor\\task\\check_subscriptions',1547537406,1547590440,0,'14','23','*','*','*',0,0,0),(73,'tool_recyclebin','\\tool_recyclebin\\task\\cleanup_course_bin',1547537407,1547539200,0,'*/30','*','*','*','*',0,0,0),(74,'tool_recyclebin','\\tool_recyclebin\\task\\cleanup_category_bin',1547537407,1547539200,0,'*/30','*','*','*','*',0,0,0),(75,'assignfeedback_editpdf','\\assignfeedback_editpdf\\task\\convert_submissions',1547537407,1547538300,0,'*/15','*','*','*','*',0,0,0),(76,'ltiservice_gradebookservices','\\ltiservice_gradebookservices\\task\\cleanup_task',1547537406,1547561460,0,'11','15','*','*','*',0,0,0),(77,'logstore_legacy','\\logstore_legacy\\task\\cleanup_task',0,1547093880,0,'18','5','*','*','*',0,0,0),(78,'logstore_standard','\\logstore_standard\\task\\cleanup_task',1547537406,1547608440,0,'14','4','*','*','*',0,0,0);

--
-- Table structure for table `mdl_tool_cohortroles`
--

CREATE TABLE `mdl_tool_cohortroles` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `cohortid` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolcoho_cohroluse_uix` (`cohortid`,`roleid`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Mapping of users to cohort role assignments.';

--
-- Dumping data for table `mdl_tool_cohortroles`
--


--
-- Table structure for table `mdl_tool_customlang`
--

CREATE TABLE `mdl_tool_customlang` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lang` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `componentid` bigint(10) NOT NULL,
  `stringid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `original` longtext COLLATE utf8_unicode_ci NOT NULL,
  `master` longtext COLLATE utf8_unicode_ci,
  `local` longtext COLLATE utf8_unicode_ci,
  `timemodified` bigint(10) NOT NULL,
  `timecustomized` bigint(10) DEFAULT NULL,
  `outdated` smallint(3) DEFAULT '0',
  `modified` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolcust_lancomstr_uix` (`lang`,`componentid`,`stringid`),
  KEY `mdl_toolcust_com_ix` (`componentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains the working checkout of all strings and their custo';

--
-- Dumping data for table `mdl_tool_customlang`
--


--
-- Table structure for table `mdl_tool_customlang_components`
--

CREATE TABLE `mdl_tool_customlang_components` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains the list of all installed plugins that provide thei';

--
-- Dumping data for table `mdl_tool_customlang_components`
--


--
-- Table structure for table `mdl_tool_dataprivacy_category`
--

CREATE TABLE `mdl_tool_dataprivacy_category` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(1) DEFAULT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Data categories';

--
-- Dumping data for table `mdl_tool_dataprivacy_category`
--


--
-- Table structure for table `mdl_tool_dataprivacy_ctxexpired`
--

CREATE TABLE `mdl_tool_dataprivacy_ctxexpired` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `unexpiredroles` longtext COLLATE utf8_unicode_ci,
  `expiredroles` longtext COLLATE utf8_unicode_ci,
  `defaultexpired` tinyint(1) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tooldatactxe_con_uix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Default comment for the table, please edit me';

--
-- Dumping data for table `mdl_tool_dataprivacy_ctxexpired`
--


--
-- Table structure for table `mdl_tool_dataprivacy_ctxinstance`
--

CREATE TABLE `mdl_tool_dataprivacy_ctxinstance` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `purposeid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tooldatactxi_con_uix` (`contextid`),
  KEY `mdl_tooldatactxi_pur_ix` (`purposeid`),
  KEY `mdl_tooldatactxi_cat_ix` (`categoryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Default comment for the table, please edit me';

--
-- Dumping data for table `mdl_tool_dataprivacy_ctxinstance`
--


--
-- Table structure for table `mdl_tool_dataprivacy_ctxlevel`
--

CREATE TABLE `mdl_tool_dataprivacy_ctxlevel` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextlevel` smallint(3) NOT NULL,
  `purposeid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tooldatactxl_con_uix` (`contextlevel`),
  KEY `mdl_tooldatactxl_cat_ix` (`categoryid`),
  KEY `mdl_tooldatactxl_pur_ix` (`purposeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Default comment for the table, please edit me';

--
-- Dumping data for table `mdl_tool_dataprivacy_ctxlevel`
--


--
-- Table structure for table `mdl_tool_dataprivacy_purpose`
--

CREATE TABLE `mdl_tool_dataprivacy_purpose` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(1) DEFAULT NULL,
  `lawfulbases` longtext COLLATE utf8_unicode_ci NOT NULL,
  `sensitivedatareasons` longtext COLLATE utf8_unicode_ci,
  `retentionperiod` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `protected` tinyint(1) DEFAULT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Data purposes';

--
-- Dumping data for table `mdl_tool_dataprivacy_purpose`
--


--
-- Table structure for table `mdl_tool_dataprivacy_purposerole`
--

CREATE TABLE `mdl_tool_dataprivacy_purposerole` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `purposeid` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `lawfulbases` longtext COLLATE utf8_unicode_ci,
  `sensitivedatareasons` longtext COLLATE utf8_unicode_ci,
  `retentionperiod` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `protected` tinyint(1) DEFAULT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tooldatapurp_purrol_uix` (`purposeid`,`roleid`),
  KEY `mdl_tooldatapurp_pur_ix` (`purposeid`),
  KEY `mdl_tooldatapurp_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Data purpose overrides for a specific role';

--
-- Dumping data for table `mdl_tool_dataprivacy_purposerole`
--


--
-- Table structure for table `mdl_tool_dataprivacy_request`
--

CREATE TABLE `mdl_tool_dataprivacy_request` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` bigint(10) NOT NULL DEFAULT '0',
  `comments` longtext COLLATE utf8_unicode_ci,
  `commentsformat` tinyint(2) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `requestedby` bigint(10) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '0',
  `dpo` bigint(10) DEFAULT '0',
  `dpocomment` longtext COLLATE utf8_unicode_ci,
  `dpocommentformat` tinyint(2) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `creationmethod` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_tooldatarequ_use_ix` (`userid`),
  KEY `mdl_tooldatarequ_req_ix` (`requestedby`),
  KEY `mdl_tooldatarequ_dpo_ix` (`dpo`),
  KEY `mdl_tooldatarequ_use2_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Table for data requests';

--
-- Dumping data for table `mdl_tool_dataprivacy_request`
--


--
-- Table structure for table `mdl_tool_monitor_events`
--

CREATE TABLE `mdl_tool_monitor_events` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `eventname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL,
  `contextinstanceid` bigint(10) NOT NULL,
  `link` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A table that keeps a log of events related to subscriptions';

--
-- Dumping data for table `mdl_tool_monitor_events`
--


--
-- Table structure for table `mdl_tool_monitor_history`
--

CREATE TABLE `mdl_tool_monitor_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `sid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timesent` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolmonihist_sidusetim_uix` (`sid`,`userid`,`timesent`),
  KEY `mdl_toolmonihist_sid_ix` (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Table to store history of message notifications sent';

--
-- Dumping data for table `mdl_tool_monitor_history`
--


--
-- Table structure for table `mdl_tool_monitor_rules`
--

CREATE TABLE `mdl_tool_monitor_rules` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(1) NOT NULL,
  `name` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `plugin` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `eventname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `template` longtext COLLATE utf8_unicode_ci NOT NULL,
  `templateformat` tinyint(1) NOT NULL,
  `frequency` smallint(4) NOT NULL,
  `timewindow` mediumint(5) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_toolmonirule_couuse_ix` (`courseid`,`userid`),
  KEY `mdl_toolmonirule_eve_ix` (`eventname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Table to store rules';

--
-- Dumping data for table `mdl_tool_monitor_rules`
--


--
-- Table structure for table `mdl_tool_monitor_subscriptions`
--

CREATE TABLE `mdl_tool_monitor_subscriptions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `ruleid` bigint(10) NOT NULL,
  `cmid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `lastnotificationsent` bigint(10) NOT NULL DEFAULT '0',
  `inactivedate` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_toolmonisubs_couuse_ix` (`courseid`,`userid`),
  KEY `mdl_toolmonisubs_rul_ix` (`ruleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Table to store user subscriptions to various rules';

--
-- Dumping data for table `mdl_tool_monitor_subscriptions`
--


--
-- Table structure for table `mdl_tool_policy`
--

CREATE TABLE `mdl_tool_policy` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `sortorder` mediumint(5) NOT NULL DEFAULT '999',
  `currentversionid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_toolpoli_cur_ix` (`currentversionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains the list of policy documents defined on the site.';

--
-- Dumping data for table `mdl_tool_policy`
--


--
-- Table structure for table `mdl_tool_policy_acceptances`
--

CREATE TABLE `mdl_tool_policy_acceptances` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `policyversionid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `lang` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `note` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolpoliacce_poluse_uix` (`policyversionid`,`userid`),
  KEY `mdl_toolpoliacce_pol_ix` (`policyversionid`),
  KEY `mdl_toolpoliacce_use_ix` (`userid`),
  KEY `mdl_toolpoliacce_use2_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks users accepting the policy versions';

--
-- Dumping data for table `mdl_tool_policy_acceptances`
--


--
-- Table structure for table `mdl_tool_policy_versions`
--

CREATE TABLE `mdl_tool_policy_versions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(1333) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` smallint(3) NOT NULL DEFAULT '0',
  `audience` smallint(3) NOT NULL DEFAULT '0',
  `archived` smallint(3) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `policyid` bigint(10) NOT NULL,
  `agreementstyle` smallint(3) NOT NULL DEFAULT '0',
  `optional` smallint(3) NOT NULL DEFAULT '0',
  `revision` varchar(1333) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci NOT NULL,
  `summaryformat` smallint(3) NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `contentformat` smallint(3) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_toolpolivers_use_ix` (`usermodified`),
  KEY `mdl_toolpolivers_pol_ix` (`policyid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds versions of the policy documents';

--
-- Dumping data for table `mdl_tool_policy_versions`
--


--
-- Table structure for table `mdl_tool_recyclebin_category`
--

CREATE TABLE `mdl_tool_recyclebin_category` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `categoryid` bigint(10) NOT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fullname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_toolrecycate_tim_ix` (`timecreated`),
  KEY `mdl_toolrecycate_cat_ix` (`categoryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A list of items in the category recycle bin';

--
-- Dumping data for table `mdl_tool_recyclebin_category`
--


--
-- Table structure for table `mdl_tool_recyclebin_course`
--

CREATE TABLE `mdl_tool_recyclebin_course` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `section` bigint(10) NOT NULL,
  `module` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_toolrecycour_tim_ix` (`timecreated`),
  KEY `mdl_toolrecycour_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A list of items in the course recycle bin';

--
-- Dumping data for table `mdl_tool_recyclebin_course`
--


--
-- Table structure for table `mdl_tool_usertours_steps`
--

CREATE TABLE `mdl_tool_usertours_steps` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `tourid` bigint(10) NOT NULL,
  `title` longtext COLLATE utf8_unicode_ci,
  `content` longtext COLLATE utf8_unicode_ci,
  `targettype` tinyint(2) NOT NULL,
  `targetvalue` longtext COLLATE utf8_unicode_ci NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `configdata` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_tooluserstep_tousor_ix` (`tourid`,`sortorder`),
  KEY `mdl_tooluserstep_tou_ix` (`tourid`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Steps in an tour';

--
-- Dumping data for table `mdl_tool_usertours_steps`
--

INSERT INTO `mdl_tool_usertours_steps` VALUES (1,1,'tour4_title_messaging,tool_usertours','tour4_content_messaging,tool_usertours',2,'',0,'{\"backdrop\":\"1\"}'),(2,1,'tour4_title_icon,tool_usertours','tour4_content_icon,tool_usertours',0,'[id^=message-drawer-toggle]',1,'{\"backdrop\":\"0\",\"reflex\":\"1\"}'),(3,1,'tour4_title_groupconvo,tool_usertours','tour4_content_groupconvo,tool_usertours',0,'.message-drawer:not(.hidden) [data-region=\"view-overview-group-messages\"]',2,'{\"placement\":\"left\"}'),(4,1,'tour4_title_starred,tool_usertours','tour4_content_starred,tool_usertours',0,'.message-drawer:not(.hidden) [data-region=\"view-overview-favourites\"]',3,'{\"placement\":\"left\"}'),(5,1,'tour4_title_settings,tool_usertours','tour4_content_settings,tool_usertours',0,'.message-drawer:not(.hidden) [data-route=\"view-settings\"]',4,'{\"reflex\":\"1\"}'),(6,1,'tour_final_step_title,tool_usertours','tour_final_step_content,tool_usertours',2,'',5,'{}'),(7,2,'tour3_title_dashboard,tool_usertours','tour3_content_dashboard,tool_usertours',2,'',0,'{\"backdrop\":\"1\"}'),(8,2,'tour3_title_dashboard,tool_usertours','tour3_content_timeline,tool_usertours',1,'timeline',1,'{\"reflex\":\"0\"}'),(9,2,'tour3_title_recentcourses,tool_usertours','tour3_content_recentcourses,tool_usertours',1,'recentlyaccessedcourses',2,'{\"placement\":\"top\",\"backdrop\":\"1\"}'),(10,2,'tour3_title_overview,tool_usertours','tour3_content_overview,tool_usertours',1,'myoverview',3,'{}'),(11,2,'tour3_title_starring,tool_usertours','tour3_content_starring,tool_usertours',0,'.block-myoverview [data-display=\"cards\"] [data-region=\"course-content\"] .coursemenubtn',4,'{\"placement\":\"right\"}'),(12,2,'tour3_title_starring,tool_usertours','tour3_content_starring,tool_usertours',0,'.block-myoverview [data-display]:not([data-display=\"cards\"]) [data-region=\"course-content\"] .coursemenubtn',5,'{}'),(13,2,'tour3_title_displayoptions,tool_usertours','tour3_content_displayoptions,tool_usertours',0,'#sortingdropdown',6,'{\"placement\":\"top\"}'),(14,2,'tour_final_step_title,tool_usertours','tour_final_step_content,tool_usertours',2,'',7,'{}');

--
-- Table structure for table `mdl_tool_usertours_tours`
--

CREATE TABLE `mdl_tool_usertours_tours` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `pathmatch` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `configdata` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of tours';

--
-- Dumping data for table `mdl_tool_usertours_tours`
--

INSERT INTO `mdl_tool_usertours_tours` VALUES (1,'New Messaging System','New messaging interface in Moodle 3.6','/course/view.php%',1,1,'{\"placement\":\"bottom\",\"orphan\":\"0\",\"backdrop\":\"0\",\"reflex\":\"0\",\"filtervalues\":{\"category\":[],\"course\":[\"0\"],\"courseformat\":[],\"role\":[],\"theme\":[]},\"majorupdatetime\":1543468823,\"shipped_tour\":true,\"shipped_filename\":\"36_messaging.json\",\"shipped_version\":3}'),(2,'Dashboard','New dashboard features','/my/%',1,0,'{\"placement\":\"top\",\"orphan\":\"0\",\"backdrop\":\"0\",\"reflex\":\"0\",\"filtervalues\":{\"category\":[],\"course\":[\"0\"],\"courseformat\":[],\"role\":[],\"theme\":[]},\"majorupdatetime\":1543396938,\"shipped_tour\":true,\"shipped_filename\":\"36_dashboard.json\",\"shipped_version\":3}');

--
-- Table structure for table `mdl_upgrade_log`
--

CREATE TABLE `mdl_upgrade_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` bigint(10) NOT NULL,
  `plugin` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `version` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `targetversion` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `details` longtext COLLATE utf8_unicode_ci,
  `backtrace` longtext COLLATE utf8_unicode_ci,
  `userid` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_upgrlog_tim_ix` (`timemodified`),
  KEY `mdl_upgrlog_typtim_ix` (`type`,`timemodified`),
  KEY `mdl_upgrlog_use_ix` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=1197 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Upgrade logging';

--
-- Dumping data for table `mdl_upgrade_log`
--


--
-- Table structure for table `mdl_url`
--

CREATE TABLE `mdl_url` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `externalurl` longtext COLLATE utf8_unicode_ci NOT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext COLLATE utf8_unicode_ci,
  `parameters` longtext COLLATE utf8_unicode_ci,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_url_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='each record is one url resource';

--
-- Dumping data for table `mdl_url`
--


--
-- Table structure for table `mdl_user`
--

CREATE TABLE `mdl_user` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `auth` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'manual',
  `confirmed` tinyint(1) NOT NULL DEFAULT '0',
  `policyagreed` tinyint(1) NOT NULL DEFAULT '0',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `suspended` tinyint(1) NOT NULL DEFAULT '0',
  `mnethostid` bigint(10) NOT NULL DEFAULT '0',
  `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `firstname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lastname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `emailstop` tinyint(1) NOT NULL DEFAULT '0',
  `icq` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `skype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `yahoo` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `aim` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `msn` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `phone1` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `phone2` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `institution` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `department` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `city` varchar(120) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `country` varchar(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lang` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'en',
  `calendartype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'gregorian',
  `theme` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timezone` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '99',
  `firstaccess` bigint(10) NOT NULL DEFAULT '0',
  `lastaccess` bigint(10) NOT NULL DEFAULT '0',
  `lastlogin` bigint(10) NOT NULL DEFAULT '0',
  `currentlogin` bigint(10) NOT NULL DEFAULT '0',
  `lastip` varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `secret` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `picture` bigint(10) NOT NULL DEFAULT '0',
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '1',
  `mailformat` tinyint(1) NOT NULL DEFAULT '1',
  `maildigest` tinyint(1) NOT NULL DEFAULT '0',
  `maildisplay` tinyint(2) NOT NULL DEFAULT '2',
  `autosubscribe` tinyint(1) NOT NULL DEFAULT '1',
  `trackforums` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `trustbitmask` bigint(10) NOT NULL DEFAULT '0',
  `imagealt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lastnamephonetic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `firstnamephonetic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `middlename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `alternatename` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_user_mneuse_uix` (`mnethostid`,`username`),
  KEY `mdl_user_del_ix` (`deleted`),
  KEY `mdl_user_con_ix` (`confirmed`),
  KEY `mdl_user_fir_ix` (`firstname`),
  KEY `mdl_user_las_ix` (`lastname`),
  KEY `mdl_user_cit_ix` (`city`),
  KEY `mdl_user_cou_ix` (`country`),
  KEY `mdl_user_las2_ix` (`lastaccess`),
  KEY `mdl_user_ema_ix` (`email`),
  KEY `mdl_user_aut_ix` (`auth`),
  KEY `mdl_user_idn_ix` (`idnumber`),
  KEY `mdl_user_fir2_ix` (`firstnamephonetic`),
  KEY `mdl_user_las3_ix` (`lastnamephonetic`),
  KEY `mdl_user_mid_ix` (`middlename`),
  KEY `mdl_user_alt_ix` (`alternatename`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='One record for each person';

--
-- Dumping data for table `mdl_user`
--

INSERT INTO `mdl_user` VALUES (1,'manual',1,0,0,0,1,'guest','$2y$10$BCls1Umt.PGgifdCxSX5bO8Arp2p2ivA9W1.EkhPdWFtb7EABHTOa','','Invitado',' ','root@localhost',0,'','','','','','','','','','','','','ca_valencia','gregorian','','99',0,0,0,0,'','',0,'','Este usuario sólo tiene acceso de lectura en ciertos cursos.',1,1,0,2,1,0,0,1547050082,0,NULL,NULL,NULL,NULL,NULL),(2,'manual',1,0,0,0,1,'admin','$2y$10$DH2p22Mu3CsSzqFxCNwgseXDxbtedbBimnF6SObY.tlR7KrI4rfkK','','Admin','Usuario','va@va.com',0,'','','','','','','','','','','','','ca_valencia','gregorian','','99',1547050162,1547537417,1547194226,1547537352,'10.2.1.254','',0,'','',1,1,0,1,1,0,0,1547050282,0,NULL,'','','','');

--
-- Table structure for table `mdl_user_devices`
--

CREATE TABLE `mdl_user_devices` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `appid` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `model` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `platform` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pushid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `uuid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userdevi_pususe_uix` (`pushid`,`userid`),
  KEY `mdl_userdevi_uuiuse_ix` (`uuid`,`userid`),
  KEY `mdl_userdevi_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table stores user''s mobile devices information in order';

--
-- Dumping data for table `mdl_user_devices`
--


--
-- Table structure for table `mdl_user_enrolments`
--

CREATE TABLE `mdl_user_enrolments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `enrolid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '2147483647',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userenro_enruse_uix` (`enrolid`,`userid`),
  KEY `mdl_userenro_enr_ix` (`enrolid`),
  KEY `mdl_userenro_use_ix` (`userid`),
  KEY `mdl_userenro_mod_ix` (`modifierid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Users participating in courses (aka enrolled users) - everyb';

--
-- Dumping data for table `mdl_user_enrolments`
--


--
-- Table structure for table `mdl_user_info_category`
--

CREATE TABLE `mdl_user_info_category` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Customisable fields categories';

--
-- Dumping data for table `mdl_user_info_category`
--


--
-- Table structure for table `mdl_user_info_data`
--

CREATE TABLE `mdl_user_info_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `fieldid` bigint(10) NOT NULL DEFAULT '0',
  `data` longtext COLLATE utf8_unicode_ci NOT NULL,
  `dataformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userinfodata_usefie_uix` (`userid`,`fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Data for the customisable user fields';

--
-- Dumping data for table `mdl_user_info_data`
--


--
-- Table structure for table `mdl_user_info_field`
--

CREATE TABLE `mdl_user_info_field` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'shortname',
  `name` longtext COLLATE utf8_unicode_ci NOT NULL,
  `datatype` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `categoryid` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `required` tinyint(2) NOT NULL DEFAULT '0',
  `locked` tinyint(2) NOT NULL DEFAULT '0',
  `visible` smallint(4) NOT NULL DEFAULT '0',
  `forceunique` tinyint(2) NOT NULL DEFAULT '0',
  `signup` tinyint(2) NOT NULL DEFAULT '0',
  `defaultdata` longtext COLLATE utf8_unicode_ci,
  `defaultdataformat` tinyint(2) NOT NULL DEFAULT '0',
  `param1` longtext COLLATE utf8_unicode_ci,
  `param2` longtext COLLATE utf8_unicode_ci,
  `param3` longtext COLLATE utf8_unicode_ci,
  `param4` longtext COLLATE utf8_unicode_ci,
  `param5` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED COMMENT='Customisable user profile fields';

--
-- Dumping data for table `mdl_user_info_field`
--


--
-- Table structure for table `mdl_user_lastaccess`
--

CREATE TABLE `mdl_user_lastaccess` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeaccess` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userlast_usecou_uix` (`userid`,`courseid`),
  KEY `mdl_userlast_use_ix` (`userid`),
  KEY `mdl_userlast_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To keep track of course page access times, used in online pa';

--
-- Dumping data for table `mdl_user_lastaccess`
--


--
-- Table structure for table `mdl_user_password_history`
--

CREATE TABLE `mdl_user_password_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_userpasshist_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A rotating log of hashes of previously used passwords for ea';

--
-- Dumping data for table `mdl_user_password_history`
--


--
-- Table structure for table `mdl_user_password_resets`
--

CREATE TABLE `mdl_user_password_resets` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `timerequested` bigint(10) NOT NULL,
  `timererequested` bigint(10) NOT NULL DEFAULT '0',
  `token` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_userpassrese_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='table tracking password reset confirmation tokens';

--
-- Dumping data for table `mdl_user_password_resets`
--


--
-- Table structure for table `mdl_user_preferences`
--

CREATE TABLE `mdl_user_preferences` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(1333) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userpref_usenam_uix` (`userid`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Allows modules to store arbitrary user preferences';

--
-- Dumping data for table `mdl_user_preferences`
--

INSERT INTO `mdl_user_preferences` VALUES (1,2,'core_message_migrate_data','1'),(2,2,'auth_manual_passwordupdatetime','1547050282'),(3,2,'email_bounce_count','1'),(4,2,'email_send_count','1'),(5,2,'tool_usertours_tour_completion_time_2','1547050329'),(6,2,'drawer-open-nav','true');

--
-- Table structure for table `mdl_user_private_key`
--

CREATE TABLE `mdl_user_private_key` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `script` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `instance` bigint(10) DEFAULT NULL,
  `iprestriction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_userprivkey_scrval_ix` (`script`,`value`),
  KEY `mdl_userprivkey_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='access keys used in cookieless scripts - rss, etc.';

--
-- Dumping data for table `mdl_user_private_key`
--


--
-- Table structure for table `mdl_wiki`
--

CREATE TABLE `mdl_wiki` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Wiki',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `firstpagetitle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'First Page',
  `wikimode` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'collaborative',
  `defaultformat` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'creole',
  `forceformat` tinyint(1) NOT NULL DEFAULT '1',
  `editbegin` bigint(10) NOT NULL DEFAULT '0',
  `editend` bigint(10) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_wiki_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores Wiki activity configuration';

--
-- Dumping data for table `mdl_wiki`
--


--
-- Table structure for table `mdl_wiki_links`
--

CREATE TABLE `mdl_wiki_links` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `frompageid` bigint(10) NOT NULL DEFAULT '0',
  `topageid` bigint(10) NOT NULL DEFAULT '0',
  `tomissingpage` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_wikilink_fro_ix` (`frompageid`),
  KEY `mdl_wikilink_sub_ix` (`subwikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Page wiki links';

--
-- Dumping data for table `mdl_wiki_links`
--


--
-- Table structure for table `mdl_wiki_locks`
--

CREATE TABLE `mdl_wiki_locks` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `sectionname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `lockedat` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Manages page locks';

--
-- Dumping data for table `mdl_wiki_locks`
--


--
-- Table structure for table `mdl_wiki_pages`
--

CREATE TABLE `mdl_wiki_pages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'title',
  `cachedcontent` longtext COLLATE utf8_unicode_ci NOT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `timerendered` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `pageviews` bigint(10) NOT NULL DEFAULT '0',
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikipage_subtituse_uix` (`subwikiid`,`title`,`userid`),
  KEY `mdl_wikipage_sub_ix` (`subwikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores wiki pages';

--
-- Dumping data for table `mdl_wiki_pages`
--


--
-- Table structure for table `mdl_wiki_subwikis`
--

CREATE TABLE `mdl_wiki_subwikis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `wikiid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikisubw_wikgrouse_uix` (`wikiid`,`groupid`,`userid`),
  KEY `mdl_wikisubw_wik_ix` (`wikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores subwiki instances';

--
-- Dumping data for table `mdl_wiki_subwikis`
--


--
-- Table structure for table `mdl_wiki_synonyms`
--

CREATE TABLE `mdl_wiki_synonyms` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `pagesynonym` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Pagesynonym',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikisyno_pagpag_uix` (`pageid`,`pagesynonym`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores wiki pages synonyms';

--
-- Dumping data for table `mdl_wiki_synonyms`
--


--
-- Table structure for table `mdl_wiki_versions`
--

CREATE TABLE `mdl_wiki_versions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `contentformat` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'creole',
  `version` mediumint(5) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_wikivers_pag_ix` (`pageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores wiki page history';

--
-- Dumping data for table `mdl_wiki_versions`
--


--
-- Table structure for table `mdl_workshop`
--

CREATE TABLE `mdl_workshop` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(3) NOT NULL DEFAULT '0',
  `instructauthors` longtext COLLATE utf8_unicode_ci,
  `instructauthorsformat` smallint(3) NOT NULL DEFAULT '0',
  `instructreviewers` longtext COLLATE utf8_unicode_ci,
  `instructreviewersformat` smallint(3) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL,
  `phase` smallint(3) DEFAULT '0',
  `useexamples` tinyint(2) DEFAULT '0',
  `usepeerassessment` tinyint(2) DEFAULT '0',
  `useselfassessment` tinyint(2) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT '80.00000',
  `gradinggrade` decimal(10,5) DEFAULT '20.00000',
  `strategy` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `evaluation` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `gradedecimals` smallint(3) DEFAULT '0',
  `submissiontypetext` tinyint(1) NOT NULL DEFAULT '1',
  `submissiontypefile` tinyint(1) NOT NULL DEFAULT '1',
  `nattachments` smallint(3) DEFAULT '1',
  `submissionfiletypes` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latesubmissions` tinyint(2) DEFAULT '0',
  `maxbytes` bigint(10) DEFAULT '100000',
  `examplesmode` smallint(3) DEFAULT '0',
  `submissionstart` bigint(10) DEFAULT '0',
  `submissionend` bigint(10) DEFAULT '0',
  `assessmentstart` bigint(10) DEFAULT '0',
  `assessmentend` bigint(10) DEFAULT '0',
  `phaseswitchassessment` tinyint(2) NOT NULL DEFAULT '0',
  `conclusion` longtext COLLATE utf8_unicode_ci,
  `conclusionformat` smallint(3) NOT NULL DEFAULT '1',
  `overallfeedbackmode` smallint(3) DEFAULT '1',
  `overallfeedbackfiles` smallint(3) DEFAULT '0',
  `overallfeedbackfiletypes` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `overallfeedbackmaxbytes` bigint(10) DEFAULT '100000',
  PRIMARY KEY (`id`),
  KEY `mdl_work_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table keeps information about the module instances and ';

--
-- Dumping data for table `mdl_workshop`
--


--
-- Table structure for table `mdl_workshop_aggregations`
--

CREATE TABLE `mdl_workshop_aggregations` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `gradinggrade` decimal(10,5) DEFAULT NULL,
  `timegraded` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workaggr_woruse_uix` (`workshopid`,`userid`),
  KEY `mdl_workaggr_wor_ix` (`workshopid`),
  KEY `mdl_workaggr_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Aggregated grades for assessment are stored here. The aggreg';

--
-- Dumping data for table `mdl_workshop_aggregations`
--


--
-- Table structure for table `mdl_workshop_assessments`
--

CREATE TABLE `mdl_workshop_assessments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `submissionid` bigint(10) NOT NULL,
  `reviewerid` bigint(10) NOT NULL,
  `weight` bigint(10) NOT NULL DEFAULT '1',
  `timecreated` bigint(10) DEFAULT '0',
  `timemodified` bigint(10) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT NULL,
  `gradinggrade` decimal(10,5) DEFAULT NULL,
  `gradinggradeover` decimal(10,5) DEFAULT NULL,
  `gradinggradeoverby` bigint(10) DEFAULT NULL,
  `feedbackauthor` longtext COLLATE utf8_unicode_ci,
  `feedbackauthorformat` smallint(3) DEFAULT '0',
  `feedbackauthorattachment` smallint(3) DEFAULT '0',
  `feedbackreviewer` longtext COLLATE utf8_unicode_ci,
  `feedbackreviewerformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workasse_sub_ix` (`submissionid`),
  KEY `mdl_workasse_gra_ix` (`gradinggradeoverby`),
  KEY `mdl_workasse_rev_ix` (`reviewerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about the made assessment and automatically calculated ';

--
-- Dumping data for table `mdl_workshop_assessments`
--


--
-- Table structure for table `mdl_workshop_grades`
--

CREATE TABLE `mdl_workshop_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `assessmentid` bigint(10) NOT NULL,
  `strategy` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `dimensionid` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  `peercomment` longtext COLLATE utf8_unicode_ci,
  `peercommentformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workgrad_assstrdim_uix` (`assessmentid`,`strategy`,`dimensionid`),
  KEY `mdl_workgrad_ass_ix` (`assessmentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='How the reviewers filled-up the grading forms, given grades ';

--
-- Dumping data for table `mdl_workshop_grades`
--


--
-- Table structure for table `mdl_workshop_submissions`
--

CREATE TABLE `mdl_workshop_submissions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `example` tinyint(2) DEFAULT '0',
  `authorid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `content` longtext COLLATE utf8_unicode_ci,
  `contentformat` smallint(3) NOT NULL DEFAULT '0',
  `contenttrust` smallint(3) NOT NULL DEFAULT '0',
  `attachment` tinyint(2) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT NULL,
  `gradeover` decimal(10,5) DEFAULT NULL,
  `gradeoverby` bigint(10) DEFAULT NULL,
  `feedbackauthor` longtext COLLATE utf8_unicode_ci,
  `feedbackauthorformat` smallint(3) DEFAULT '0',
  `timegraded` bigint(10) DEFAULT NULL,
  `published` tinyint(2) DEFAULT '0',
  `late` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_worksubm_wor_ix` (`workshopid`),
  KEY `mdl_worksubm_gra_ix` (`gradeoverby`),
  KEY `mdl_worksubm_aut_ix` (`authorid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about the submission and the aggregation of the grade f';

--
-- Dumping data for table `mdl_workshop_submissions`
--


--
-- Table structure for table `mdl_workshopallocation_scheduled`
--

CREATE TABLE `mdl_workshopallocation_scheduled` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `enabled` tinyint(2) NOT NULL DEFAULT '0',
  `submissionend` bigint(10) NOT NULL,
  `timeallocated` bigint(10) DEFAULT NULL,
  `settings` longtext COLLATE utf8_unicode_ci,
  `resultstatus` bigint(10) DEFAULT NULL,
  `resultmessage` varchar(1333) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultlog` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_worksche_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the allocation settings for the scheduled allocator';

--
-- Dumping data for table `mdl_workshopallocation_scheduled`
--


--
-- Table structure for table `mdl_workshopeval_best_settings`
--

CREATE TABLE `mdl_workshopeval_best_settings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `comparison` smallint(3) DEFAULT '5',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workbestsett_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Settings for the grading evaluation subplugin Comparison wit';

--
-- Dumping data for table `mdl_workshopeval_best_settings`
--


--
-- Table structure for table `mdl_workshopform_accumulative`
--

CREATE TABLE `mdl_workshopform_accumulative` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` smallint(3) DEFAULT '0',
  `grade` bigint(10) NOT NULL,
  `weight` mediumint(5) DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_workaccu_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The assessment dimensions definitions of Accumulative gradin';

--
-- Dumping data for table `mdl_workshopform_accumulative`
--


--
-- Table structure for table `mdl_workshopform_comments`
--

CREATE TABLE `mdl_workshopform_comments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workcomm_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The assessment dimensions definitions of Comments strategy f';

--
-- Dumping data for table `mdl_workshopform_comments`
--


--
-- Table structure for table `mdl_workshopform_numerrors`
--

CREATE TABLE `mdl_workshopform_numerrors` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` smallint(3) DEFAULT '0',
  `descriptiontrust` bigint(10) DEFAULT NULL,
  `grade0` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `grade1` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `weight` mediumint(5) DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_worknume_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The assessment dimensions definitions of Number of errors gr';

--
-- Dumping data for table `mdl_workshopform_numerrors`
--


--
-- Table structure for table `mdl_workshopform_numerrors_map`
--

CREATE TABLE `mdl_workshopform_numerrors_map` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `nonegative` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_worknumemap_wornon_uix` (`workshopid`,`nonegative`),
  KEY `mdl_worknumemap_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This maps the number of errors to a percentual grade for sub';

--
-- Dumping data for table `mdl_workshopform_numerrors_map`
--


--
-- Table structure for table `mdl_workshopform_rubric`
--

CREATE TABLE `mdl_workshopform_rubric` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workrubr_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The assessment dimensions definitions of Rubric grading stra';

--
-- Dumping data for table `mdl_workshopform_rubric`
--


--
-- Table structure for table `mdl_workshopform_rubric_config`
--

CREATE TABLE `mdl_workshopform_rubric_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `layout` varchar(30) COLLATE utf8_unicode_ci DEFAULT 'list',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workrubrconf_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Configuration table for the Rubric grading strategy';

--
-- Dumping data for table `mdl_workshopform_rubric_config`
--


--
-- Table structure for table `mdl_workshopform_rubric_levels`
--

CREATE TABLE `mdl_workshopform_rubric_levels` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `dimensionid` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  `definition` longtext COLLATE utf8_unicode_ci,
  `definitionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workrubrleve_dim_ix` (`dimensionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The definition of rubric rating scales';

--
-- Dumping data for table `mdl_workshopform_rubric_levels`
--



