IP : 18.221.135.156Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
var/
softaculous/
moodle44/
moodle44.sql/
/
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */;
-- -- Table structure for table `[[dbprefix]]adminpresets` --
CREATE TABLE `[[dbprefix]]adminpresets` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `comments` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `site` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `author` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `moodleversion` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `moodlerelease` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `iscore` tinyint(1) NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL DEFAULT '0', `timeimported` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Table to store presets data' AUTO_INCREMENT=3 ;
-- -- Dumping data for table `[[dbprefix]]adminpresets` --
INSERT INTO `[[dbprefix]]adminpresets` VALUES (1, 0, 'Starter', 'Moodle with all of the most popular features, including Assignment, Feedback, Forum, H5P, Quiz and Completion tracking.', '[[softurl]]', '', '', '', 1, [[timestamp]], 0), (2, 0, 'Full', 'All the Starter features plus External (LTI) tool, SCORM, Workshop, Analytics, Badges, Competencies, Learning plans and lots more.', '[[softurl]]', '', '', '', 2, [[timestamp]], 0);
-- -- Table structure for table `[[dbprefix]]analytics_models_log` --
CREATE TABLE `[[dbprefix]]analytics_models_log` ( `id` bigint NOT NULL AUTO_INCREMENT, `modelid` bigint NOT NULL, `version` bigint NOT NULL, `evaluationmode` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `target` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `indicators` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timesplitting` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `score` decimal(10,5) NOT NULL DEFAULT '0.00000', `info` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `dir` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timecreated` bigint NOT NULL, `usermodified` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]analmodelog_mod_ix` (`modelid`), KEY `[[dbprefix]]analmodelog_use_ix` (`usermodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Analytic models changes during evaluation.';
-- -- Table structure for table `[[dbprefix]]analytics_used_files` --
CREATE TABLE `[[dbprefix]]analytics_used_files` ( `id` bigint NOT NULL AUTO_INCREMENT, `modelid` bigint NOT NULL DEFAULT '0', `fileid` bigint NOT NULL DEFAULT '0', `action` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `time` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]analusedfile_modactfi_ix` (`modelid`,`action`,`fileid`), KEY `[[dbprefix]]analusedfile_mod_ix` (`modelid`), KEY `[[dbprefix]]analusedfile_fil_ix` (`fileid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Files that have already been used for training and predictio';
-- -- Table structure for table `[[dbprefix]]assignfeedback_file` --
CREATE TABLE `[[dbprefix]]assignfeedback_file` ( `id` bigint NOT NULL AUTO_INCREMENT, `assignment` bigint NOT NULL DEFAULT '0', `grade` bigint NOT NULL DEFAULT '0', `numfiles` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]assifile_ass2_ix` (`assignment`), KEY `[[dbprefix]]assifile_gra_ix` (`grade`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores info about the number of files submitted by a student';
-- -- Table structure for table `[[dbprefix]]assign_plugin_config` --
CREATE TABLE `[[dbprefix]]assign_plugin_config` ( `id` bigint NOT NULL AUTO_INCREMENT, `assignment` bigint NOT NULL DEFAULT '0', `plugin` varchar(28) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `subtype` varchar(28) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `name` varchar(28) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `value` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`), KEY `[[dbprefix]]assiplugconf_plu_ix` (`plugin`), KEY `[[dbprefix]]assiplugconf_sub_ix` (`subtype`), KEY `[[dbprefix]]assiplugconf_nam_ix` (`name`), KEY `[[dbprefix]]assiplugconf_ass_ix` (`assignment`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Config data for an instance of a plugin in an assignment.';
-- -- Table structure for table `[[dbprefix]]assign_user_flags` --
CREATE TABLE `[[dbprefix]]assign_user_flags` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL DEFAULT '0', `assignment` bigint NOT NULL DEFAULT '0', `locked` bigint NOT NULL DEFAULT '0', `mailed` smallint NOT NULL DEFAULT '0', `extensionduedate` bigint NOT NULL DEFAULT '0', `workflowstate` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `allocatedmarker` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]assiuserflag_mai_ix` (`mailed`), KEY `[[dbprefix]]assiuserflag_use_ix` (`userid`), KEY `[[dbprefix]]assiuserflag_ass_ix` (`assignment`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='List of flags that can be set for a single user in a single ';
-- -- Table structure for table `[[dbprefix]]assign_user_mapping` --
CREATE TABLE `[[dbprefix]]assign_user_mapping` ( `id` bigint NOT NULL AUTO_INCREMENT, `assignment` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]assiusermapp_ass_ix` (`assignment`), KEY `[[dbprefix]]assiusermapp_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Map an assignment specific id number to a user';
-- -- Table structure for table `[[dbprefix]]auth_lti_linked_login` --
CREATE TABLE `[[dbprefix]]auth_lti_linked_login` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL, `issuer` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `issuer256` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sub` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sub256` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]authltilinklogi_usei_uix` (`userid`,`issuer256`,`sub256`), KEY `[[dbprefix]]authltilinklogi_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Accounts linked to a users Moodle account.';
-- -- Table structure for table `[[dbprefix]]backup_controllers` --
CREATE TABLE `[[dbprefix]]backup_controllers` ( `id` bigint NOT NULL AUTO_INCREMENT, `backupid` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `operation` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'backup', `type` varchar(10) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `itemid` bigint NOT NULL, `format` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `interactive` smallint NOT NULL, `purpose` smallint NOT NULL, `userid` bigint NOT NULL, `status` smallint NOT NULL, `execution` smallint NOT NULL, `executiontime` bigint NOT NULL, `checksum` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `progress` decimal(15,14) NOT NULL DEFAULT '0.00000000000000', `controller` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]backcont_bac_uix` (`backupid`), KEY `[[dbprefix]]backcont_typite_ix` (`type`,`itemid`), KEY `[[dbprefix]]backcont_useite_ix` (`userid`,`itemid`), KEY `[[dbprefix]]backcont_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='To store the backup_controllers as they are used';
-- -- Table structure for table `[[dbprefix]]backup_logs` --
CREATE TABLE `[[dbprefix]]backup_logs` ( `id` bigint NOT NULL AUTO_INCREMENT, `backupid` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `loglevel` smallint NOT NULL, `message` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]backlogs_bacid_uix` (`backupid`,`id`), KEY `[[dbprefix]]backlogs_bac_ix` (`backupid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='To store all the logs from backup and restore operations (by';
-- -- Table structure for table `[[dbprefix]]badge_external_backpack` --
CREATE TABLE `[[dbprefix]]badge_external_backpack` ( `id` bigint NOT NULL AUTO_INCREMENT, `backpackapiurl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `backpackweburl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `apiversion` varchar(12) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '1.0', `sortorder` bigint NOT NULL DEFAULT '0', `oauth2_issuerid` bigint DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]badgexteback_bac_uix` (`backpackapiurl`), UNIQUE KEY `[[dbprefix]]badgexteback_bac2_uix` (`backpackweburl`), KEY `[[dbprefix]]badgexteback_oau_ix` (`oauth2_issuerid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines settings for site level backpacks that a user can co' AUTO_INCREMENT=2 ;
-- -- Dumping data for table `[[dbprefix]]badge_external_backpack` --
INSERT INTO `[[dbprefix]]badge_external_backpack` VALUES (1, 'https://api.badgr.io/v2', 'https://badgr.io', '2', 1, NULL);
-- -- Table structure for table `[[dbprefix]]bigbluebuttonbn` --
CREATE TABLE `[[dbprefix]]bigbluebuttonbn` ( `id` bigint NOT NULL AUTO_INCREMENT, `type` tinyint NOT NULL DEFAULT '0', `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `introformat` smallint NOT NULL DEFAULT '1', `meetingid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `moderatorpass` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `viewerpass` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `wait` tinyint(1) NOT NULL DEFAULT '0', `record` tinyint(1) NOT NULL DEFAULT '0', `recordallfromstart` tinyint(1) NOT NULL DEFAULT '0', `recordhidebutton` tinyint(1) NOT NULL DEFAULT '0', `welcome` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `voicebridge` mediumint NOT NULL DEFAULT '0', `openingtime` bigint NOT NULL DEFAULT '0', `closingtime` bigint NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', `presentation` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `participants` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `userlimit` smallint NOT NULL DEFAULT '0', `recordings_html` tinyint(1) NOT NULL DEFAULT '0', `recordings_deleted` tinyint(1) NOT NULL DEFAULT '1', `recordings_imported` tinyint(1) NOT NULL DEFAULT '0', `recordings_preview` tinyint(1) NOT NULL DEFAULT '0', `clienttype` tinyint(1) NOT NULL DEFAULT '0', `muteonstart` tinyint(1) NOT NULL DEFAULT '0', `disablecam` tinyint(1) NOT NULL DEFAULT '0', `disablemic` tinyint(1) NOT NULL DEFAULT '0', `disableprivatechat` tinyint(1) NOT NULL DEFAULT '0', `disablepublicchat` tinyint(1) NOT NULL DEFAULT '0', `disablenote` tinyint(1) NOT NULL DEFAULT '0', `hideuserlist` tinyint(1) NOT NULL DEFAULT '0', `completionattendance` int NOT NULL DEFAULT '0', `completionengagementchats` int NOT NULL DEFAULT '0', `completionengagementtalks` int NOT NULL DEFAULT '0', `completionengagementraisehand` int NOT NULL DEFAULT '0', `completionengagementpollvotes` int NOT NULL DEFAULT '0', `completionengagementemojis` int NOT NULL DEFAULT '0', `guestallowed` tinyint DEFAULT '0', `mustapproveuser` tinyint DEFAULT '1', `guestlinkuid` varchar(1024) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `guestpassword` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The bigbluebuttonbn table to store information about a meeti';
-- -- Table structure for table `[[dbprefix]]block_instances` --
CREATE TABLE `[[dbprefix]]block_instances` ( `id` bigint NOT NULL AUTO_INCREMENT, `blockname` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `parentcontextid` bigint NOT NULL, `showinsubcontexts` smallint NOT NULL, `requiredbytheme` smallint NOT NULL DEFAULT '0', `pagetypepattern` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `subpagepattern` varchar(16) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `defaultregion` varchar(16) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `defaultweight` bigint NOT NULL, `configdata` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]blocinst_parshopagsub_ix` (`parentcontextid`,`showinsubcontexts`,`pagetypepattern`,`subpagepattern`), KEY `[[dbprefix]]blocinst_tim_ix` (`timemodified`), KEY `[[dbprefix]]blocinst_blo_ix` (`blockname`), KEY `[[dbprefix]]blocinst_par_ix` (`parentcontextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table stores block instances. The type of block this is' AUTO_INCREMENT=9 ;
-- -- Dumping data for table `[[dbprefix]]block_instances` --
-- -- Table structure for table `[[dbprefix]]block_positions` --
CREATE TABLE `[[dbprefix]]block_positions` ( `id` bigint NOT NULL AUTO_INCREMENT, `blockinstanceid` bigint NOT NULL, `contextid` bigint NOT NULL, `pagetype` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `subpage` varchar(16) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `visible` smallint NOT NULL, `region` varchar(16) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `weight` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]blocposi_bloconpagsu_uix` (`blockinstanceid`,`contextid`,`pagetype`,`subpage`), KEY `[[dbprefix]]blocposi_blo_ix` (`blockinstanceid`), KEY `[[dbprefix]]blocposi_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the position of a sticky block_instance on a another ' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]blog_external` --
CREATE TABLE `[[dbprefix]]blog_external` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `url` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `filtertags` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `failedlastsync` tinyint(1) NOT NULL DEFAULT '0', `timemodified` bigint DEFAULT NULL, `timefetched` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]blogexte_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='External blog links used for RSS copying of blog entries to ';
-- -- Table structure for table `[[dbprefix]]chat` --
CREATE TABLE `[[dbprefix]]chat` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `introformat` smallint NOT NULL DEFAULT '0', `keepdays` bigint NOT NULL DEFAULT '0', `studentlogs` smallint NOT NULL DEFAULT '0', `chattime` bigint NOT NULL DEFAULT '0', `schedule` smallint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]chat_cou_ix` (`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each of these is a chat room';
-- -- Table structure for table `[[dbprefix]]cohort` --
CREATE TABLE `[[dbprefix]]cohort` ( `id` bigint NOT NULL AUTO_INCREMENT, `contextid` bigint NOT NULL, `name` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `idnumber` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `descriptionformat` tinyint NOT NULL, `visible` tinyint(1) NOT NULL DEFAULT '1', `component` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `theme` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]coho_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each record represents one cohort (aka site-wide group).' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]communication_customlink` --
CREATE TABLE `[[dbprefix]]communication_customlink` ( `id` bigint NOT NULL AUTO_INCREMENT, `commid` bigint NOT NULL, `url` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]commcust_com_ix` (`commid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the link associated with a custom link communication ';
-- -- Table structure for table `[[dbprefix]]competency_userevidence` --
CREATE TABLE `[[dbprefix]]competency_userevidence` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL, `name` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `descriptionformat` tinyint(1) NOT NULL, `url` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `usermodified` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]compuser_use4_ix` (`userid`), KEY `[[dbprefix]]compuser_use5_ix` (`usermodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The evidence of prior learning';
-- -- Table structure for table `[[dbprefix]]context_temp` --
CREATE TABLE `[[dbprefix]]context_temp` ( `id` bigint NOT NULL, `path` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `depth` tinyint NOT NULL, `locked` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Used by build_context_path() in upgrade and cron to keep con';
-- -- Table structure for table `[[dbprefix]]course_published` --
CREATE TABLE `[[dbprefix]]course_published` ( `id` bigint NOT NULL AUTO_INCREMENT, `huburl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `courseid` bigint NOT NULL, `timepublished` bigint NOT NULL, `enrollable` tinyint(1) NOT NULL DEFAULT '1', `hubcourseid` bigint NOT NULL, `status` tinyint(1) DEFAULT '0', `timechecked` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]courpubl_hub_ix` (`hubcourseid`), KEY `[[dbprefix]]courpubl_cou_ix` (`courseid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Information about how and when an local courses were publish';
-- -- Table structure for table `[[dbprefix]]course_request` --
CREATE TABLE `[[dbprefix]]course_request` ( `id` bigint NOT NULL AUTO_INCREMENT, `fullname` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `shortname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `summary` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `summaryformat` tinyint NOT NULL DEFAULT '0', `category` bigint NOT NULL DEFAULT '0', `reason` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `requester` bigint NOT NULL DEFAULT '0', `password` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]courrequ_sho_ix` (`shortname`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='course requests';
-- -- Table structure for table `[[dbprefix]]data` --
CREATE TABLE `[[dbprefix]]data` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `introformat` smallint NOT NULL DEFAULT '0', `comments` smallint NOT NULL DEFAULT '0', `timeavailablefrom` bigint NOT NULL DEFAULT '0', `timeavailableto` bigint NOT NULL DEFAULT '0', `timeviewfrom` bigint NOT NULL DEFAULT '0', `timeviewto` bigint NOT NULL DEFAULT '0', `requiredentries` int NOT NULL DEFAULT '0', `requiredentriestoview` int NOT NULL DEFAULT '0', `maxentries` int NOT NULL DEFAULT '0', `rssarticles` smallint NOT NULL DEFAULT '0', `singletemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `listtemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `listtemplateheader` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `listtemplatefooter` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `addtemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `rsstemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `rsstitletemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `csstemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `jstemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `asearchtemplate` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `approval` smallint NOT NULL DEFAULT '0', `manageapproved` smallint NOT NULL DEFAULT '1', `scale` bigint NOT NULL DEFAULT '0', `assessed` bigint NOT NULL DEFAULT '0', `assesstimestart` bigint NOT NULL DEFAULT '0', `assesstimefinish` bigint NOT NULL DEFAULT '0', `defaultsort` bigint NOT NULL DEFAULT '0', `defaultsortdir` smallint NOT NULL DEFAULT '0', `editany` smallint NOT NULL DEFAULT '0', `notification` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', `config` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `completionentries` bigint DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]data_cou_ix` (`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='all database activities';
-- -- Table structure for table `[[dbprefix]]data_fields` --
CREATE TABLE `[[dbprefix]]data_fields` ( `id` bigint NOT NULL AUTO_INCREMENT, `dataid` bigint NOT NULL DEFAULT '0', `type` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `required` tinyint(1) NOT NULL DEFAULT '0', `param1` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param2` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param3` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param4` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param5` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param6` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param7` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param8` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param9` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param10` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`), KEY `[[dbprefix]]datafiel_typdat_ix` (`type`,`dataid`), KEY `[[dbprefix]]datafiel_dat_ix` (`dataid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='every field available';
-- -- Table structure for table `[[dbprefix]]editor_atto_autosave` --
CREATE TABLE `[[dbprefix]]editor_atto_autosave` ( `id` bigint NOT NULL AUTO_INCREMENT, `elementid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `contextid` bigint NOT NULL, `pagehash` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `userid` bigint NOT NULL, `drafttext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `draftid` bigint DEFAULT NULL, `pageinstance` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]editattoauto_eleconu_uix` (`elementid`,`contextid`,`userid`,`pagehash`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Draft text that is auto-saved every 5 seconds while an edito';
-- -- Table structure for table `[[dbprefix]]enrol_lti_app_registration` --
CREATE TABLE `[[dbprefix]]enrol_lti_app_registration` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `platformid` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `clientid` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `uniqueid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `platformclienthash` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `platformuniqueidhash` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `authenticationrequesturl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `jwksurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `accesstokenurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `status` tinyint(1) NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltiappregi_uni_uix` (`uniqueid`), UNIQUE KEY `[[dbprefix]]enroltiappregi_pla_uix` (`platformclienthash`), UNIQUE KEY `[[dbprefix]]enroltiappregi_pla2_uix` (`platformuniqueidhash`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Details of each application that has been registered with th';
-- -- Table structure for table `[[dbprefix]]enrol_lti_context` --
CREATE TABLE `[[dbprefix]]enrol_lti_context` ( `id` bigint NOT NULL AUTO_INCREMENT, `contextid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `ltideploymentid` bigint NOT NULL, `type` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enrolticont_lticon_uix` (`ltideploymentid`,`contextid`), KEY `[[dbprefix]]enrolticont_lti_ix` (`ltideploymentid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each row represents a context in the platform, where resourc';
-- -- Table structure for table `[[dbprefix]]enrol_lti_deployment` --
CREATE TABLE `[[dbprefix]]enrol_lti_deployment` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `deploymentid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `platformid` bigint NOT NULL, `legacyconsumerkey` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltidepl_pladep_uix` (`platformid`,`deploymentid`), KEY `[[dbprefix]]enroltidepl_pla_ix` (`platformid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each row represents a deployment of a tool within a platform';
-- -- Table structure for table `[[dbprefix]]enrol_lti_lti2_consumer` --
CREATE TABLE `[[dbprefix]]enrol_lti_lti2_consumer` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `consumerkey256` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `consumerkey` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `secret` varchar(1024) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `ltiversion` varchar(10) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `consumername` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `consumerversion` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `consumerguid` varchar(1024) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `profile` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `toolproxy` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `settings` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `protected` tinyint(1) NOT NULL, `enabled` tinyint(1) NOT NULL, `enablefrom` bigint DEFAULT NULL, `enableuntil` bigint DEFAULT NULL, `lastaccess` bigint DEFAULT NULL, `created` bigint NOT NULL, `updated` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltilti2cons_con_uix` (`consumerkey256`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='LTI consumers interacting with moodle';
-- -- Table structure for table `[[dbprefix]]enrol_lti_lti2_context` --
CREATE TABLE `[[dbprefix]]enrol_lti_lti2_context` ( `id` bigint NOT NULL AUTO_INCREMENT, `consumerid` bigint NOT NULL, `lticontextkey` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `type` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `settings` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `created` bigint NOT NULL, `updated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]enroltilti2cont_con_ix` (`consumerid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Information about a specific LTI contexts from the consumers';
-- -- Table structure for table `[[dbprefix]]enrol_lti_lti2_nonce` --
CREATE TABLE `[[dbprefix]]enrol_lti_lti2_nonce` ( `id` bigint NOT NULL AUTO_INCREMENT, `consumerid` bigint NOT NULL, `value` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `expires` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]enroltilti2nonc_con_ix` (`consumerid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Nonce used for authentication between moodle and a consumer';
-- -- Table structure for table `[[dbprefix]]enrol_lti_lti2_tool_proxy` --
CREATE TABLE `[[dbprefix]]enrol_lti_lti2_tool_proxy` ( `id` bigint NOT NULL AUTO_INCREMENT, `toolproxykey` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `consumerid` bigint NOT NULL, `toolproxy` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `created` bigint NOT NULL, `updated` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltilti2toolprox__uix` (`toolproxykey`), KEY `[[dbprefix]]enroltilti2toolprox_c_ix` (`consumerid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='A tool proxy between moodle and a consumer';
-- -- Table structure for table `[[dbprefix]]enrol_lti_lti2_user_result` --
CREATE TABLE `[[dbprefix]]enrol_lti_lti2_user_result` ( `id` bigint NOT NULL AUTO_INCREMENT, `resourcelinkid` bigint NOT NULL, `ltiuserkey` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `ltiresultsourcedid` varchar(1024) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `created` bigint NOT NULL, `updated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]enroltilti2userresu_r_ix` (`resourcelinkid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Results for each user for each resource link';
-- -- Table structure for table `[[dbprefix]]enrol_lti_resource_link` --
CREATE TABLE `[[dbprefix]]enrol_lti_resource_link` ( `id` bigint NOT NULL AUTO_INCREMENT, `resourcelinkid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `ltideploymentid` bigint NOT NULL, `resourceid` bigint NOT NULL, `lticontextid` bigint DEFAULT NULL, `lineitemsservice` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `lineitemservice` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `lineitemscope` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `resultscope` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `scorescope` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `contextmembershipsurl` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `nrpsserviceversions` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltiresolink_resl_uix` (`resourcelinkid`,`ltideploymentid`), KEY `[[dbprefix]]enroltiresolink_lti_ix` (`ltideploymentid`), KEY `[[dbprefix]]enroltiresolink_lti2_ix` (`lticontextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each row represents a resource link for a platform and deplo';
-- -- Table structure for table `[[dbprefix]]enrol_lti_tools` --
CREATE TABLE `[[dbprefix]]enrol_lti_tools` ( `id` bigint NOT NULL AUTO_INCREMENT, `enrolid` bigint NOT NULL, `contextid` bigint NOT NULL, `ltiversion` varchar(15) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'LTI-1p3', `institution` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `lang` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'en', `timezone` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '99', `maxenrolled` bigint NOT NULL DEFAULT '0', `maildisplay` tinyint NOT NULL DEFAULT '2', `city` varchar(120) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `country` varchar(2) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `gradesync` tinyint(1) NOT NULL DEFAULT '0', `gradesynccompletion` tinyint(1) NOT NULL DEFAULT '0', `membersync` tinyint(1) NOT NULL DEFAULT '0', `membersyncmode` tinyint(1) NOT NULL DEFAULT '0', `roleinstructor` bigint NOT NULL, `rolelearner` bigint NOT NULL, `secret` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `uuid` varchar(36) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `provisioningmodelearner` tinyint DEFAULT NULL, `provisioningmodeinstructor` tinyint DEFAULT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]enroltitool_uui_uix` (`uuid`), KEY `[[dbprefix]]enroltitool_enr_ix` (`enrolid`), KEY `[[dbprefix]]enroltitool_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='List of tools provided to the remote system';
-- -- Table structure for table `[[dbprefix]]enrol_paypal` --
CREATE TABLE `[[dbprefix]]enrol_paypal` ( `id` bigint NOT NULL AUTO_INCREMENT, `business` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `receiver_email` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `receiver_id` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `item_name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `courseid` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', `instanceid` bigint NOT NULL DEFAULT '0', `memo` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `tax` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `option_name1` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `option_selection1_x` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `option_name2` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `option_selection2_x` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `payment_status` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `pending_reason` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `reason_code` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `txn_id` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `parent_txn_id` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `payment_type` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timeupdated` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]enropayp_bus_ix` (`business`), KEY `[[dbprefix]]enropayp_rec_ix` (`receiver_email`), KEY `[[dbprefix]]enropayp_cou_ix` (`courseid`), KEY `[[dbprefix]]enropayp_use_ix` (`userid`), KEY `[[dbprefix]]enropayp_ins_ix` (`instanceid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Holds all known information about PayPal transactions';
-- -- Table structure for table `[[dbprefix]]events_handlers` --
CREATE TABLE `[[dbprefix]]events_handlers` ( `id` bigint NOT NULL AUTO_INCREMENT, `eventname` varchar(166) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `component` varchar(166) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `handlerfile` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `handlerfunction` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `schedule` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `status` bigint NOT NULL DEFAULT '0', `internal` tinyint NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]evenhand_evecom_uix` (`eventname`,`component`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table is for storing which components requests what typ';
-- -- Table structure for table `[[dbprefix]]events_queue` --
CREATE TABLE `[[dbprefix]]events_queue` ( `id` bigint NOT NULL AUTO_INCREMENT, `eventdata` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `stackdump` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `userid` bigint DEFAULT NULL, `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]evenqueu_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table is for storing queued events. It stores only one ';
-- -- Table structure for table `[[dbprefix]]events_queue_handlers` --
CREATE TABLE `[[dbprefix]]events_queue_handlers` ( `id` bigint NOT NULL AUTO_INCREMENT, `queuedeventid` bigint NOT NULL, `handlerid` bigint NOT NULL, `status` bigint DEFAULT NULL, `errormessage` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]evenqueuhand_que_ix` (`queuedeventid`), KEY `[[dbprefix]]evenqueuhand_han_ix` (`handlerid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This is the list of queued handlers for processing. The even';
-- -- Table structure for table `[[dbprefix]]external_functions` --
CREATE TABLE `[[dbprefix]]external_functions` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(200) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `classname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `methodname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `classpath` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `component` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `capabilities` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `services` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]extefunc_nam_uix` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='list of all external functions' AUTO_INCREMENT=740 ;
-- -- Dumping data for table `[[dbprefix]]external_functions` --
-- -- Table structure for table `[[dbprefix]]external_services_functions` --
CREATE TABLE `[[dbprefix]]external_services_functions` ( `id` bigint NOT NULL AUTO_INCREMENT, `externalserviceid` bigint NOT NULL, `functionname` varchar(200) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]exteservfunc_ext_ix` (`externalserviceid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='lists functions available in each service group' AUTO_INCREMENT=429 ;
-- -- Dumping data for table `[[dbprefix]]external_services_functions` --
-- -- Table structure for table `[[dbprefix]]feedback_item` --
CREATE TABLE `[[dbprefix]]feedback_item` ( `id` bigint NOT NULL AUTO_INCREMENT, `feedback` bigint NOT NULL DEFAULT '0', `template` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `label` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `presentation` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `typ` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `hasvalue` tinyint(1) NOT NULL DEFAULT '0', `position` smallint NOT NULL DEFAULT '0', `required` tinyint(1) NOT NULL DEFAULT '0', `dependitem` bigint NOT NULL DEFAULT '0', `dependvalue` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `options` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]feeditem_fee_ix` (`feedback`), KEY `[[dbprefix]]feeditem_tem_ix` (`template`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='feedback_items';
-- -- Table structure for table `[[dbprefix]]filter_active` --
CREATE TABLE `[[dbprefix]]filter_active` ( `id` bigint NOT NULL AUTO_INCREMENT, `filter` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `contextid` bigint NOT NULL, `active` smallint NOT NULL, `sortorder` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]filtacti_confil_uix` (`contextid`,`filter`), KEY `[[dbprefix]]filtacti_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores information about which filters are active in which c' AUTO_INCREMENT=7 ;
-- -- Dumping data for table `[[dbprefix]]filter_active` --
-- -- Table structure for table `[[dbprefix]]glossary_formats` --
CREATE TABLE `[[dbprefix]]glossary_formats` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `popupformatname` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `visible` tinyint NOT NULL DEFAULT '1', `showgroup` tinyint NOT NULL DEFAULT '1', `showtabs` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `defaultmode` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `defaulthook` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sortkey` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sortorder` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Setting of the display formats' AUTO_INCREMENT=8 ;
-- -- Dumping data for table `[[dbprefix]]glossary_formats` --
-- -- Table structure for table `[[dbprefix]]gradingform_guide_fillings` --
CREATE TABLE `[[dbprefix]]gradingform_guide_fillings` ( `id` bigint NOT NULL AUTO_INCREMENT, `instanceid` bigint NOT NULL, `criterionid` bigint NOT NULL, `remark` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `remarkformat` tinyint DEFAULT NULL, `score` decimal(10,5) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]gradguidfill_inscri_uix` (`instanceid`,`criterionid`), KEY `[[dbprefix]]gradguidfill_ins_ix` (`instanceid`), KEY `[[dbprefix]]gradguidfill_cri_ix` (`criterionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the data of how the guide is filled by a particular r';
-- -- Table structure for table `[[dbprefix]]groupings_groups` --
CREATE TABLE `[[dbprefix]]groupings_groups` ( `id` bigint NOT NULL AUTO_INCREMENT, `groupingid` bigint NOT NULL DEFAULT '0', `groupid` bigint NOT NULL DEFAULT '0', `timeadded` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]grougrou_gro_ix` (`groupingid`), KEY `[[dbprefix]]grougrou_gro2_ix` (`groupid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Link a grouping to a group (note, groups can be in multiple ';
-- -- Table structure for table `[[dbprefix]]h5p_contents_libraries` --
CREATE TABLE `[[dbprefix]]h5p_contents_libraries` ( `id` bigint NOT NULL AUTO_INCREMENT, `h5pid` bigint NOT NULL, `libraryid` bigint NOT NULL, `dependencytype` varchar(10) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `dropcss` tinyint(1) NOT NULL, `weight` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]h5pcontlibr_h5p_ix` (`h5pid`), KEY `[[dbprefix]]h5pcontlibr_lib_ix` (`libraryid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Store which library is used in which content.';
-- -- Table structure for table `[[dbprefix]]h5p_libraries` --
CREATE TABLE `[[dbprefix]]h5p_libraries` ( `id` bigint NOT NULL AUTO_INCREMENT, `machinename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `title` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `majorversion` smallint NOT NULL, `minorversion` smallint NOT NULL, `patchversion` smallint NOT NULL, `runnable` tinyint(1) NOT NULL, `fullscreen` tinyint(1) NOT NULL DEFAULT '0', `embedtypes` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `preloadedjs` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `preloadedcss` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `droplibrarycss` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `semantics` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `addto` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `coremajor` smallint DEFAULT NULL, `coreminor` smallint DEFAULT NULL, `metadatasettings` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `tutorial` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `example` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `enabled` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`), KEY `[[dbprefix]]h5plibr_macmajminpatr_ix` (`machinename`,`majorversion`,`minorversion`,`patchversion`,`runnable`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores information about libraries used by H5P content.';
-- -- Table structure for table `[[dbprefix]]infected_files` --
CREATE TABLE `[[dbprefix]]infected_files` ( `id` bigint NOT NULL AUTO_INCREMENT, `filename` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `quarantinedfile` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `userid` bigint NOT NULL, `reason` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timecreated` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]infefile_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Table to store infected file details.';
-- -- Table structure for table `[[dbprefix]]log` --
CREATE TABLE `[[dbprefix]]log` ( `id` bigint NOT NULL AUTO_INCREMENT, `time` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', `ip` varchar(45) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `course` bigint NOT NULL DEFAULT '0', `module` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `cmid` bigint NOT NULL DEFAULT '0', `action` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `url` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `info` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]log_coumodact_ix` (`course`,`module`,`action`), KEY `[[dbprefix]]log_tim_ix` (`time`), KEY `[[dbprefix]]log_act_ix` (`action`), KEY `[[dbprefix]]log_usecou_ix` (`userid`,`course`), KEY `[[dbprefix]]log_cmi_ix` (`cmid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Every action is logged as far as possible';
-- -- Table structure for table `[[dbprefix]]log_display` --
CREATE TABLE `[[dbprefix]]log_display` ( `id` bigint NOT NULL AUTO_INCREMENT, `module` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `action` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `mtable` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `field` varchar(200) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `component` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]logdisp_modact_uix` (`module`,`action`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='For a particular module/action, specifies a moodle table/fie' AUTO_INCREMENT=196 ;
-- -- Dumping data for table `[[dbprefix]]log_display` --
-- -- Table structure for table `[[dbprefix]]log_queries` --
CREATE TABLE `[[dbprefix]]log_queries` ( `id` bigint NOT NULL AUTO_INCREMENT, `qtype` mediumint NOT NULL, `sqltext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `sqlparams` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `error` mediumint NOT NULL DEFAULT '0', `info` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `backtrace` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `exectime` decimal(10,5) NOT NULL, `timelogged` bigint NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Logged database queries.';
-- -- Table structure for table `[[dbprefix]]lti_tool_proxies` --
CREATE TABLE `[[dbprefix]]lti_tool_proxies` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'Tool Provider', `regurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `state` tinyint NOT NULL DEFAULT '1', `guid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `secret` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `vendorcode` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `capabilityoffered` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `serviceoffered` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `toolproxy` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `createdby` bigint NOT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]ltitoolprox_gui_uix` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='LTI tool proxy registrations' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]lti_types` --
CREATE TABLE `[[dbprefix]]lti_types` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'basiclti Activity', `baseurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `tooldomain` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `state` tinyint NOT NULL DEFAULT '2', `course` bigint NOT NULL, `coursevisible` tinyint(1) NOT NULL DEFAULT '0', `ltiversion` varchar(10) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `clientid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `toolproxyid` bigint DEFAULT NULL, `enabledcapability` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `parameter` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `icon` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `secureicon` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `createdby` bigint NOT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]ltitype_cli_uix` (`clientid`), KEY `[[dbprefix]]ltitype_cou_ix` (`course`), KEY `[[dbprefix]]ltitype_too_ix` (`tooldomain`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Basic LTI pre-configured activities' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]messageinbound_messagelist` --
CREATE TABLE `[[dbprefix]]messageinbound_messagelist` ( `id` bigint NOT NULL AUTO_INCREMENT, `messageid` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `userid` bigint NOT NULL, `address` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]messmess_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='A list of message IDs for existing replies';
-- -- Table structure for table `[[dbprefix]]mnetservice_enrol_courses` --
CREATE TABLE `[[dbprefix]]mnetservice_enrol_courses` ( `id` bigint NOT NULL AUTO_INCREMENT, `hostid` bigint NOT NULL, `remoteid` bigint NOT NULL, `categoryid` bigint NOT NULL, `categoryname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sortorder` bigint NOT NULL DEFAULT '0', `fullname` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `shortname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `idnumber` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `summary` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `summaryformat` smallint DEFAULT '0', `startdate` bigint NOT NULL, `roleid` bigint NOT NULL, `rolename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]mnetenrocour_hosrem_uix` (`hostid`,`remoteid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Caches the information fetched via XML-RPC about courses on ';
-- -- Table structure for table `[[dbprefix]]mnetservice_enrol_enrolments` --
CREATE TABLE `[[dbprefix]]mnetservice_enrol_enrolments` ( `id` bigint NOT NULL AUTO_INCREMENT, `hostid` bigint NOT NULL, `userid` bigint NOT NULL, `remotecourseid` bigint NOT NULL, `rolename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `enroltime` bigint NOT NULL DEFAULT '0', `enroltype` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]mnetenroenro_use_ix` (`userid`), KEY `[[dbprefix]]mnetenroenro_hos_ix` (`hostid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Caches the information about enrolments of our local users i';
-- -- Table structure for table `[[dbprefix]]mnet_application` --
CREATE TABLE `[[dbprefix]]mnet_application` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `display_name` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `xmlrpc_server_url` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sso_land_url` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sso_jump_url` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Information about applications on remote hosts' AUTO_INCREMENT=3 ;
-- -- Dumping data for table `[[dbprefix]]mnet_application` --
-- -- Table structure for table `[[dbprefix]]mnet_host` --
CREATE TABLE `[[dbprefix]]mnet_host` ( `id` bigint NOT NULL AUTO_INCREMENT, `deleted` tinyint(1) NOT NULL DEFAULT '0', `wwwroot` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `ip_address` varchar(45) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `name` varchar(80) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `public_key` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `public_key_expires` bigint NOT NULL DEFAULT '0', `transport` tinyint NOT NULL DEFAULT '0', `portno` mediumint NOT NULL DEFAULT '0', `last_connect_time` bigint NOT NULL DEFAULT '0', `last_log_id` bigint NOT NULL DEFAULT '0', `force_theme` tinyint(1) NOT NULL DEFAULT '0', `theme` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `applicationid` bigint NOT NULL DEFAULT '1', `sslverification` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]mnethost_las_ix` (`last_log_id`), KEY `[[dbprefix]]mnethost_app_ix` (`applicationid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Information about the local and remote hosts for RPC' AUTO_INCREMENT=3 ;
-- -- Dumping data for table `[[dbprefix]]mnet_host` --
-- -- Table structure for table `[[dbprefix]]mnet_log` --
CREATE TABLE `[[dbprefix]]mnet_log` ( `id` bigint NOT NULL AUTO_INCREMENT, `hostid` bigint NOT NULL DEFAULT '0', `remoteid` bigint NOT NULL DEFAULT '0', `time` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', `ip` varchar(45) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `course` bigint NOT NULL DEFAULT '0', `coursename` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `module` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `cmid` bigint NOT NULL DEFAULT '0', `action` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `url` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `info` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]mnetlog_hosusecou_ix` (`hostid`,`userid`,`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Store session data from users migrating to other sites';
-- -- Table structure for table `[[dbprefix]]mnet_remote_rpc` --
CREATE TABLE `[[dbprefix]]mnet_remote_rpc` ( `id` bigint NOT NULL AUTO_INCREMENT, `functionname` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `xmlrpcpath` varchar(80) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `plugintype` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `pluginname` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `enabled` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table describes functions that might be called remotely' AUTO_INCREMENT=17 ;
-- -- Dumping data for table `[[dbprefix]]mnet_remote_rpc` --
-- -- Table structure for table `[[dbprefix]]mnet_rpc` --
CREATE TABLE `[[dbprefix]]mnet_rpc` ( `id` bigint NOT NULL AUTO_INCREMENT, `functionname` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `xmlrpcpath` varchar(80) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `plugintype` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `pluginname` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `enabled` tinyint(1) NOT NULL DEFAULT '0', `help` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `profile` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `filename` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `classname` varchar(150) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `static` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]mnetrpc_enaxml_ix` (`enabled`,`xmlrpcpath`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Functions or methods that we may publish or subscribe to' AUTO_INCREMENT=16 ;
-- -- Dumping data for table `[[dbprefix]]mnet_rpc` --
INSERT INTO `[[dbprefix]]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 `[[dbprefix]]mnet_service` --
CREATE TABLE `[[dbprefix]]mnet_service` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `apiversion` varchar(10) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `offer` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='A service is a group of functions' AUTO_INCREMENT=5 ;
-- -- Dumping data for table `[[dbprefix]]mnet_service` --
-- -- Table structure for table `[[dbprefix]]mnet_session` --
CREATE TABLE `[[dbprefix]]mnet_session` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL DEFAULT '0', `username` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `token` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `mnethostid` bigint NOT NULL DEFAULT '0', `useragent` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `confirm_timeout` bigint NOT NULL DEFAULT '0', `session_id` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `expires` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]mnetsess_tok_uix` (`token`), KEY `[[dbprefix]]mnetsess_use_ix` (`userid`), KEY `[[dbprefix]]mnetsess_mne_ix` (`mnethostid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Store session data from users migrating to other sites';
-- -- Table structure for table `[[dbprefix]]oauth2_access_token` --
CREATE TABLE `[[dbprefix]]oauth2_access_token` ( `id` bigint NOT NULL AUTO_INCREMENT, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `usermodified` bigint NOT NULL, `issuerid` bigint NOT NULL, `token` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `expires` bigint NOT NULL, `scope` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]oautaccetoke_iss_uix` (`issuerid`), KEY `[[dbprefix]]oautaccetoke_use_ix` (`usermodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores access tokens for system accounts in order to be able';
-- -- Table structure for table `[[dbprefix]]oauth2_endpoint` --
CREATE TABLE `[[dbprefix]]oauth2_endpoint` ( `id` bigint NOT NULL AUTO_INCREMENT, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `usermodified` bigint NOT NULL, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `url` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `issuerid` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]oautendp_iss_ix` (`issuerid`), KEY `[[dbprefix]]oautendp_use_ix` (`usermodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Describes the named endpoint for an oauth2 service.';
-- -- Table structure for table `[[dbprefix]]oauth2_issuer` --
CREATE TABLE `[[dbprefix]]oauth2_issuer` ( `id` bigint NOT NULL AUTO_INCREMENT, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `usermodified` bigint NOT NULL, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `image` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `baseurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `clientid` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `clientsecret` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `loginscopes` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `loginscopesoffline` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `loginparams` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `loginparamsoffline` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `alloweddomains` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `scopessupported` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `enabled` tinyint NOT NULL DEFAULT '1', `showonloginpage` tinyint NOT NULL DEFAULT '1', `basicauth` tinyint NOT NULL DEFAULT '0', `sortorder` bigint NOT NULL, `requireconfirmation` tinyint NOT NULL DEFAULT '1', `servicetype` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `loginpagename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Details for an oauth 2 connect identity issuer.' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]oauth2_refresh_token` --
CREATE TABLE `[[dbprefix]]oauth2_refresh_token` ( `id` bigint NOT NULL AUTO_INCREMENT, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `userid` bigint NOT NULL, `issuerid` bigint NOT NULL, `token` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `scopehash` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]oautrefrtoke_useisss_uix` (`userid`,`issuerid`,`scopehash`), KEY `[[dbprefix]]oautrefrtoke_iss_ix` (`issuerid`), KEY `[[dbprefix]]oautrefrtoke_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores refresh tokens which can be exchanged for access toke';
-- -- Table structure for table `[[dbprefix]]oauth2_system_account` --
CREATE TABLE `[[dbprefix]]oauth2_system_account` ( `id` bigint NOT NULL AUTO_INCREMENT, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `usermodified` bigint NOT NULL, `issuerid` bigint NOT NULL, `refreshtoken` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `grantedscopes` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `email` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `username` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]oautsystacco_iss_uix` (`issuerid`), KEY `[[dbprefix]]oautsystacco_use_ix` (`usermodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stored details used to get an access token as a system user ';
-- -- Table structure for table `[[dbprefix]]page` --
CREATE TABLE `[[dbprefix]]page` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `introformat` smallint NOT NULL DEFAULT '0', `content` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `contentformat` smallint NOT NULL DEFAULT '0', `legacyfiles` smallint NOT NULL DEFAULT '0', `legacyfileslast` bigint DEFAULT NULL, `display` smallint NOT NULL DEFAULT '0', `displayoptions` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `revision` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]page_cou_ix` (`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each record is one page and its config data';
-- -- Table structure for table `[[dbprefix]]paygw_paypal` --
CREATE TABLE `[[dbprefix]]paygw_paypal` ( `id` bigint NOT NULL AUTO_INCREMENT, `paymentid` bigint NOT NULL, `pp_orderid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'The ID of the order in PayPal', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]paygpayp_pay_uix` (`paymentid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores PayPal related information';
-- -- Table structure for table `[[dbprefix]]payments` --
CREATE TABLE `[[dbprefix]]payments` ( `id` bigint NOT NULL AUTO_INCREMENT, `component` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `paymentarea` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `itemid` bigint NOT NULL, `userid` bigint NOT NULL, `amount` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `currency` varchar(3) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `accountid` bigint NOT NULL, `gateway` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]paym_gat_ix` (`gateway`), KEY `[[dbprefix]]paym_compayite_ix` (`component`,`paymentarea`,`itemid`), KEY `[[dbprefix]]paym_use_ix` (`userid`), KEY `[[dbprefix]]paym_acc_ix` (`accountid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores information about payments';
-- -- Table structure for table `[[dbprefix]]payment_gateways` --
CREATE TABLE `[[dbprefix]]payment_gateways` ( `id` bigint NOT NULL AUTO_INCREMENT, `accountid` bigint NOT NULL, `gateway` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `enabled` tinyint(1) NOT NULL DEFAULT '1', `config` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]paymgate_acc_ix` (`accountid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Configuration for one gateway for one payment account';
-- -- Table structure for table `[[dbprefix]]portfolio_log` --
CREATE TABLE `[[dbprefix]]portfolio_log` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL, `time` bigint NOT NULL, `portfolio` bigint NOT NULL, `caller_class` varchar(150) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `caller_file` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `caller_component` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `caller_sha1` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `tempdataid` bigint NOT NULL DEFAULT '0', `returnurl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `continueurl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]portlog_use_ix` (`userid`), KEY `[[dbprefix]]portlog_por_ix` (`portfolio`), KEY `[[dbprefix]]portlog_tem_ix` (`tempdataid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='log of portfolio transfers (used to later check for duplicat';
-- -- Table structure for table `[[dbprefix]]portfolio_tempdata` --
CREATE TABLE `[[dbprefix]]portfolio_tempdata` ( `id` bigint NOT NULL AUTO_INCREMENT, `data` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `expirytime` bigint NOT NULL, `userid` bigint NOT NULL, `instance` bigint DEFAULT '0', `queued` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]porttemp_use_ix` (`userid`), KEY `[[dbprefix]]porttemp_ins_ix` (`instance`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='stores temporary data for portfolio exports. the id of this ';
-- -- Table structure for table `[[dbprefix]]profiling` --
CREATE TABLE `[[dbprefix]]profiling` ( `id` bigint NOT NULL AUTO_INCREMENT, `runid` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `url` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `data` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `totalexecutiontime` bigint NOT NULL, `totalcputime` bigint NOT NULL, `totalcalls` bigint NOT NULL, `totalmemory` bigint NOT NULL, `runreference` tinyint NOT NULL DEFAULT '0', `runcomment` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]prof_run_uix` (`runid`), KEY `[[dbprefix]]prof_urlrun_ix` (`url`,`runreference`), KEY `[[dbprefix]]prof_timrun_ix` (`timecreated`,`runreference`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the results of all the profiling runs';
-- -- Table structure for table `[[dbprefix]]qtype_ddimageortext` --
CREATE TABLE `[[dbprefix]]qtype_ddimageortext` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `shuffleanswers` smallint NOT NULL DEFAULT '1', `correctfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `correctfeedbackformat` tinyint NOT NULL DEFAULT '0', `partiallycorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `partiallycorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `incorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `incorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `shownumcorrect` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]qtypddim_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines drag and drop (text or images onto a background imag';
-- -- Table structure for table `[[dbprefix]]qtype_ddimageortext_drags` --
CREATE TABLE `[[dbprefix]]qtype_ddimageortext_drags` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `no` bigint NOT NULL DEFAULT '0', `draggroup` bigint NOT NULL DEFAULT '0', `infinite` smallint NOT NULL DEFAULT '0', `label` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]qtypddimdrag_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Images to drag. Actual file names are not stored here we use';
-- -- Table structure for table `[[dbprefix]]qtype_ddmarker` --
CREATE TABLE `[[dbprefix]]qtype_ddmarker` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `shuffleanswers` smallint NOT NULL DEFAULT '1', `correctfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `correctfeedbackformat` tinyint NOT NULL DEFAULT '0', `partiallycorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `partiallycorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `incorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `incorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `shownumcorrect` tinyint NOT NULL DEFAULT '0', `showmisplaced` smallint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]qtypddma_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines drag and drop (text or images onto a background imag';
-- -- Table structure for table `[[dbprefix]]qtype_match_options` --
CREATE TABLE `[[dbprefix]]qtype_match_options` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `shuffleanswers` smallint NOT NULL DEFAULT '1', `correctfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `correctfeedbackformat` tinyint NOT NULL DEFAULT '0', `partiallycorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `partiallycorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `incorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `incorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `shownumcorrect` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]qtypmatcopti_que_uix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines the question-type specific options for matching ques';
-- -- Table structure for table `[[dbprefix]]qtype_match_subquestions` --
CREATE TABLE `[[dbprefix]]qtype_match_subquestions` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `questiontext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `questiontextformat` tinyint NOT NULL DEFAULT '0', `answertext` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]qtypmatcsubq_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The subquestions that make up a matching question';
-- -- Table structure for table `[[dbprefix]]qtype_randomsamatch_options` --
CREATE TABLE `[[dbprefix]]qtype_randomsamatch_options` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `choose` bigint NOT NULL DEFAULT '4', `subcats` tinyint NOT NULL DEFAULT '1', `correctfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `correctfeedbackformat` tinyint NOT NULL DEFAULT '0', `partiallycorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `partiallycorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `incorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `incorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `shownumcorrect` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]qtyprandopti_que_uix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Info about a random short-answer matching question';
-- -- Table structure for table `[[dbprefix]]question` --
CREATE TABLE `[[dbprefix]]question` ( `id` bigint NOT NULL AUTO_INCREMENT, `parent` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `questiontext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `questiontextformat` tinyint NOT NULL DEFAULT '0', `generalfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `generalfeedbackformat` tinyint 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) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `length` bigint NOT NULL DEFAULT '1', `stamp` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', `createdby` bigint DEFAULT NULL, `modifiedby` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]ques_qty_ix` (`qtype`), KEY `[[dbprefix]]ques_par_ix` (`parent`), KEY `[[dbprefix]]ques_cre_ix` (`createdby`), KEY `[[dbprefix]]ques_mod_ix` (`modifiedby`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table stores the definition of one version of a questio' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]question_attempts` --
CREATE TABLE `[[dbprefix]]question_attempts` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionusageid` bigint NOT NULL, `slot` bigint NOT NULL, `behaviour` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `questionid` bigint NOT NULL, `variant` bigint 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 CHARACTER SET [[utf8]] COLLATE [[collate]], `rightanswer` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `responsesummary` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]quesatte_queslo_uix` (`questionusageid`,`slot`), KEY `[[dbprefix]]quesatte_beh_ix` (`behaviour`), KEY `[[dbprefix]]quesatte_que_ix` (`questionid`), KEY `[[dbprefix]]quesatte_que2_ix` (`questionusageid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each row here corresponds to an attempt at one question, as ';
-- -- Table structure for table `[[dbprefix]]question_attempt_steps` --
CREATE TABLE `[[dbprefix]]question_attempt_steps` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionattemptid` bigint NOT NULL, `sequencenumber` bigint NOT NULL, `state` varchar(13) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `fraction` decimal(12,7) DEFAULT NULL, `timecreated` bigint NOT NULL, `userid` bigint DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]quesattestep_queseq_uix` (`questionattemptid`,`sequencenumber`), KEY `[[dbprefix]]quesattestep_que_ix` (`questionattemptid`), KEY `[[dbprefix]]quesattestep_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores one step in in a question attempt. As well as the dat';
-- -- Table structure for table `[[dbprefix]]question_attempt_step_data` --
CREATE TABLE `[[dbprefix]]question_attempt_step_data` ( `id` bigint NOT NULL AUTO_INCREMENT, `attemptstepid` bigint NOT NULL, `name` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `value` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`), KEY `[[dbprefix]]quesattestepdata_att_ix` (`attemptstepid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each question_attempt_step has an associative array of the d';
-- -- Table structure for table `[[dbprefix]]question_ddwtos` --
CREATE TABLE `[[dbprefix]]question_ddwtos` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL DEFAULT '0', `shuffleanswers` smallint NOT NULL DEFAULT '1', `correctfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `correctfeedbackformat` tinyint NOT NULL DEFAULT '0', `partiallycorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `partiallycorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `incorrectfeedback` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `incorrectfeedbackformat` tinyint NOT NULL DEFAULT '0', `shownumcorrect` tinyint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]quesddwt_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines drag and drop (words into sentences) questions';
-- -- Table structure for table `[[dbprefix]]question_hints` --
CREATE TABLE `[[dbprefix]]question_hints` ( `id` bigint NOT NULL AUTO_INCREMENT, `questionid` bigint NOT NULL, `hint` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `hintformat` smallint NOT NULL DEFAULT '0', `shownumcorrect` tinyint(1) DEFAULT NULL, `clearwrong` tinyint(1) DEFAULT NULL, `options` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]queshint_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the the part of the question definition that gives di';
-- -- Table structure for table `[[dbprefix]]question_response_analysis` --
CREATE TABLE `[[dbprefix]]question_response_analysis` ( `id` bigint NOT NULL AUTO_INCREMENT, `hashcode` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `whichtries` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timemodified` bigint NOT NULL, `questionid` bigint NOT NULL, `variant` bigint DEFAULT NULL, `subqid` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `aid` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `response` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `credit` decimal(15,5) NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]quesrespanal_que_ix` (`questionid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Analysis of student responses given to questions.';
-- -- Table structure for table `[[dbprefix]]question_response_count` --
CREATE TABLE `[[dbprefix]]question_response_count` ( `id` bigint NOT NULL AUTO_INCREMENT, `analysisid` bigint NOT NULL, `try` bigint NOT NULL, `rcount` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]quesrespcoun_ana_ix` (`analysisid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Count for each responses for each try at a question.';
-- -- Table structure for table `[[dbprefix]]question_usages` --
CREATE TABLE `[[dbprefix]]question_usages` ( `id` bigint NOT NULL AUTO_INCREMENT, `contextid` bigint NOT NULL, `component` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `preferredbehaviour` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `[[dbprefix]]quesusag_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table''s main purpose it to assign a unique id to each a';
-- -- Table structure for table `[[dbprefix]]quiz_feedback` --
CREATE TABLE `[[dbprefix]]quiz_feedback` ( `id` bigint NOT NULL AUTO_INCREMENT, `quizid` bigint NOT NULL DEFAULT '0', `feedbacktext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `feedbacktextformat` tinyint 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 `[[dbprefix]]quizfeed_qui_ix` (`quizid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Feedback given to students based on which grade band their o';
-- -- Table structure for table `[[dbprefix]]quiz_grades` --
CREATE TABLE `[[dbprefix]]quiz_grades` ( `id` bigint NOT NULL AUTO_INCREMENT, `quiz` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', `grade` decimal(10,5) NOT NULL DEFAULT '0.00000', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]quizgrad_use_ix` (`userid`), KEY `[[dbprefix]]quizgrad_qui_ix` (`quiz`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the overall grade for each user on the quiz, based on';
-- -- Table structure for table `[[dbprefix]]quiz_slots` --
CREATE TABLE `[[dbprefix]]quiz_slots` ( `id` bigint NOT NULL AUTO_INCREMENT, `slot` bigint NOT NULL, `quizid` bigint NOT NULL DEFAULT '0', `page` bigint NOT NULL, `displaynumber` varchar(16) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `requireprevious` smallint NOT NULL DEFAULT '0', `maxmark` decimal(12,7) NOT NULL DEFAULT '0.0000000', `quizgradeitemid` bigint DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]quizslot_quislo_uix` (`quizid`,`slot`), KEY `[[dbprefix]]quizslot_qui_ix` (`quizid`), KEY `[[dbprefix]]quizslot_qui2_ix` (`quizgradeitemid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Stores the question used in a quiz, with the order, and for ';
-- -- Table structure for table `[[dbprefix]]registration_hubs` --
CREATE TABLE `[[dbprefix]]registration_hubs` ( `id` bigint NOT NULL AUTO_INCREMENT, `token` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `hubname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `huburl` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `confirmed` tinyint(1) NOT NULL DEFAULT '0', `secret` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='hub where the site is registered on with their associated to' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]resource_old` --
CREATE TABLE `[[dbprefix]]resource_old` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `type` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `reference` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `introformat` smallint NOT NULL DEFAULT '0', `alltext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `popup` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `options` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timemodified` bigint NOT NULL DEFAULT '0', `oldid` bigint NOT NULL, `cmid` bigint DEFAULT NULL, `newmodule` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `newid` bigint DEFAULT NULL, `migrated` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]resoold_old_uix` (`oldid`), KEY `[[dbprefix]]resoold_cmi_ix` (`cmid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='backup of all old resource instances from 1.9';
-- -- Table structure for table `[[dbprefix]]scale` --
CREATE TABLE `[[dbprefix]]scale` ( `id` bigint NOT NULL AUTO_INCREMENT, `courseid` bigint NOT NULL DEFAULT '0', `userid` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `scale` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `descriptionformat` tinyint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]scal_cou_ix` (`courseid`), KEY `[[dbprefix]]scal_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines grading scales' AUTO_INCREMENT=3 ;
-- -- Dumping data for table `[[dbprefix]]scale` --
INSERT INTO `[[dbprefix]]scale` VALUES (1, 0, 0, 'Separate and Connected ways of knowing', 'Mostly separate knowing,Separate and connected,Mostly connected knowing', 'The scale based on the theory of separate and connected knowing. This theory describes two different ways that we can evaluate and learn about the things we see and hear.<ul><li><strong>Separate knowers</strong> remain as objective as possible without including feelings and emotions. In a discussion with other people, they like to defend their own ideas, using logic to find holes in opponent''s ideas.</li><li><strong>Connected knowers</strong> are more sensitive to other people. They are skilled at empathy and tend to listen and ask questions until they feel they can connect and "understand things from their point of view". They learn by trying to share the experiences that led to the knowledge they find in other people.</li></ul>', 0, [[timestamp]]), (2, 0, 0, 'Default competence scale', 'Not yet competent,Competent', 'A binary rating scale that provides no further information beyond whether someone has demonstrated proficiency or not.', 0, [[timestamp]]);
-- -- Table structure for table `[[dbprefix]]scorm_scoes` --
CREATE TABLE `[[dbprefix]]scorm_scoes` ( `id` bigint NOT NULL AUTO_INCREMENT, `scorm` bigint NOT NULL DEFAULT '0', `manifest` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `organization` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `parent` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `identifier` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `launch` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `scormtype` varchar(5) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `title` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `sortorder` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]scorscoe_sco_ix` (`scorm`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='each SCO part of the SCORM module';
-- -- Table structure for table `[[dbprefix]]scorm_scoes_data` --
CREATE TABLE `[[dbprefix]]scorm_scoes_data` ( `id` bigint NOT NULL AUTO_INCREMENT, `scoid` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `value` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]scorscoedata_sco_ix` (`scoid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Contains variable data get from packages';
-- -- Table structure for table `[[dbprefix]]search_index_requests` --
CREATE TABLE `[[dbprefix]]search_index_requests` ( `id` bigint NOT NULL AUTO_INCREMENT, `contextid` bigint NOT NULL, `searcharea` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timerequested` bigint NOT NULL, `partialarea` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `partialtime` bigint NOT NULL, `indexpriority` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]searinderequ_indtim_ix` (`indexpriority`,`timerequested`), KEY `[[dbprefix]]searinderequ_con_ix` (`contextid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Records requests for (re)indexing of specific contexts. Entr';
-- -- Table structure for table `[[dbprefix]]survey` --
CREATE TABLE `[[dbprefix]]survey` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `template` bigint NOT NULL DEFAULT '0', `days` mediumint NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `introformat` smallint NOT NULL DEFAULT '0', `questions` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `completionsubmit` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]surv_cou_ix` (`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Each record is one SURVEY module with its configuration' AUTO_INCREMENT=6 ;
-- -- Dumping data for table `[[dbprefix]]survey` --
-- -- Table structure for table `[[dbprefix]]survey_questions` --
CREATE TABLE `[[dbprefix]]survey_questions` ( `id` bigint NOT NULL AUTO_INCREMENT, `text` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `shorttext` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `multi` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `type` smallint NOT NULL DEFAULT '0', `options` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='the questions conforming one survey' AUTO_INCREMENT=74 ;
-- -- Dumping data for table `[[dbprefix]]survey_questions` --
-- -- Table structure for table `[[dbprefix]]tag_area` --
CREATE TABLE `[[dbprefix]]tag_area` ( `id` bigint NOT NULL AUTO_INCREMENT, `component` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `itemtype` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `enabled` tinyint(1) NOT NULL DEFAULT '1', `tagcollid` bigint NOT NULL, `callback` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `callbackfile` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `showstandard` tinyint(1) NOT NULL DEFAULT '0', `multiplecontexts` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]tagarea_comite_uix` (`component`,`itemtype`), KEY `[[dbprefix]]tagarea_tag_ix` (`tagcollid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Defines various tag areas, one area is identified by compone' AUTO_INCREMENT=14 ;
-- -- Dumping data for table `[[dbprefix]]tag_area` --
-- -- Table structure for table `[[dbprefix]]task_log` --
CREATE TABLE `[[dbprefix]]task_log` ( `id` bigint NOT NULL AUTO_INCREMENT, `type` smallint NOT NULL, `component` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `classname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `userid` bigint NOT NULL, `timestart` decimal(20,10) NOT NULL, `timeend` decimal(20,10) NOT NULL, `dbreads` bigint NOT NULL, `dbwrites` bigint NOT NULL, `result` tinyint NOT NULL, `output` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `hostname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `pid` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]tasklog_cla_ix` (`classname`), KEY `[[dbprefix]]tasklog_tim_ix` (`timestart`), KEY `[[dbprefix]]tasklog_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The log table for all tasks';
-- -- Table structure for table `[[dbprefix]]task_scheduled` --
CREATE TABLE `[[dbprefix]]task_scheduled` ( `id` bigint NOT NULL AUTO_INCREMENT, `component` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `classname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `lastruntime` bigint DEFAULT NULL, `nextruntime` bigint DEFAULT NULL, `minute` varchar(200) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `hour` varchar(70) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `day` varchar(90) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `month` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `dayofweek` varchar(25) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `faildelay` bigint DEFAULT NULL, `customised` tinyint NOT NULL DEFAULT '0', `disabled` tinyint(1) NOT NULL DEFAULT '0', `timestarted` bigint DEFAULT NULL, `hostname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `pid` bigint DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]tasksche_cla_uix` (`classname`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='List of scheduled tasks to be run by cron.' AUTO_INCREMENT=112 ;
-- -- Dumping data for table `[[dbprefix]]task_scheduled` --
-- -- Table structure for table `[[dbprefix]]tiny_autosave` --
CREATE TABLE `[[dbprefix]]tiny_autosave` ( `id` bigint NOT NULL AUTO_INCREMENT, `elementid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `contextid` bigint NOT NULL, `pagehash` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `userid` bigint NOT NULL, `drafttext` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `draftid` bigint DEFAULT NULL, `pageinstance` varchar(64) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]tinyauto_eleconusepa_uix` (`elementid`,`contextid`,`userid`,`pagehash`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The content of the textarea saved during autosave operations' AUTO_INCREMENT=2 ;
-- -- Table structure for table `[[dbprefix]]tool_brickfield_content` --
CREATE TABLE `[[dbprefix]]tool_brickfield_content` ( `id` bigint NOT NULL AUTO_INCREMENT, `areaid` bigint NOT NULL, `contenthash` varchar(40) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `iscurrent` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL, `timechecked` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]toolbriccont_sta_ix` (`status`), KEY `[[dbprefix]]toolbriccont_iscare_ix` (`iscurrent`,`areaid`), KEY `[[dbprefix]]toolbriccont_are_ix` (`areaid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Content of an area at a particular time (recognised by a has';
-- -- Table structure for table `[[dbprefix]]tool_customlang` --
CREATE TABLE `[[dbprefix]]tool_customlang` ( `id` bigint NOT NULL AUTO_INCREMENT, `lang` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `componentid` bigint NOT NULL, `stringid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `original` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `master` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `local` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timemodified` bigint NOT NULL, `timecustomized` bigint DEFAULT NULL, `outdated` smallint DEFAULT '0', `modified` smallint DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]toolcust_lancomstr_uix` (`lang`,`componentid`,`stringid`), KEY `[[dbprefix]]toolcust_com_ix` (`componentid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Contains the working checkout of all strings and their custo';
-- -- Table structure for table `[[dbprefix]]tool_customlang_components` --
CREATE TABLE `[[dbprefix]]tool_customlang_components` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `version` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Contains the list of all installed plugins that provide thei';
-- -- Table structure for table `[[dbprefix]]tool_dataprivacy_purpose` --
CREATE TABLE `[[dbprefix]]tool_dataprivacy_purpose` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `descriptionformat` tinyint(1) DEFAULT NULL, `lawfulbases` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `sensitivedatareasons` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `retentionperiod` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `protected` tinyint(1) DEFAULT NULL, `usermodified` bigint NOT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Data purposes';
-- -- Table structure for table `[[dbprefix]]tool_monitor_events` --
CREATE TABLE `[[dbprefix]]tool_monitor_events` ( `id` bigint NOT NULL AUTO_INCREMENT, `eventname` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `contextid` bigint NOT NULL, `contextlevel` bigint NOT NULL, `contextinstanceid` bigint NOT NULL, `link` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `courseid` bigint NOT NULL, `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]toolmonieven_cou_ix` (`courseid`), KEY `[[dbprefix]]toolmonieven_con_ix` (`contextid`), KEY `[[dbprefix]]toolmonieven_con2_ix` (`contextinstanceid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='A table that keeps a log of events related to subscriptions';
-- -- Table structure for table `[[dbprefix]]tool_monitor_rules` --
CREATE TABLE `[[dbprefix]]tool_monitor_rules` ( `id` bigint NOT NULL AUTO_INCREMENT, `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `descriptionformat` tinyint(1) NOT NULL, `name` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `userid` bigint NOT NULL, `courseid` bigint NOT NULL, `plugin` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `eventname` varchar(254) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `template` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `templateformat` tinyint(1) NOT NULL, `frequency` smallint NOT NULL, `timewindow` mediumint NOT NULL, `timemodified` bigint NOT NULL, `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]toolmonirule_couuse_ix` (`courseid`,`userid`), KEY `[[dbprefix]]toolmonirule_eve_ix` (`eventname`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Table to store rules';
-- -- Table structure for table `[[dbprefix]]tool_monitor_subscriptions` --
CREATE TABLE `[[dbprefix]]tool_monitor_subscriptions` ( `id` bigint NOT NULL AUTO_INCREMENT, `courseid` bigint NOT NULL, `ruleid` bigint NOT NULL, `cmid` bigint NOT NULL, `userid` bigint NOT NULL, `timecreated` bigint NOT NULL, `lastnotificationsent` bigint NOT NULL DEFAULT '0', `inactivedate` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]toolmonisubs_couuse_ix` (`courseid`,`userid`), KEY `[[dbprefix]]toolmonisubs_rul_ix` (`ruleid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Table to store user subscriptions to various rules';
-- -- Table structure for table `[[dbprefix]]tool_policy_versions` --
CREATE TABLE `[[dbprefix]]tool_policy_versions` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `type` smallint NOT NULL DEFAULT '0', `audience` smallint NOT NULL DEFAULT '0', `archived` smallint NOT NULL DEFAULT '0', `usermodified` bigint NOT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, `policyid` bigint NOT NULL, `agreementstyle` smallint NOT NULL DEFAULT '0', `optional` smallint NOT NULL DEFAULT '0', `revision` varchar(1333) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `summary` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `summaryformat` smallint NOT NULL, `content` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `contentformat` smallint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]toolpolivers_use_ix` (`usermodified`), KEY `[[dbprefix]]toolpolivers_pol_ix` (`policyid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Holds versions of the policy documents';
-- -- Table structure for table `[[dbprefix]]tool_recyclebin_category` --
CREATE TABLE `[[dbprefix]]tool_recyclebin_category` ( `id` bigint NOT NULL AUTO_INCREMENT, `categoryid` bigint NOT NULL, `shortname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `fullname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timecreated` bigint NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]toolrecycate_tim_ix` (`timecreated`), KEY `[[dbprefix]]toolrecycate_cat_ix` (`categoryid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='A list of items in the category recycle bin';
-- -- Table structure for table `[[dbprefix]]tool_usertours_steps` --
CREATE TABLE `[[dbprefix]]tool_usertours_steps` ( `id` bigint NOT NULL AUTO_INCREMENT, `tourid` bigint NOT NULL, `title` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `content` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `contentformat` smallint NOT NULL DEFAULT '0', `targettype` tinyint NOT NULL, `targetvalue` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `sortorder` bigint NOT NULL DEFAULT '0', `configdata` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]tooluserstep_tousor_ix` (`tourid`,`sortorder`), KEY `[[dbprefix]]tooluserstep_tou_ix` (`tourid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Steps in an tour' AUTO_INCREMENT=10 ;
-- -- Dumping data for table `[[dbprefix]]tool_usertours_steps` --
-- -- Table structure for table `[[dbprefix]]url` --
CREATE TABLE `[[dbprefix]]url` ( `id` bigint NOT NULL AUTO_INCREMENT, `course` bigint NOT NULL DEFAULT '0', `name` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `intro` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `introformat` smallint NOT NULL DEFAULT '0', `externalurl` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `display` smallint NOT NULL DEFAULT '0', `displayoptions` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `parameters` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timemodified` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `[[dbprefix]]url_cou_ix` (`course`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='each record is one url resource';
-- -- Table structure for table `[[dbprefix]]user` --
CREATE TABLE `[[dbprefix]]user` ( `id` bigint NOT NULL AUTO_INCREMENT, `auth` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] 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 NOT NULL DEFAULT '0', `username` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `password` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `idnumber` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `firstname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `lastname` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `email` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `emailstop` tinyint(1) NOT NULL DEFAULT '0', `phone1` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `phone2` varchar(20) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `institution` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `department` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `address` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `city` varchar(120) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `country` varchar(2) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `lang` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'en', `calendartype` varchar(30) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'gregorian', `theme` varchar(50) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `timezone` varchar(100) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '99', `firstaccess` bigint NOT NULL DEFAULT '0', `lastaccess` bigint NOT NULL DEFAULT '0', `lastlogin` bigint NOT NULL DEFAULT '0', `currentlogin` bigint NOT NULL DEFAULT '0', `lastip` varchar(45) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `secret` varchar(15) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `picture` bigint NOT NULL DEFAULT '0', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `descriptionformat` tinyint NOT NULL DEFAULT '1', `mailformat` tinyint(1) NOT NULL DEFAULT '1', `maildigest` tinyint(1) NOT NULL DEFAULT '0', `maildisplay` tinyint NOT NULL DEFAULT '2', `autosubscribe` tinyint(1) NOT NULL DEFAULT '1', `trackforums` tinyint(1) NOT NULL DEFAULT '0', `timecreated` bigint NOT NULL DEFAULT '0', `timemodified` bigint NOT NULL DEFAULT '0', `trustbitmask` bigint NOT NULL DEFAULT '0', `imagealt` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `lastnamephonetic` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `firstnamephonetic` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `middlename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `alternatename` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `moodlenetprofile` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]user_mneuse_uix` (`mnethostid`,`username`), KEY `[[dbprefix]]user_del_ix` (`deleted`), KEY `[[dbprefix]]user_con_ix` (`confirmed`), KEY `[[dbprefix]]user_fir_ix` (`firstname`), KEY `[[dbprefix]]user_las_ix` (`lastname`), KEY `[[dbprefix]]user_cit_ix` (`city`), KEY `[[dbprefix]]user_cou_ix` (`country`), KEY `[[dbprefix]]user_las2_ix` (`lastaccess`), KEY `[[dbprefix]]user_ema_ix` (`email`), KEY `[[dbprefix]]user_aut_ix` (`auth`), KEY `[[dbprefix]]user_idn_ix` (`idnumber`), KEY `[[dbprefix]]user_fir2_ix` (`firstnamephonetic`), KEY `[[dbprefix]]user_las3_ix` (`lastnamephonetic`), KEY `[[dbprefix]]user_mid_ix` (`middlename`), KEY `[[dbprefix]]user_alt_ix` (`alternatename`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='One record for each person' AUTO_INCREMENT=3 ;
-- -- Dumping data for table `[[dbprefix]]user` --
-- -- Table structure for table `[[dbprefix]]user_devices` --
CREATE TABLE `[[dbprefix]]user_devices` ( `id` bigint NOT NULL AUTO_INCREMENT, `userid` bigint NOT NULL DEFAULT '0', `appid` varchar(128) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `name` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `model` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `platform` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `version` varchar(32) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `pushid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `uuid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `publickey` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `timecreated` bigint NOT NULL, `timemodified` bigint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]userdevi_pususe_uix` (`pushid`,`userid`), KEY `[[dbprefix]]userdevi_uuiuse_ix` (`uuid`,`userid`), KEY `[[dbprefix]]userdevi_use_ix` (`userid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This table stores user''s mobile devices information in order';
-- -- Table structure for table `[[dbprefix]]user_info_field` --
CREATE TABLE `[[dbprefix]]user_info_field` ( `id` bigint NOT NULL AUTO_INCREMENT, `shortname` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT 'shortname', `name` longtext CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL, `datatype` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `description` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `descriptionformat` tinyint NOT NULL DEFAULT '0', `categoryid` bigint NOT NULL DEFAULT '0', `sortorder` bigint NOT NULL DEFAULT '0', `required` tinyint NOT NULL DEFAULT '0', `locked` tinyint NOT NULL DEFAULT '0', `visible` smallint NOT NULL DEFAULT '0', `forceunique` tinyint NOT NULL DEFAULT '0', `signup` tinyint NOT NULL DEFAULT '0', `defaultdata` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `defaultdataformat` tinyint NOT NULL DEFAULT '0', `param1` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param2` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param3` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param4` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `param5` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='Customisable user profile fields' AUTO_INCREMENT=1 ;
-- -- Table structure for table `[[dbprefix]]workshopform_numerrors_map` --
CREATE TABLE `[[dbprefix]]workshopform_numerrors_map` ( `id` bigint NOT NULL AUTO_INCREMENT, `workshopid` bigint NOT NULL, `nonegative` bigint NOT NULL, `grade` decimal(10,5) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `[[dbprefix]]worknumemap_wornon_uix` (`workshopid`,`nonegative`), KEY `[[dbprefix]]worknumemap_wor_ix` (`workshopid`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='This maps the number of errors to a percentual grade for sub';
-- -- Table structure for table `[[dbprefix]]xapi_states` --
CREATE TABLE `[[dbprefix]]xapi_states` ( `id` bigint NOT NULL AUTO_INCREMENT, `component` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `userid` bigint DEFAULT NULL, `itemid` bigint NOT NULL, `stateid` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] NOT NULL DEFAULT '', `statedata` longtext CHARACTER SET [[utf8]] COLLATE [[collate]], `registration` varchar(255) CHARACTER SET [[utf8]] COLLATE [[collate]] DEFAULT NULL, `timecreated` bigint NOT NULL, `timemodified` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `[[dbprefix]]xapistat_comite_ix` (`component`,`itemid`), KEY `[[dbprefix]]xapistat_use_ix` (`userid`), KEY `[[dbprefix]]xapistat_tim_ix` (`timemodified`) ) ENGINE=InnoDB DEFAULT CHARSET=[[utf8]] COLLATE=[[collate]] [[row_format]] COMMENT='The stored xAPI states';
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;