-- Table structure for table `mdl_context`
--

CREATE TABLE `mdl_context` (
  `id` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL DEFAULT '0',
  `instanceid` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `depth` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='one of these must be set';

--
-- Dumping data for table `mdl_context`
--

INSERT INTO `mdl_context` (`id`, `contextlevel`, `instanceid`, `path`, `depth`) VALUES
(1, 10, 0, '/1', 1),
(2, 50, 1, '/1/2', 2),
(3, 40, 1, '/1/3', 2),
(4, 30, 1, '/1/4', 2),
(5, 30, 2, '/1/5', 2),
(6, 80, 1, '/1/2/6', 3),
(7, 80, 2, '/1/2/7', 3),
(8, 80, 3, '/1/2/8', 3),
(9, 80, 4, '/1/9', 2),
(10, 80, 5, '/1/10', 2),
(11, 80, 6, '/1/11', 2),
(12, 80, 7, '/1/12', 2),
(13, 80, 8, '/1/13', 2),
(14, 80, 9, '/1/14', 2),
(15, 40, 2, '/1/15', 2),
(16, 40, 3, '/1/16', 2),
(17, 40, 4, '/1/17', 2),
(18, 40, 5, '/1/18', 2),
(19, 40, 6, '/1/19', 2),
(20, 50, 2, '/1/3/20', 3),
(21, 80, 10, '/1/3/20/21', 4),
(22, 80, 11, '/1/3/20/22', 4),
(23, 80, 12, '/1/3/20/23', 4),
(24, 80, 13, '/1/3/20/24', 4),
(25, 70, 1, '/1/3/20/25', 4),
(26, 70, 2, '/1/3/20/26', 4),
(27, 30, 3, '/1/27', 2),
(28, 30, 4, '/1/28', 2),
(29, 30, 5, '/1/29', 2),
(30, 30, 6, '/1/30', 2),
(31, 30, 7, '/1/31', 2),
(32, 30, 8, '/1/32', 2),
(33, 30, 9, '/1/33', 2),
(34, 30, 10, '/1/34', 2),
(35, 30, 11, '/1/35', 2),
(36, 30, 12, '/1/36', 2),
(37, 30, 13, '/1/37', 2),
(38, 30, 14, '/1/38', 2),
(39, 30, 15, '/1/39', 2),
(40, 30, 16, '/1/40', 2),
(41, 30, 17, '/1/41', 2),
(42, 30, 18, '/1/42', 2),
(43, 30, 19, '/1/43', 2),
(44, 30, 20, '/1/44', 2),
(45, 30, 21, '/1/45', 2),
(46, 30, 22, '/1/46', 2),
(47, 30, 23, '/1/47', 2),
(48, 30, 24, '/1/48', 2),
(49, 30, 25, '/1/49', 2),
(50, 30, 26, '/1/50', 2),
(51, 30, 27, '/1/51', 2),
(52, 30, 28, '/1/52', 2),
(53, 30, 29, '/1/53', 2),
(54, 30, 30, '/1/54', 2),
(55, 30, 31, '/1/55', 2),
(56, 30, 32, '/1/56', 2),
(57, 30, 33, '/1/57', 2),
(58, 30, 34, '/1/58', 2),
(59, 30, 35, '/1/59', 2),
(60, 30, 36, '/1/60', 2),
(61, 30, 37, '/1/61', 2),
(62, 30, 38, '/1/62', 2),
(63, 30, 39, '/1/63', 2),
(64, 30, 40, '/1/64', 2),
(65, 30, 41, '/1/65', 2),
(66, 30, 42, '/1/66', 2),
(67, 30, 43, '/1/67', 2),
(68, 30, 44, '/1/68', 2),
(69, 30, 45, '/1/69', 2),
(70, 30, 46, '/1/70', 2),
(71, 30, 47, '/1/71', 2),
(72, 30, 48, '/1/72', 2),
(73, 30, 49, '/1/73', 2),
(74, 30, 50, '/1/74', 2),
(75, 30, 51, '/1/75', 2),
(76, 30, 52, '/1/76', 2),
(77, 30, 53, '/1/77', 2),
(78, 30, 54, '/1/78', 2),
(79, 30, 55, '/1/79', 2),
(80, 30, 56, '/1/80', 2),
(81, 30, 57, '/1/81', 2),
(82, 30, 58, '/1/82', 2),
(83, 30, 59, '/1/83', 2),
(84, 30, 60, '/1/84', 2),
(85, 30, 61, '/1/85', 2),
(86, 30, 62, '/1/86', 2),
(87, 30, 63, '/1/87', 2),
(88, 30, 64, '/1/88', 2),
(89, 30, 65, '/1/89', 2),
(90, 30, 66, '/1/90', 2),
(91, 30, 67, '/1/91', 2),
(92, 30, 68, '/1/92', 2),
(93, 30, 69, '/1/93', 2),
(94, 50, 3, '/1/15/94', 3),
(95, 80, 14, '/1/15/94/95', 4),
(96, 80, 15, '/1/15/94/96', 4),
(97, 80, 16, '/1/15/94/97', 4),
(98, 80, 17, '/1/15/94/98', 4),
(99, 50, 4, '/1/15/99', 3),
(100, 80, 18, '/1/15/99/100', 4),
(101, 80, 19, '/1/15/99/101', 4),
(102, 80, 20, '/1/15/99/102', 4),
(103, 80, 21, '/1/15/99/103', 4),
(104, 50, 5, '/1/15/104', 3),
(105, 80, 22, '/1/15/104/105', 4),
(106, 80, 23, '/1/15/104/106', 4),
(107, 80, 24, '/1/15/104/107', 4),
(108, 80, 25, '/1/15/104/108', 4),
(109, 50, 6, '/1/16/109', 3),
(110, 80, 26, '/1/16/109/110', 4),
(111, 80, 27, '/1/16/109/111', 4),
(112, 80, 28, '/1/16/109/112', 4),
(113, 80, 29, '/1/16/109/113', 4),
(114, 50, 7, '/1/15/114', 3),
(115, 80, 30, '/1/15/114/115', 4),
(116, 80, 31, '/1/15/114/116', 4),
(117, 80, 32, '/1/15/114/117', 4),
(118, 80, 33, '/1/15/114/118', 4),
(119, 50, 8, '/1/15/119', 3),
(120, 80, 34, '/1/15/119/120', 4),
(121, 80, 35, '/1/15/119/121', 4),
(122, 80, 36, '/1/15/119/122', 4),
(123, 80, 37, '/1/15/119/123', 4),
(124, 50, 9, '/1/15/124', 3),
(125, 80, 38, '/1/15/124/125', 4),
(126, 80, 39, '/1/15/124/126', 4),
(127, 80, 40, '/1/15/124/127', 4),
(128, 80, 41, '/1/15/124/128', 4),
(129, 50, 10, '/1/15/129', 3),
(130, 80, 42, '/1/15/129/130', 4),
(131, 80, 43, '/1/15/129/131', 4),
(132, 80, 44, '/1/15/129/132', 4),
(133, 80, 45, '/1/15/129/133', 4),
(134, 50, 11, '/1/17/134', 3),
(135, 80, 46, '/1/17/134/135', 4),
(136, 80, 47, '/1/17/134/136', 4),
(137, 80, 48, '/1/17/134/137', 4),
(138, 80, 49, '/1/17/134/138', 4),
(139, 50, 12, '/1/16/139', 3),
(140, 80, 50, '/1/16/139/140', 4),
(141, 80, 51, '/1/16/139/141', 4),
(142, 80, 52, '/1/16/139/142', 4),
(143, 80, 53, '/1/16/139/143', 4),
(144, 50, 13, '/1/18/144', 3),
(145, 80, 54, '/1/18/144/145', 4),
(146, 80, 55, '/1/18/144/146', 4),
(147, 80, 56, '/1/18/144/147', 4),
(148, 80, 57, '/1/18/144/148', 4),
(149, 50, 14, '/1/18/149', 3),
(150, 80, 58, '/1/18/149/150', 4),
(151, 80, 59, '/1/18/149/151', 4),
(152, 80, 60, '/1/18/149/152', 4),
(153, 80, 61, '/1/18/149/153', 4),
(154, 50, 15, '/1/15/154', 3),
(155, 80, 62, '/1/15/154/155', 4),
(156, 80, 63, '/1/15/154/156', 4),
(157, 80, 64, '/1/15/154/157', 4),
(158, 80, 65, '/1/15/154/158', 4),
(159, 50, 16, '/1/15/159', 3),
(160, 80, 66, '/1/15/159/160', 4),
(161, 80, 67, '/1/15/159/161', 4),
(162, 80, 68, '/1/15/159/162', 4),
(163, 80, 69, '/1/15/159/163', 4),
(164, 50, 17, '/1/179/164', 3),
(165, 80, 70, '/1/179/164/165', 4),
(166, 80, 71, '/1/179/164/166', 4),
(167, 80, 72, '/1/179/164/167', 4),
(168, 80, 73, '/1/179/164/168', 4),
(169, 50, 18, '/1/15/169', 3),
(170, 80, 74, '/1/15/169/170', 4),
(171, 80, 75, '/1/15/169/171', 4),
(172, 80, 76, '/1/15/169/172', 4),
(173, 80, 77, '/1/15/169/173', 4),
(174, 50, 19, '/1/15/174', 3),
(175, 80, 78, '/1/15/174/175', 4),
(176, 80, 79, '/1/15/174/176', 4),
(177, 80, 80, '/1/15/174/177', 4),
(178, 80, 81, '/1/15/174/178', 4),
(179, 40, 7, '/1/179', 2),
(180, 50, 20, '/1/15/180', 3),
(181, 80, 82, '/1/15/180/181', 4),
(182, 80, 83, '/1/15/180/182', 4),
(183, 80, 84, '/1/15/180/183', 4),
(184, 80, 85, '/1/15/180/184', 4),
(185, 50, 21, '/1/15/185', 3),
(186, 80, 86, '/1/15/185/186', 4),
(187, 80, 87, '/1/15/185/187', 4),
(188, 80, 88, '/1/15/185/188', 4),
(189, 80, 89, '/1/15/185/189', 4),
(190, 50, 22, '/1/15/190', 3),
(191, 80, 90, '/1/15/190/191', 4),
(192, 80, 91, '/1/15/190/192', 4),
(193, 80, 92, '/1/15/190/193', 4),
(194, 80, 93, '/1/15/190/194', 4),
(195, 50, 23, '/1/15/195', 3),
(196, 80, 94, '/1/15/195/196', 4),
(197, 80, 95, '/1/15/195/197', 4),
(198, 80, 96, '/1/15/195/198', 4),
(199, 80, 97, '/1/15/195/199', 4),
(200, 50, 24, '/1/18/200', 3),
(201, 80, 98, '/1/18/200/201', 4),
(202, 80, 99, '/1/18/200/202', 4),
(203, 80, 100, '/1/18/200/203', 4),
(204, 80, 101, '/1/18/200/204', 4),
(205, 50, 25, '/1/18/205', 3),
(206, 80, 102, '/1/18/205/206', 4),
(207, 80, 103, '/1/18/205/207', 4),
(208, 80, 104, '/1/18/205/208', 4),
(209, 80, 105, '/1/18/205/209', 4),
(210, 70, 3, '/1/18/205/210', 4),
(211, 50, 26, '/1/18/211', 3),
(212, 80, 106, '/1/18/211/212', 4),
(213, 80, 107, '/1/18/211/213', 4),
(214, 80, 108, '/1/18/211/214', 4),
(215, 80, 109, '/1/18/211/215', 4),
(216, 50, 27, '/1/15/216', 3),
(217, 80, 110, '/1/15/216/217', 4),
(218, 80, 111, '/1/15/216/218', 4),
(219, 80, 112, '/1/15/216/219', 4),
(220, 80, 113, '/1/15/216/220', 4),
(221, 50, 28, '/1/15/221', 3),
(222, 80, 114, '/1/15/221/222', 4),
(223, 80, 115, '/1/15/221/223', 4),
(224, 80, 116, '/1/15/221/224', 4),
(225, 80, 117, '/1/15/221/225', 4),
(226, 50, 29, '/1/15/226', 3),
(227, 80, 118, '/1/15/226/227', 4),
(228, 80, 119, '/1/15/226/228', 4),
(229, 80, 120, '/1/15/226/229', 4),
(230, 80, 121, '/1/15/226/230', 4),
(231, 50, 30, '/1/15/231', 3),
(232, 80, 122, '/1/15/231/232', 4),
(233, 80, 123, '/1/15/231/233', 4),
(234, 80, 124, '/1/15/231/234', 4),
(235, 80, 125, '/1/15/231/235', 4),
(236, 50, 31, '/1/19/236', 3),
(237, 80, 126, '/1/19/236/237', 4),
(238, 80, 127, '/1/19/236/238', 4),
(239, 80, 128, '/1/19/236/239', 4),
(240, 80, 129, '/1/19/236/240', 4),
(241, 50, 32, '/1/19/241', 3),
(242, 80, 130, '/1/19/241/242', 4),
(243, 80, 131, '/1/19/241/243', 4),
(244, 80, 132, '/1/19/241/244', 4),
(245, 80, 133, '/1/19/241/245', 4),
(246, 50, 33, '/1/15/246', 3),
(247, 80, 134, '/1/15/246/247', 4),
(248, 80, 135, '/1/15/246/248', 4),
(249, 80, 136, '/1/15/246/249', 4),
(250, 80, 137, '/1/15/246/250', 4),
(251, 50, 34, '/1/15/251', 3),
(252, 80, 138, '/1/15/251/252', 4),
(253, 80, 139, '/1/15/251/253', 4),
(254, 80, 140, '/1/15/251/254', 4),
(255, 80, 141, '/1/15/251/255', 4),
(256, 50, 35, '/1/15/256', 3),
(257, 80, 142, '/1/15/256/257', 4),
(258, 80, 143, '/1/15/256/258', 4),
(259, 80, 144, '/1/15/256/259', 4),
(260, 80, 145, '/1/15/256/260', 4),
(261, 50, 36, '/1/15/261', 3),
(262, 80, 146, '/1/15/261/262', 4),
(263, 80, 147, '/1/15/261/263', 4),
(264, 80, 148, '/1/15/261/264', 4),
(265, 80, 149, '/1/15/261/265', 4),
(266, 50, 37, '/1/15/266', 3),
(267, 80, 150, '/1/15/266/267', 4),
(268, 80, 151, '/1/15/266/268', 4),
(269, 80, 152, '/1/15/266/269', 4),
(270, 80, 153, '/1/15/266/270', 4),
(271, 50, 38, '/1/15/271', 3),
(272, 80, 154, '/1/15/271/272', 4),
(273, 80, 155, '/1/15/271/273', 4),
(274, 80, 156, '/1/15/271/274', 4),
(275, 80, 157, '/1/15/271/275', 4),
(276, 50, 39, '/1/15/276', 3),
(277, 80, 158, '/1/15/276/277', 4),
(278, 80, 159, '/1/15/276/278', 4),
(279, 80, 160, '/1/15/276/279', 4),
(280, 80, 161, '/1/15/276/280', 4),
(281, 50, 40, '/1/15/281', 3),
(282, 80, 162, '/1/15/281/282', 4),
(283, 80, 163, '/1/15/281/283', 4),
(284, 80, 164, '/1/15/281/284', 4),
(285, 80, 165, '/1/15/281/285', 4),
(286, 80, 166, '/1/286', 2),
(287, 70, 4, '/1/3/20/287', 4),
(289, 50, 41, '/1/3/289', 3),
(290, 80, 167, '/1/3/289/290', 4),
(291, 80, 168, '/1/3/289/291', 4),
(292, 80, 169, '/1/3/289/292', 4),
(293, 80, 170, '/1/3/289/293', 4),
(294, 70, 6, '/1/3/289/294', 4),
(295, 70, 7, '/1/3/289/295', 4);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_context_temp`
--

CREATE TABLE `mdl_context_temp` (
  `id` bigint(10) NOT NULL,
  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `depth` tinyint(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used by build_context_path() in upgrade and cron to keep con';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course`
--

CREATE TABLE `mdl_course` (
  `id` bigint(10) NOT NULL,
  `category` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `fullname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci,
  `summaryformat` tinyint(2) NOT NULL DEFAULT '0',
  `format` varchar(21) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'topics',
  `showgrades` tinyint(2) NOT NULL DEFAULT '1',
  `sectioncache` longtext COLLATE utf8_unicode_ci,
  `modinfo` longtext COLLATE utf8_unicode_ci,
  `newsitems` mediumint(5) NOT NULL DEFAULT '1',
  `startdate` bigint(10) NOT NULL DEFAULT '0',
  `marker` bigint(10) NOT NULL DEFAULT '0',
  `maxbytes` bigint(10) NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) NOT NULL DEFAULT '0',
  `showreports` smallint(4) NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `groupmode` smallint(4) NOT NULL DEFAULT '0',
  `groupmodeforce` smallint(4) NOT NULL DEFAULT '0',
  `defaultgroupingid` bigint(10) NOT NULL DEFAULT '0',
  `lang` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `theme` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `requested` tinyint(1) NOT NULL DEFAULT '0',
  `enablecompletion` tinyint(1) NOT NULL DEFAULT '0',
  `completionstartonenrol` tinyint(1) NOT NULL DEFAULT '0',
  `completionnotify` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Central course table';

--
-- Dumping data for table `mdl_course`
--

INSERT INTO `mdl_course` (`id`, `category`, `sortorder`, `fullname`, `shortname`, `idnumber`, `summary`, `summaryformat`, `format`, `showgrades`, `sectioncache`, `modinfo`, `newsitems`, `startdate`, `marker`, `maxbytes`, `legacyfiles`, `showreports`, `visible`, `visibleold`, `groupmode`, `groupmodeforce`, `defaultgroupingid`, `lang`, `theme`, `timecreated`, `timemodified`, `requested`, `enablecompletion`, `completionstartonenrol`, `completionnotify`) VALUES
(1, 0, 1, 'Campus Tecprecinc srl', 'campustec', '', '', 0, 'site', 1, 'a:2:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"12\";s:4:\"name\";N;}i:1;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"13\";s:4:\"name\";N;}}', 'a:0:{}', 3, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, '', '', 1359214484, 1359559365, 0, 0, 0, 0),
(2, 1, 10002, 'Curso en vivo', 'VIVO', '0', '<p>Curso en vivo</p>', 1, 'topics', 1, 'a:11:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"1\";s:4:\"name\";N;}i:1;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"2\";s:4:\"name\";N;}i:2;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"3\";s:4:\"name\";N;}i:3;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"4\";s:4:\"name\";N;}i:4;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"5\";s:4:\"name\";N;}i:5;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"6\";s:4:\"name\";N;}i:6;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"7\";s:4:\"name\";N;}i:7;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"8\";s:4:\"name\";N;}i:8;O:8:\"stdClass\":2:{s:2:\"id\";s:1:\"9\";s:4:\"name\";N;}i:9;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"10\";s:4:\"name\";N;}i:10;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"11\";s:4:\"name\";N;}}', 'a:3:{i:1;O:8:\"stdClass\":10:{s:2:\"id\";s:1:\"1\";s:2:\"cm\";s:1:\"1\";s:3:\"mod\";s:5:\"forum\";s:7:\"section\";s:1:\"0\";s:9:\"sectionid\";s:1:\"1\";s:6:\"module\";s:1:\"9\";s:5:\"added\";s:10:\"1359215604\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"name\";s:9:\"Novedades\";}i:2;O:8:\"stdClass\":10:{s:2:\"id\";s:1:\"1\";s:2:\"cm\";s:1:\"2\";s:3:\"mod\";s:4:\"chat\";s:7:\"section\";s:1:\"1\";s:9:\"sectionid\";s:1:\"2\";s:6:\"module\";s:1:\"4\";s:5:\"added\";s:10:\"1359215787\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"name\";s:13:\"Clase en vivo\";}i:4;O:8:\"stdClass\":11:{s:2:\"id\";s:1:\"1\";s:2:\"cm\";s:1:\"4\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"1\";s:9:\"sectionid\";s:1:\"2\";s:6:\"module\";s:2:\"17\";s:5:\"added\";s:10:\"1359473246\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"icon\";s:15:\"f/powerpoint-24\";s:4:\"name\";s:6:\"prueba\";}}', 5, 1359255600, 0, 8388608, 0, 1, 1, 1, 0, 0, 0, 'es_ar', '', 1359215555, 1359215691, 0, 0, 0, 0),
(3, 2, 20025, 'Alcoholismo', 'Alcoholismo', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"14\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359227151, 1359227151, 0, 0, 0, 0),
(4, 2, 20024, 'Análisis de riesgos - Factores que afectan el comportamiento humano', 'Analisis de riesgos', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"15\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359227281, 1359227281, 0, 0, 0, 0),
(5, 2, 20023, 'Electricidad estática', 'Electricidad estática', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"16\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359227758, 1359227758, 0, 0, 0, 0),
(6, 3, 30002, 'Cuidados del medio ambiente', 'Medio ambiente', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"17\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359227937, 1359227937, 0, 0, 0, 0),
(7, 2, 20022, 'Elementos de Izaje (Eslingas - Cables - Aparejos)', 'Elementos de Izaje (Eslingas - Cables - Aparejos)', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"18\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359228797, 1359228797, 0, 0, 0, 0),
(8, 2, 20021, 'Ergonomía, Espalda y levantamiento de cargas', 'Ergonomía, Espalda y levantamiento de cargas', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"19\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359228860, 1359228860, 0, 0, 0, 0),
(9, 2, 20020, 'Espacios confinados', 'Espacios confinados', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"20\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359228908, 1359228908, 0, 0, 0, 0),
(10, 2, 20026, 'Evacuación de accidentados', 'Evacuación de accidentados', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"21\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359228949, 1359228949, 0, 0, 0, 0),
(11, 4, 40001, 'Evaluación de Conocimientos', 'Evaluación de Conocimientos', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"22\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229009, 1359229009, 0, 0, 0, 0),
(12, 3, 30001, 'Gestión de residuos', 'Gestión de residuos.', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"23\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229051, 1359229051, 0, 0, 0, 0),
(13, 5, 50002, 'Golpes de calor', 'Golpes de calor', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"24\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229106, 1359229106, 0, 0, 0, 0),
(14, 5, 50003, 'Hipotermia, congelamiento', 'Hipotermia, congelamiento', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"25\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229127, 1359229127, 0, 0, 0, 0),
(15, 2, 20019, 'Inducción a la seguridad', 'Inducción a la seguridad', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"26\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229185, 1359229185, 0, 0, 0, 0),
(16, 2, 20018, 'Investigación de accidentes', 'Investigación de accidentes', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"27\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229307, 1359229307, 0, 0, 0, 0),
(17, 7, 70001, 'Manejo defensivo', 'Manejo defensivo', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"28\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229372, 1359229372, 0, 0, 0, 0),
(18, 2, 20017, 'Máquinas y herramientas cortopunzantes', 'Máquinas y herramientas cortopunzantes', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"29\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229403, 1359229403, 0, 0, 0, 0),
(19, 2, 20016, ' Operaciones con Gas Sulfhídrico', ' Operaciones con Gas Sulfhídrico', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"30\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229481, 1359229481, 0, 0, 0, 0),
(20, 2, 20015, 'Orden y limpieza', 'Orden y limpieza', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"31\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229626, 1359229626, 0, 0, 0, 0),
(21, 2, 20014, 'Permisos de trabajo.', 'Permisos de trabajo.', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"32\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229695, 1359229695, 0, 0, 0, 0),
(22, 2, 20013, 'Permisos de trabajo', 'Permisos de trabajo', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"33\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229772, 1359229772, 0, 0, 0, 0),
(23, 2, 20012, 'Plan de contingencias', 'Plan de contingencias', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"34\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229793, 1359229793, 0, 0, 0, 0),
(24, 5, 50005, 'Primeros auxilios', 'Primeros auxilios', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"35\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229898, 1359229898, 0, 0, 0, 0),
(25, 5, 50004, 'Primeros auxilios - RCP', 'Primeros auxilios - RCP', '', '', 1, 'weeks', 1, 'a:11:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"36\";s:4:\"name\";N;}i:1;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"37\";s:4:\"name\";N;}i:2;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"38\";s:4:\"name\";N;}i:3;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"39\";s:4:\"name\";N;}i:4;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"40\";s:4:\"name\";N;}i:5;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"41\";s:4:\"name\";N;}i:6;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"42\";s:4:\"name\";N;}i:7;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"43\";s:4:\"name\";N;}i:8;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"44\";s:4:\"name\";N;}i:9;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"45\";s:4:\"name\";N;}i:10;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"46\";s:4:\"name\";N;}}', 'a:1:{i:3;O:8:\"stdClass\":10:{s:2:\"id\";s:1:\"2\";s:2:\"cm\";s:1:\"3\";s:3:\"mod\";s:5:\"forum\";s:7:\"section\";s:1:\"0\";s:9:\"sectionid\";s:2:\"36\";s:6:\"module\";s:1:\"9\";s:5:\"added\";s:10:\"1359229918\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"name\";s:9:\"Novedades\";}}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359229911, 1359229911, 0, 0, 0, 0),
(26, 5, 50001, 'Primeros auxilios - Quemaduras', 'Primeros auxilios - Quemaduras', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"47\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230068, 1359230068, 0, 0, 0, 0),
(27, 2, 20011, 'Protección contra incendio', 'Protección contra incendio', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"48\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230131, 1359230131, 0, 0, 0, 0),
(28, 2, 20010, 'Protección de manos', 'Protección de manos', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"49\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230160, 1359230160, 0, 0, 0, 0),
(29, 2, 20009, 'Sistemas de Bloqueo (Tarjetas y candados) ', 'Sistemas de Bloqueo (Tarjetas y candados) ', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"50\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230243, 1359230243, 0, 0, 0, 0),
(30, 2, 20008, 'Riesgo eléctrico', 'Riesgo eléctrico', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"51\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230269, 1359230269, 0, 0, 0, 0),
(31, 6, 60002, 'Riesgo Químico con FDS', 'Riesgo Químico con FDS', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"52\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230349, 1359230349, 0, 0, 0, 0),
(32, 6, 60001, 'Ruidos molestos en los ambientes de trabajo', 'Ruidos molestos en los ambientes de trabajo', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"53\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230383, 1359230383, 0, 0, 0, 0),
(33, 2, 20007, 'Seguridad en laboratorios', 'Seguridad en laboratorios', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"54\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230583, 1359230583, 0, 0, 0, 0),
(34, 2, 20006, 'Seguridad en oficinas', 'Seguridad en oficinas', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"55\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230630, 1359230630, 0, 0, 0, 0),
(35, 2, 20027, 'Seguridad en utilización de montacargas', 'Seguridad en utilización de montacargas', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"56\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230672, 1359230672, 0, 0, 0, 0),
(36, 2, 20005, 'Señales y colores de seguridad', 'Señales y colores de seguridad', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"57\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230701, 1359230701, 0, 0, 0, 0),
(37, 2, 20004, 'Soldaduras y trabajos en caliente', 'Soldaduras y trabajos en caliente', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"58\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230724, 1359230724, 0, 0, 0, 0),
(38, 2, 20003, 'Trabajo en altura', 'Trabajo en altura', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"59\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230749, 1359230749, 0, 0, 0, 0),
(39, 2, 20002, 'Uso de equipos de protección personal', 'Uso de equipos de protección personal', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"60\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230768, 1359230768, 0, 0, 0, 0),
(40, 2, 20001, 'Animales Ponzoñosos', 'Animales Ponzoñosos', '', '', 1, 'weeks', 1, 'a:1:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"61\";s:4:\"name\";N;}}', 'a:0:{}', 5, 1359255600, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359230792, 1359230792, 0, 0, 0, 0),
(41, 1, 10001, 'Marcelo Privado', 'marceloprivado', '', '', 1, 'topics', 1, 'a:11:{i:0;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"62\";s:4:\"name\";N;}i:1;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"63\";s:4:\"name\";N;}i:2;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"64\";s:4:\"name\";N;}i:3;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"65\";s:4:\"name\";N;}i:4;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"66\";s:4:\"name\";N;}i:5;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"67\";s:4:\"name\";N;}i:6;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"68\";s:4:\"name\";N;}i:7;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"69\";s:4:\"name\";N;}i:8;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"70\";s:4:\"name\";N;}i:9;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"71\";s:4:\"name\";N;}i:10;O:8:\"stdClass\":2:{s:2:\"id\";s:2:\"72\";s:4:\"name\";N;}}', 'a:2:{i:6;O:8:\"stdClass\":10:{s:2:\"id\";s:1:\"3\";s:2:\"cm\";s:1:\"6\";s:3:\"mod\";s:5:\"forum\";s:7:\"section\";s:1:\"0\";s:9:\"sectionid\";s:2:\"62\";s:6:\"module\";s:1:\"9\";s:5:\"added\";s:10:\"1359488858\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"name\";s:9:\"Novedades\";}i:7;O:8:\"stdClass\":10:{s:2:\"id\";s:1:\"3\";s:2:\"cm\";s:1:\"7\";s:3:\"mod\";s:4:\"chat\";s:7:\"section\";s:1:\"1\";s:9:\"sectionid\";s:2:\"63\";s:6:\"module\";s:1:\"4\";s:5:\"added\";s:10:\"1359489137\";s:7:\"visible\";s:1:\"1\";s:10:\"visibleold\";s:1:\"1\";s:4:\"name\";s:15:\"Marcelo Privado\";}}', 5, 1359428400, 0, 8388608, 0, 0, 1, 1, 0, 0, 0, '', '', 1359488845, 1359489099, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_categories`
--

CREATE TABLE `mdl_course_categories` (
  `id` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `coursecount` bigint(10) NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `depth` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `theme` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course categories';

--
-- Dumping data for table `mdl_course_categories`
--

INSERT INTO `mdl_course_categories` (`id`, `name`, `idnumber`, `description`, `descriptionformat`, `parent`, `sortorder`, `coursecount`, `visible`, `visibleold`, `timemodified`, `depth`, `path`, `theme`) VALUES
(1, 'Miscelánea', NULL, NULL, 0, 0, 10000, 2, 1, 1, 1359214484, 1, '/1', NULL),
(2, 'Seguridad', 'SEG', '', 1, 0, 20000, 27, 1, 1, 1359215254, 1, '/2', NULL),
(3, 'Medio Ambiente', 'MAMB', '', 1, 0, 30000, 2, 1, 1, 1359215296, 1, '/3', NULL),
(4, 'SSMA', 'SSMA', '', 1, 0, 40000, 1, 1, 1, 1359215335, 1, '/4', NULL),
(5, 'Salud', 'SLD', '', 1, 0, 50000, 5, 1, 1, 1359215364, 1, '/5', NULL),
(6, 'Higiene', 'HIG', '', 1, 0, 60000, 2, 1, 1, 1359215441, 1, '/6', NULL),
(7, 'Conducción', '', '', 1, 0, 70000, 1, 1, 1, 1359229545, 1, '/7', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_completions`
--

CREATE TABLE `mdl_course_completions` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `timeenrolled` bigint(10) NOT NULL DEFAULT '0',
  `timestarted` bigint(10) NOT NULL DEFAULT '0',
  `timecompleted` bigint(10) DEFAULT NULL,
  `reaggregate` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course completion records';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_completion_aggr_methd`
--

CREATE TABLE `mdl_course_completion_aggr_methd` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `criteriatype` bigint(10) DEFAULT NULL,
  `method` tinyint(1) NOT NULL DEFAULT '0',
  `value` decimal(10,5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course completion aggregation methods for criteria';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_completion_criteria`
--

CREATE TABLE `mdl_course_completion_criteria` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `criteriatype` bigint(10) NOT NULL DEFAULT '0',
  `module` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `moduleinstance` bigint(10) DEFAULT NULL,
  `courseinstance` bigint(10) DEFAULT NULL,
  `enrolperiod` bigint(10) DEFAULT NULL,
  `timeend` bigint(10) DEFAULT NULL,
  `gradepass` decimal(10,5) DEFAULT NULL,
  `role` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course completion criteria';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_completion_crit_compl`
--

CREATE TABLE `mdl_course_completion_crit_compl` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `criteriaid` bigint(10) NOT NULL DEFAULT '0',
  `gradefinal` decimal(10,5) DEFAULT NULL,
  `unenroled` bigint(10) DEFAULT NULL,
  `timecompleted` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course completion user records';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_format_options`
--

CREATE TABLE `mdl_course_format_options` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `format` varchar(21) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sectionid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores format-specific options for the course or course sect';

--
-- Dumping data for table `mdl_course_format_options`
--

INSERT INTO `mdl_course_format_options` (`id`, `courseid`, `format`, `sectionid`, `name`, `value`) VALUES
(1, 1, 'site', 0, 'numsections', '1'),
(2, 2, 'topics', 0, 'numsections', '1'),
(3, 2, 'topics', 0, 'hiddensections', '0'),
(4, 2, 'topics', 0, 'coursedisplay', '0'),
(5, 3, 'weeks', 0, 'numsections', '10'),
(6, 3, 'weeks', 0, 'hiddensections', '0'),
(7, 3, 'weeks', 0, 'coursedisplay', '0'),
(8, 4, 'weeks', 0, 'numsections', '10'),
(9, 4, 'weeks', 0, 'hiddensections', '0'),
(10, 4, 'weeks', 0, 'coursedisplay', '0'),
(11, 5, 'weeks', 0, 'numsections', '10'),
(12, 5, 'weeks', 0, 'hiddensections', '0'),
(13, 5, 'weeks', 0, 'coursedisplay', '0'),
(14, 6, 'weeks', 0, 'numsections', '10'),
(15, 6, 'weeks', 0, 'hiddensections', '0'),
(16, 6, 'weeks', 0, 'coursedisplay', '0'),
(17, 7, 'weeks', 0, 'numsections', '10'),
(18, 7, 'weeks', 0, 'hiddensections', '0'),
(19, 7, 'weeks', 0, 'coursedisplay', '0'),
(20, 8, 'weeks', 0, 'numsections', '10'),
(21, 8, 'weeks', 0, 'hiddensections', '0'),
(22, 8, 'weeks', 0, 'coursedisplay', '0'),
(23, 9, 'weeks', 0, 'numsections', '10'),
(24, 9, 'weeks', 0, 'hiddensections', '0'),
(25, 9, 'weeks', 0, 'coursedisplay', '0'),
(26, 10, 'weeks', 0, 'numsections', '10'),
(27, 10, 'weeks', 0, 'hiddensections', '0'),
(28, 10, 'weeks', 0, 'coursedisplay', '0'),
(29, 11, 'weeks', 0, 'numsections', '10'),
(30, 11, 'weeks', 0, 'hiddensections', '0'),
(31, 11, 'weeks', 0, 'coursedisplay', '0'),
(32, 12, 'weeks', 0, 'numsections', '10'),
(33, 12, 'weeks', 0, 'hiddensections', '0'),
(34, 12, 'weeks', 0, 'coursedisplay', '0'),
(35, 13, 'weeks', 0, 'numsections', '10'),
(36, 13, 'weeks', 0, 'hiddensections', '0'),
(37, 13, 'weeks', 0, 'coursedisplay', '0'),
(38, 14, 'weeks', 0, 'numsections', '10'),
(39, 14, 'weeks', 0, 'hiddensections', '0'),
(40, 14, 'weeks', 0, 'coursedisplay', '0'),
(41, 15, 'weeks', 0, 'numsections', '10'),
(42, 15, 'weeks', 0, 'hiddensections', '0'),
(43, 15, 'weeks', 0, 'coursedisplay', '0'),
(44, 16, 'weeks', 0, 'numsections', '10'),
(45, 16, 'weeks', 0, 'hiddensections', '0'),
(46, 16, 'weeks', 0, 'coursedisplay', '0'),
(47, 17, 'weeks', 0, 'numsections', '10'),
(48, 17, 'weeks', 0, 'hiddensections', '0'),
(49, 17, 'weeks', 0, 'coursedisplay', '0'),
(50, 18, 'weeks', 0, 'numsections', '10'),
(51, 18, 'weeks', 0, 'hiddensections', '0'),
(52, 18, 'weeks', 0, 'coursedisplay', '0'),
(53, 19, 'weeks', 0, 'numsections', '10'),
(54, 19, 'weeks', 0, 'hiddensections', '0'),
(55, 19, 'weeks', 0, 'coursedisplay', '0'),
(56, 20, 'weeks', 0, 'numsections', '10'),
(57, 20, 'weeks', 0, 'hiddensections', '0'),
(58, 20, 'weeks', 0, 'coursedisplay', '0'),
(59, 21, 'weeks', 0, 'numsections', '10'),
(60, 21, 'weeks', 0, 'hiddensections', '0'),
(61, 21, 'weeks', 0, 'coursedisplay', '0'),
(62, 22, 'weeks', 0, 'numsections', '10'),
(63, 22, 'weeks', 0, 'hiddensections', '0'),
(64, 22, 'weeks', 0, 'coursedisplay', '0'),
(65, 23, 'weeks', 0, 'numsections', '10'),
(66, 23, 'weeks', 0, 'hiddensections', '0'),
(67, 23, 'weeks', 0, 'coursedisplay', '0'),
(68, 24, 'weeks', 0, 'numsections', '10'),
(69, 24, 'weeks', 0, 'hiddensections', '0'),
(70, 24, 'weeks', 0, 'coursedisplay', '0'),
(71, 25, 'weeks', 0, 'numsections', '10'),
(72, 25, 'weeks', 0, 'hiddensections', '0'),
(73, 25, 'weeks', 0, 'coursedisplay', '0'),
(74, 26, 'weeks', 0, 'numsections', '10'),
(75, 26, 'weeks', 0, 'hiddensections', '0'),
(76, 26, 'weeks', 0, 'coursedisplay', '0'),
(77, 27, 'weeks', 0, 'numsections', '10'),
(78, 27, 'weeks', 0, 'hiddensections', '0'),
(79, 27, 'weeks', 0, 'coursedisplay', '0'),
(80, 28, 'weeks', 0, 'numsections', '10'),
(81, 28, 'weeks', 0, 'hiddensections', '0'),
(82, 28, 'weeks', 0, 'coursedisplay', '0'),
(83, 29, 'weeks', 0, 'numsections', '10'),
(84, 29, 'weeks', 0, 'hiddensections', '0'),
(85, 29, 'weeks', 0, 'coursedisplay', '0'),
(86, 30, 'weeks', 0, 'numsections', '10'),
(87, 30, 'weeks', 0, 'hiddensections', '0'),
(88, 30, 'weeks', 0, 'coursedisplay', '0'),
(89, 31, 'weeks', 0, 'numsections', '10'),
(90, 31, 'weeks', 0, 'hiddensections', '0'),
(91, 31, 'weeks', 0, 'coursedisplay', '0'),
(92, 32, 'weeks', 0, 'numsections', '10'),
(93, 32, 'weeks', 0, 'hiddensections', '0'),
(94, 32, 'weeks', 0, 'coursedisplay', '0'),
(95, 33, 'weeks', 0, 'numsections', '10'),
(96, 33, 'weeks', 0, 'hiddensections', '0'),
(97, 33, 'weeks', 0, 'coursedisplay', '0'),
(98, 34, 'weeks', 0, 'numsections', '10'),
(99, 34, 'weeks', 0, 'hiddensections', '0'),
(100, 34, 'weeks', 0, 'coursedisplay', '0'),
(101, 35, 'weeks', 0, 'numsections', '10'),
(102, 35, 'weeks', 0, 'hiddensections', '0'),
(103, 35, 'weeks', 0, 'coursedisplay', '0'),
(104, 36, 'weeks', 0, 'numsections', '10'),
(105, 36, 'weeks', 0, 'hiddensections', '0'),
(106, 36, 'weeks', 0, 'coursedisplay', '0'),
(107, 37, 'weeks', 0, 'numsections', '10'),
(108, 37, 'weeks', 0, 'hiddensections', '0'),
(109, 37, 'weeks', 0, 'coursedisplay', '0'),
(110, 38, 'weeks', 0, 'numsections', '10'),
(111, 38, 'weeks', 0, 'hiddensections', '0'),
(112, 38, 'weeks', 0, 'coursedisplay', '0'),
(113, 39, 'weeks', 0, 'numsections', '10'),
(114, 39, 'weeks', 0, 'hiddensections', '0'),
(115, 39, 'weeks', 0, 'coursedisplay', '0'),
(116, 40, 'weeks', 0, 'numsections', '10'),
(117, 40, 'weeks', 0, 'hiddensections', '0'),
(118, 40, 'weeks', 0, 'coursedisplay', '0'),
(122, 41, 'topics', 0, 'numsections', '3'),
(123, 41, 'topics', 0, 'hiddensections', '0'),
(124, 41, 'topics', 0, 'coursedisplay', '0');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_modules`
--

CREATE TABLE `mdl_course_modules` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `module` bigint(10) NOT NULL DEFAULT '0',
  `instance` bigint(10) NOT NULL DEFAULT '0',
  `section` bigint(10) NOT NULL DEFAULT '0',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `added` bigint(10) NOT NULL DEFAULT '0',
  `score` smallint(4) NOT NULL DEFAULT '0',
  `indent` mediumint(5) NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `groupmode` smallint(4) NOT NULL DEFAULT '0',
  `groupingid` bigint(10) NOT NULL DEFAULT '0',
  `groupmembersonly` smallint(4) NOT NULL DEFAULT '0',
  `completion` tinyint(1) NOT NULL DEFAULT '0',
  `completiongradeitemnumber` bigint(10) DEFAULT NULL,
  `completionview` tinyint(1) NOT NULL DEFAULT '0',
  `completionexpected` bigint(10) NOT NULL DEFAULT '0',
  `availablefrom` bigint(10) NOT NULL DEFAULT '0',
  `availableuntil` bigint(10) NOT NULL DEFAULT '0',
  `showavailability` tinyint(1) NOT NULL DEFAULT '0',
  `showdescription` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='course_modules table retrofitted from MySQL';

--
-- Dumping data for table `mdl_course_modules`
--

INSERT INTO `mdl_course_modules` (`id`, `course`, `module`, `instance`, `section`, `idnumber`, `added`, `score`, `indent`, `visible`, `visibleold`, `groupmode`, `groupingid`, `groupmembersonly`, `completion`, `completiongradeitemnumber`, `completionview`, `completionexpected`, `availablefrom`, `availableuntil`, `showavailability`, `showdescription`) VALUES
(1, 2, 9, 1, 1, NULL, 1359215604, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0),
(2, 2, 4, 1, 2, NULL, 1359215787, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0),
(3, 25, 9, 2, 36, NULL, 1359229918, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0),
(4, 2, 17, 1, 2, NULL, 1359473246, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0),
(6, 41, 9, 3, 62, NULL, 1359488858, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0),
(7, 41, 4, 3, 63, NULL, 1359489137, 0, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_modules_availability`
--

CREATE TABLE `mdl_course_modules_availability` (
  `id` bigint(10) NOT NULL,
  `coursemoduleid` bigint(10) NOT NULL,
  `sourcecmid` bigint(10) DEFAULT NULL,
  `requiredcompletion` tinyint(1) DEFAULT NULL,
  `gradeitemid` bigint(10) DEFAULT NULL,
  `grademin` decimal(10,5) DEFAULT NULL,
  `grademax` decimal(10,5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Table stores conditions that affect whether a module/activit';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_modules_avail_fields`
--

CREATE TABLE `mdl_course_modules_avail_fields` (
  `id` bigint(10) NOT NULL,
  `coursemoduleid` bigint(10) NOT NULL,
  `userfield` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customfieldid` bigint(10) DEFAULT NULL,
  `operator` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores user field conditions that affect whether an activity';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_modules_completion`
--

CREATE TABLE `mdl_course_modules_completion` (
  `id` bigint(10) NOT NULL,
  `coursemoduleid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `completionstate` tinyint(1) NOT NULL,
  `viewed` tinyint(1) DEFAULT NULL,
  `timemodified` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the completion state (completed or not completed, etc';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_published`
--

CREATE TABLE `mdl_course_published` (
  `id` bigint(10) NOT NULL,
  `huburl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `courseid` bigint(10) NOT NULL,
  `timepublished` bigint(10) NOT NULL,
  `enrollable` tinyint(1) NOT NULL DEFAULT '1',
  `hubcourseid` bigint(10) NOT NULL,
  `status` tinyint(1) DEFAULT '0',
  `timechecked` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Information about how and when an local courses were publish';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_request`
--

CREATE TABLE `mdl_course_request` (
  `id` bigint(10) NOT NULL,
  `fullname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci NOT NULL,
  `summaryformat` tinyint(2) NOT NULL DEFAULT '0',
  `category` bigint(10) NOT NULL DEFAULT '0',
  `reason` longtext COLLATE utf8_unicode_ci NOT NULL,
  `requester` bigint(10) NOT NULL DEFAULT '0',
  `password` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='course requests';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_sections`
--

CREATE TABLE `mdl_course_sections` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `section` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `summary` longtext COLLATE utf8_unicode_ci,
  `summaryformat` tinyint(2) NOT NULL DEFAULT '0',
  `sequence` longtext COLLATE utf8_unicode_ci,
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `availablefrom` bigint(10) NOT NULL DEFAULT '0',
  `availableuntil` bigint(10) NOT NULL DEFAULT '0',
  `showavailability` tinyint(1) NOT NULL DEFAULT '0',
  `groupingid` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='to define the sections for each course';

--
-- Dumping data for table `mdl_course_sections`
--

INSERT INTO `mdl_course_sections` (`id`, `course`, `section`, `name`, `summary`, `summaryformat`, `sequence`, `visible`, `availablefrom`, `availableuntil`, `showavailability`, `groupingid`) VALUES
(1, 2, 0, NULL, '', 1, '1', 1, 0, 0, 0, 0),
(2, 2, 1, NULL, '', 1, '2,4', 1, 0, 0, 0, 0),
(3, 2, 2, NULL, '', 1, '', 1, 0, 0, 0, 0),
(4, 2, 3, NULL, '', 1, '', 1, 0, 0, 0, 0),
(5, 2, 4, NULL, '', 1, '', 1, 0, 0, 0, 0),
(6, 2, 5, NULL, '', 1, '', 1, 0, 0, 0, 0),
(7, 2, 6, NULL, '', 1, '', 1, 0, 0, 0, 0),
(8, 2, 7, NULL, '', 1, '', 1, 0, 0, 0, 0),
(9, 2, 8, NULL, '', 1, '', 1, 0, 0, 0, 0),
(10, 2, 9, NULL, '', 1, '', 1, 0, 0, 0, 0),
(11, 2, 10, NULL, '', 1, '', 1, 0, 0, 0, 0),
(12, 1, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(13, 1, 1, NULL, '', 1, '', 1, 0, 0, 0, 0),
(14, 3, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(15, 4, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(16, 5, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(17, 6, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(18, 7, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(19, 8, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(20, 9, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(21, 10, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(22, 11, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(23, 12, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(24, 13, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(25, 14, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(26, 15, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(27, 16, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(28, 17, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(29, 18, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(30, 19, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(31, 20, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(32, 21, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(33, 22, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(34, 23, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(35, 24, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(36, 25, 0, NULL, '', 1, '3', 1, 0, 0, 0, 0),
(37, 25, 1, NULL, '', 1, '', 1, 0, 0, 0, 0),
(38, 25, 2, NULL, '', 1, '', 1, 0, 0, 0, 0),
(39, 25, 3, NULL, '', 1, '', 1, 0, 0, 0, 0),
(40, 25, 4, NULL, '', 1, '', 1, 0, 0, 0, 0),
(41, 25, 5, NULL, '', 1, '', 1, 0, 0, 0, 0),
(42, 25, 6, NULL, '', 1, '', 1, 0, 0, 0, 0),
(43, 25, 7, NULL, '', 1, '', 1, 0, 0, 0, 0),
(44, 25, 8, NULL, '', 1, '', 1, 0, 0, 0, 0),
(45, 25, 9, NULL, '', 1, '', 1, 0, 0, 0, 0),
(46, 25, 10, NULL, '', 1, '', 1, 0, 0, 0, 0),
(47, 26, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(48, 27, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(49, 28, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(50, 29, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(51, 30, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(52, 31, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(53, 32, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(54, 33, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(55, 34, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(56, 35, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(57, 36, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(58, 37, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(59, 38, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(60, 39, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(61, 40, 0, NULL, '', 1, '', 1, 0, 0, 0, 0),
(62, 41, 0, NULL, '', 1, '6', 1, 0, 0, 0, 0),
(63, 41, 1, NULL, '', 1, '7', 1, 0, 0, 0, 0),
(64, 41, 2, NULL, '', 1, '', 1, 0, 0, 0, 0),
(65, 41, 3, NULL, '', 1, '', 1, 0, 0, 0, 0),
(66, 41, 4, NULL, '', 1, '', 1, 0, 0, 0, 0),
(67, 41, 5, NULL, '', 1, '', 1, 0, 0, 0, 0),
(68, 41, 6, NULL, '', 1, '', 1, 0, 0, 0, 0),
(69, 41, 7, NULL, '', 1, '', 1, 0, 0, 0, 0),
(70, 41, 8, NULL, '', 1, '', 1, 0, 0, 0, 0),
(71, 41, 9, NULL, '', 1, '', 1, 0, 0, 0, 0),
(72, 41, 10, NULL, '', 1, '', 1, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_sections_availability`
--

CREATE TABLE `mdl_course_sections_availability` (
  `id` bigint(10) NOT NULL,
  `coursesectionid` bigint(10) NOT NULL,
  `sourcecmid` bigint(10) DEFAULT NULL,
  `requiredcompletion` tinyint(1) DEFAULT NULL,
  `gradeitemid` bigint(10) DEFAULT NULL,
  `grademin` decimal(10,5) DEFAULT NULL,
  `grademax` decimal(10,5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Completion or grade conditions that affect if a section is c';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_course_sections_avail_fields`
--

CREATE TABLE `mdl_course_sections_avail_fields` (
  `id` bigint(10) NOT NULL,
  `coursesectionid` bigint(10) NOT NULL,
  `userfield` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customfieldid` bigint(10) DEFAULT NULL,
  `operator` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores user field conditions that affect whether an activity';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_data`
--

CREATE TABLE `mdl_data` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `comments` smallint(4) NOT NULL DEFAULT '0',
  `timeavailablefrom` bigint(10) NOT NULL DEFAULT '0',
  `timeavailableto` bigint(10) NOT NULL DEFAULT '0',
  `timeviewfrom` bigint(10) NOT NULL DEFAULT '0',
  `timeviewto` bigint(10) NOT NULL DEFAULT '0',
  `requiredentries` int(8) NOT NULL DEFAULT '0',
  `requiredentriestoview` int(8) NOT NULL DEFAULT '0',
  `maxentries` int(8) NOT NULL DEFAULT '0',
  `rssarticles` smallint(4) NOT NULL DEFAULT '0',
  `singletemplate` longtext COLLATE utf8_unicode_ci,
  `listtemplate` longtext COLLATE utf8_unicode_ci,
  `listtemplateheader` longtext COLLATE utf8_unicode_ci,
  `listtemplatefooter` longtext COLLATE utf8_unicode_ci,
  `addtemplate` longtext COLLATE utf8_unicode_ci,
  `rsstemplate` longtext COLLATE utf8_unicode_ci,
  `rsstitletemplate` longtext COLLATE utf8_unicode_ci,
  `csstemplate` longtext COLLATE utf8_unicode_ci,
  `jstemplate` longtext COLLATE utf8_unicode_ci,
  `asearchtemplate` longtext COLLATE utf8_unicode_ci,
  `approval` smallint(4) NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `assessed` bigint(10) NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) NOT NULL DEFAULT '0',
  `defaultsort` bigint(10) NOT NULL DEFAULT '0',
  `defaultsortdir` smallint(4) NOT NULL DEFAULT '0',
  `editany` smallint(4) NOT NULL DEFAULT '0',
  `notification` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all database activities';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_data_content`
--

CREATE TABLE `mdl_data_content` (
  `id` bigint(10) NOT NULL,
  `fieldid` bigint(10) NOT NULL DEFAULT '0',
  `recordid` bigint(10) NOT NULL DEFAULT '0',
  `content` longtext COLLATE utf8_unicode_ci,
  `content1` longtext COLLATE utf8_unicode_ci,
  `content2` longtext COLLATE utf8_unicode_ci,
  `content3` longtext COLLATE utf8_unicode_ci,
  `content4` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='the content introduced in each record/fields';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_data_fields`
--

CREATE TABLE `mdl_data_fields` (
  `id` bigint(10) NOT NULL,
  `dataid` bigint(10) NOT NULL DEFAULT '0',
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `param1` longtext COLLATE utf8_unicode_ci,
  `param2` longtext COLLATE utf8_unicode_ci,
  `param3` longtext COLLATE utf8_unicode_ci,
  `param4` longtext COLLATE utf8_unicode_ci,
  `param5` longtext COLLATE utf8_unicode_ci,
  `param6` longtext COLLATE utf8_unicode_ci,
  `param7` longtext COLLATE utf8_unicode_ci,
  `param8` longtext COLLATE utf8_unicode_ci,
  `param9` longtext COLLATE utf8_unicode_ci,
  `param10` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='every field available';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_data_records`
--

CREATE TABLE `mdl_data_records` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `dataid` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `approved` smallint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='every record introduced';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_enrol`
--

CREATE TABLE `mdl_enrol` (
  `id` bigint(10) NOT NULL,
  `enrol` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `status` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enrolperiod` bigint(10) DEFAULT '0',
  `enrolstartdate` bigint(10) DEFAULT '0',
  `enrolenddate` bigint(10) DEFAULT '0',
  `expirynotify` tinyint(1) DEFAULT '0',
  `expirythreshold` bigint(10) DEFAULT '0',
  `notifyall` tinyint(1) DEFAULT '0',
  `password` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cost` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `currency` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `roleid` bigint(10) DEFAULT '0',
  `customint1` bigint(10) DEFAULT NULL,
  `customint2` bigint(10) DEFAULT NULL,
  `customint3` bigint(10) DEFAULT NULL,
  `customint4` bigint(10) DEFAULT NULL,
  `customint5` bigint(10) DEFAULT NULL,
  `customint6` bigint(10) DEFAULT NULL,
  `customint7` bigint(10) DEFAULT NULL,
  `customint8` bigint(10) DEFAULT NULL,
  `customchar1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customchar2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customchar3` varchar(1333) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customdec1` decimal(12,7) DEFAULT NULL,
  `customdec2` decimal(12,7) DEFAULT NULL,
  `customtext1` longtext COLLATE utf8_unicode_ci,
  `customtext2` longtext COLLATE utf8_unicode_ci,
  `customtext3` longtext COLLATE utf8_unicode_ci,
  `customtext4` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Instances of enrolment plugins used in courses, fields marke';

--
-- Dumping data for table `mdl_enrol`
--

INSERT INTO `mdl_enrol` (`id`, `enrol`, `status`, `courseid`, `sortorder`, `name`, `enrolperiod`, `enrolstartdate`, `enrolenddate`, `expirynotify`, `expirythreshold`, `notifyall`, `password`, `cost`, `currency`, `roleid`, `customint1`, `customint2`, `customint3`, `customint4`, `customint5`, `customint6`, `customint7`, `customint8`, `customchar1`, `customchar2`, `customchar3`, `customdec1`, `customdec2`, `customtext1`, `customtext2`, `customtext3`, `customtext4`, `timecreated`, `timemodified`) VALUES
(1, 'manual', 0, 2, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359215555, 1359215555),
(2, 'guest', 0, 2, 1, NULL, 0, 0, 0, 0, 0, 0, 'tecenvivo', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359215555, 1359215691),
(3, 'self', 1, 2, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359215555, 1359215555),
(4, 'manual', 0, 3, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227151, 1359227151),
(5, 'guest', 1, 3, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227151, 1359227151),
(6, 'self', 1, 3, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227151, 1359227151),
(7, 'manual', 0, 4, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227281, 1359227281),
(8, 'guest', 1, 4, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227281, 1359227281),
(9, 'self', 1, 4, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227281, 1359227281),
(10, 'manual', 0, 5, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227758, 1359227758),
(11, 'guest', 1, 5, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227758, 1359227758),
(12, 'self', 1, 5, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227758, 1359227758),
(13, 'manual', 0, 6, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227937, 1359227937),
(14, 'guest', 1, 6, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227937, 1359227937),
(15, 'self', 1, 6, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359227937, 1359227937),
(16, 'manual', 0, 7, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228797, 1359228797),
(17, 'guest', 1, 7, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228797, 1359228797),
(18, 'self', 1, 7, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228797, 1359228797),
(19, 'manual', 0, 8, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228860, 1359228860),
(20, 'guest', 1, 8, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228860, 1359228860),
(21, 'self', 1, 8, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228860, 1359228860),
(22, 'manual', 0, 9, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228909, 1359228909),
(23, 'guest', 1, 9, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228909, 1359228909),
(24, 'self', 1, 9, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228909, 1359228909),
(25, 'manual', 0, 10, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228949, 1359228949),
(26, 'guest', 1, 10, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228949, 1359228949),
(27, 'self', 1, 10, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359228949, 1359228949),
(28, 'manual', 0, 11, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229009, 1359229009),
(29, 'guest', 1, 11, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229009, 1359229009),
(30, 'self', 1, 11, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229009, 1359229009),
(31, 'manual', 0, 12, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229051, 1359229051),
(32, 'guest', 1, 12, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229051, 1359229051),
(33, 'self', 1, 12, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229051, 1359229051),
(34, 'manual', 0, 13, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229106, 1359229106),
(35, 'guest', 1, 13, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229106, 1359229106),
(36, 'self', 1, 13, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229106, 1359229106),
(37, 'manual', 0, 14, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229127, 1359229127),
(38, 'guest', 1, 14, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229127, 1359229127),
(39, 'self', 1, 14, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229127, 1359229127),
(40, 'manual', 0, 15, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229185, 1359229185),
(41, 'guest', 1, 15, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229185, 1359229185),
(42, 'self', 1, 15, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229185, 1359229185),
(43, 'manual', 0, 16, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229307, 1359229307),
(44, 'guest', 1, 16, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229307, 1359229307),
(45, 'self', 1, 16, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229307, 1359229307),
(46, 'manual', 0, 17, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229372, 1359229372),
(47, 'guest', 1, 17, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229372, 1359229372),
(48, 'self', 1, 17, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229372, 1359229372),
(49, 'manual', 0, 18, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229403, 1359229403),
(50, 'guest', 1, 18, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229403, 1359229403),
(51, 'self', 1, 18, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229403, 1359229403),
(52, 'manual', 0, 19, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229481, 1359229481),
(53, 'guest', 1, 19, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229481, 1359229481),
(54, 'self', 1, 19, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229481, 1359229481),
(55, 'manual', 0, 20, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229626, 1359229626),
(56, 'guest', 1, 20, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229626, 1359229626),
(57, 'self', 1, 20, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229626, 1359229626),
(58, 'manual', 0, 21, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229695, 1359229695),
(59, 'guest', 1, 21, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229695, 1359229695),
(60, 'self', 1, 21, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229695, 1359229695),
(61, 'manual', 0, 22, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229772, 1359229772),
(62, 'guest', 1, 22, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229772, 1359229772),
(63, 'self', 1, 22, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229772, 1359229772),
(64, 'manual', 0, 23, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229793, 1359229793),
(65, 'guest', 1, 23, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229793, 1359229793),
(66, 'self', 1, 23, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229793, 1359229793),
(67, 'manual', 0, 24, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229898, 1359229898),
(68, 'guest', 1, 24, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229898, 1359229898),
(69, 'self', 1, 24, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229898, 1359229898),
(70, 'manual', 0, 25, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229911, 1359229911),
(71, 'guest', 1, 25, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229911, 1359229911),
(72, 'self', 1, 25, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359229911, 1359229911),
(73, 'manual', 0, 26, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230068, 1359230068),
(74, 'guest', 1, 26, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230068, 1359230068),
(75, 'self', 1, 26, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230068, 1359230068),
(76, 'manual', 0, 27, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230131, 1359230131),
(77, 'guest', 1, 27, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230131, 1359230131),
(78, 'self', 1, 27, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230131, 1359230131),
(79, 'manual', 0, 28, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230160, 1359230160),
(80, 'guest', 1, 28, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230160, 1359230160),
(81, 'self', 1, 28, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230160, 1359230160),
(82, 'manual', 0, 29, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230243, 1359230243),
(83, 'guest', 1, 29, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230243, 1359230243),
(84, 'self', 1, 29, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230243, 1359230243),
(85, 'manual', 0, 30, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230269, 1359230269),
(86, 'guest', 1, 30, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230269, 1359230269),
(87, 'self', 1, 30, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230269, 1359230269),
(88, 'manual', 0, 31, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230349, 1359230349),
(89, 'guest', 1, 31, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230349, 1359230349),
(90, 'self', 1, 31, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230349, 1359230349),
(91, 'manual', 0, 32, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230383, 1359230383),
(92, 'guest', 1, 32, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230383, 1359230383),
(93, 'self', 1, 32, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230383, 1359230383),
(94, 'manual', 0, 33, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230583, 1359230583),
(95, 'guest', 1, 33, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230583, 1359230583),
(96, 'self', 1, 33, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230583, 1359230583),
(97, 'manual', 0, 34, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230630, 1359230630),
(98, 'guest', 1, 34, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230630, 1359230630),
(99, 'self', 1, 34, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230630, 1359230630),
(100, 'manual', 0, 35, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230672, 1359230672),
(101, 'guest', 1, 35, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230672, 1359230672),
(102, 'self', 1, 35, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230672, 1359230672),
(103, 'manual', 0, 36, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230701, 1359230701),
(104, 'guest', 1, 36, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230701, 1359230701),
(105, 'self', 1, 36, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230701, 1359230701),
(106, 'manual', 0, 37, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230724, 1359230724),
(107, 'guest', 1, 37, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230724, 1359230724),
(108, 'self', 1, 37, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230724, 1359230724),
(109, 'manual', 0, 38, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230749, 1359230749),
(110, 'guest', 1, 38, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230749, 1359230749),
(111, 'self', 1, 38, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230749, 1359230749),
(112, 'manual', 0, 39, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230768, 1359230768),
(113, 'guest', 1, 39, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230768, 1359230768),
(114, 'self', 1, 39, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230768, 1359230768),
(115, 'manual', 0, 40, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230792, 1359230792),
(116, 'guest', 1, 40, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230792, 1359230792),
(117, 'self', 1, 40, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359230792, 1359230792),
(118, 'manual', 0, 41, 0, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359488845, 1359488845),
(119, 'guest', 1, 41, 1, NULL, 0, 0, 0, 0, 0, 0, '', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359488845, 1359489099),
(120, 'self', 1, 41, 2, NULL, 0, 0, 0, 0, 86400, 0, NULL, NULL, NULL, 5, 0, 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1359488845, 1359488845);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_enrol_authorize`
--

CREATE TABLE `mdl_enrol_authorize` (
  `id` bigint(10) NOT NULL,
  `paymentmethod` varchar(6) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'cc',
  `refundinfo` smallint(4) NOT NULL DEFAULT '0',
  `ccname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `instanceid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `transid` bigint(20) NOT NULL DEFAULT '0',
  `status` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `settletime` bigint(10) NOT NULL DEFAULT '0',
  `amount` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `currency` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'USD'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all known information about authorize.net transactions';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_enrol_authorize_refunds`
--

CREATE TABLE `mdl_enrol_authorize_refunds` (
  `id` bigint(10) NOT NULL,
  `orderid` bigint(10) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `amount` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `transid` bigint(20) DEFAULT '0',
  `settletime` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Authorize.net refunds';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_enrol_flatfile`
--

CREATE TABLE `mdl_enrol_flatfile` (
  `id` bigint(10) NOT NULL,
  `action` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `roleid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='enrol_flatfile table retrofitted from MySQL';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_enrol_paypal`
--

CREATE TABLE `mdl_enrol_paypal` (
  `id` bigint(10) NOT NULL,
  `business` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `receiver_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `receiver_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `instanceid` bigint(10) NOT NULL DEFAULT '0',
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tax` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_name1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_selection1_x` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_name2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_selection2_x` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `payment_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pending_reason` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `reason_code` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `txn_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent_txn_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `payment_type` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timeupdated` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all known information about PayPal transactions';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_event`
--

CREATE TABLE `mdl_event` (
  `id` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `format` smallint(4) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `repeatid` bigint(10) NOT NULL DEFAULT '0',
  `modulename` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `instance` bigint(10) NOT NULL DEFAULT '0',
  `eventtype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeduration` bigint(10) NOT NULL DEFAULT '0',
  `visible` smallint(4) NOT NULL DEFAULT '1',
  `uuid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sequence` bigint(10) NOT NULL DEFAULT '1',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `subscriptionid` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For everything with a time associated to it';

--
-- Dumping data for table `mdl_event`
--

INSERT INTO `mdl_event` (`id`, `name`, `description`, `format`, `courseid`, `groupid`, `userid`, `repeatid`, `modulename`, `instance`, `eventtype`, `timestart`, `timeduration`, `visible`, `uuid`, `sequence`, `timemodified`, `subscriptionid`) VALUES
(1, 'Clase en vivo', '<div class=\"no-overflow\"><p><iframe src=\"http://www.tecprecincsrl.com.ar/elearning.html\" frameborder=\"0\" height=\"410\" scrolling=\"auto\" width=\"100%\"></iframe></p></div>', 1, 2, 0, 2, 0, 'chat', 1, 'chattime', 1359201600, 0, 1, '', 1, 1359474098, NULL),
(2, 'Marcelo Privado', '<div class=\"no-overflow\"><p><iframe src=\"http://www.tecprecincsrl.com.ar/elearning.html\" frameborder=\"0\" height=\"410\" scrolling=\"auto\" width=\"100%\"></iframe></p></div>', 1, 41, 0, 5, 0, 'chat', 3, 'chattime', 1359478500, 0, 1, '', 1, 1359489137, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_events_handlers`
--

CREATE TABLE `mdl_events_handlers` (
  `id` bigint(10) NOT NULL,
  `eventname` varchar(166) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `component` varchar(166) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `handlerfile` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `handlerfunction` longtext COLLATE utf8_unicode_ci,
  `schedule` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `internal` tinyint(2) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table is for storing which components requests what typ';

--
-- Dumping data for table `mdl_events_handlers`
--

INSERT INTO `mdl_events_handlers` (`id`, `eventname`, `component`, `handlerfile`, `handlerfunction`, `schedule`, `status`, `internal`) VALUES
(1, 'portfolio_send', 'moodle', '/lib/portfolio.php', 's:22:\"portfolio_handle_event\";', 'cron', 0, 0),
(2, 'user_logout', 'mod_chat', '/mod/chat/lib.php', 's:16:\"chat_user_logout\";', 'instant', 0, 1),
(3, 'role_assigned', 'mod_forum', '/mod/forum/lib.php', 's:24:\"forum_user_role_assigned\";', 'instant', 0, 1),
(4, 'user_unenrolled', 'mod_forum', '/mod/forum/lib.php', 's:21:\"forum_user_unenrolled\";', 'instant', 0, 1),
(5, 'quiz_attempt_submitted', 'mod_quiz', '/mod/quiz/locallib.php', 's:30:\"quiz_attempt_submitted_handler\";', 'cron', 0, 1),
(6, 'quiz_attempt_overdue', 'mod_quiz', '/mod/quiz/locallib.php', 's:28:\"quiz_attempt_overdue_handler\";', 'cron', 0, 1),
(7, 'groups_member_added', 'mod_quiz', '/mod/quiz/locallib.php', 's:32:\"quiz_groups_member_added_handler\";', 'instant', 0, 1),
(8, 'groups_member_removed', 'mod_quiz', '/mod/quiz/locallib.php', 's:34:\"quiz_groups_member_removed_handler\";', 'instant', 0, 1),
(9, 'groups_members_removed', 'mod_quiz', '/mod/quiz/locallib.php', 's:35:\"quiz_groups_members_removed_handler\";', 'instant', 0, 1),
(10, 'groups_group_deleted', 'mod_quiz', '/mod/quiz/locallib.php', 's:33:\"quiz_groups_group_deleted_handler\";', 'instant', 0, 1),
(11, 'role_assigned', 'enrol_category', '/enrol/category/locallib.php', 'a:2:{i:0;s:22:\"enrol_category_handler\";i:1;s:13:\"role_assigned\";}', 'instant', 0, 1),
(12, 'role_unassigned', 'enrol_category', '/enrol/category/locallib.php', 'a:2:{i:0;s:22:\"enrol_category_handler\";i:1;s:15:\"role_unassigned\";}', 'instant', 0, 1),
(13, 'cohort_member_added', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:\"enrol_cohort_handler\";i:1;s:12:\"member_added\";}', 'instant', 0, 1),
(14, 'cohort_member_removed', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:\"enrol_cohort_handler\";i:1;s:14:\"member_removed\";}', 'instant', 0, 1),
(15, 'cohort_deleted', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:\"enrol_cohort_handler\";i:1;s:7:\"deleted\";}', 'instant', 0, 1),
(16, 'role_assigned', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:13:\"role_assigned\";}', 'instant', 0, 1),
(17, 'role_unassigned', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:15:\"role_unassigned\";}', 'instant', 0, 1),
(18, 'user_enrolled', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:13:\"user_enrolled\";}', 'instant', 0, 1),
(19, 'user_unenrolled', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:15:\"user_unenrolled\";}', 'instant', 0, 1),
(20, 'user_enrol_modified', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:19:\"user_enrol_modified\";}', 'instant', 0, 1),
(21, 'course_deleted', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:\"enrol_meta_handler\";i:1;s:14:\"course_deleted\";}', 'instant', 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_events_queue`
--

CREATE TABLE `mdl_events_queue` (
  `id` bigint(10) NOT NULL,
  `eventdata` longtext COLLATE utf8_unicode_ci NOT NULL,
  `stackdump` longtext COLLATE utf8_unicode_ci,
  `userid` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table is for storing queued events. It stores only one ';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_events_queue_handlers`
--

CREATE TABLE `mdl_events_queue_handlers` (
  `id` bigint(10) NOT NULL,
  `queuedeventid` bigint(10) NOT NULL,
  `handlerid` bigint(10) NOT NULL,
  `status` bigint(10) DEFAULT NULL,
  `errormessage` longtext COLLATE utf8_unicode_ci,
  `timemodified` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This is the list of queued handlers for processing. The even';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_event_subscriptions`
--

CREATE TABLE `mdl_event_subscriptions` (
  `id` bigint(10) NOT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `eventtype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pollinterval` bigint(10) NOT NULL DEFAULT '0',
  `lastupdated` bigint(10) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks subscriptions to remote calendars.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_external_functions`
--

CREATE TABLE `mdl_external_functions` (
  `id` bigint(10) NOT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `methodname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `classpath` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `capabilities` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='list of all external functions';

--
-- Dumping data for table `mdl_external_functions`
--

INSERT INTO `mdl_external_functions` (`id`, `name`, `classname`, `methodname`, `classpath`, `component`, `capabilities`) VALUES
(1, 'moodle_group_create_groups', 'core_group_external', 'create_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(2, 'core_group_create_groups', 'core_group_external', 'create_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(3, 'moodle_group_get_groups', 'core_group_external', 'get_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(4, 'core_group_get_groups', 'core_group_external', 'get_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(5, 'moodle_group_get_course_groups', 'core_group_external', 'get_course_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(6, 'core_group_get_course_groups', 'core_group_external', 'get_course_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(7, 'moodle_group_delete_groups', 'core_group_external', 'delete_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(8, 'core_group_delete_groups', 'core_group_external', 'delete_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(9, 'moodle_group_get_groupmembers', 'core_group_external', 'get_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(10, 'core_group_get_group_members', 'core_group_external', 'get_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(11, 'moodle_group_add_groupmembers', 'core_group_external', 'add_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(12, 'core_group_add_group_members', 'core_group_external', 'add_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(13, 'moodle_group_delete_groupmembers', 'core_group_external', 'delete_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(14, 'core_group_delete_group_members', 'core_group_external', 'delete_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(15, 'core_group_create_groupings', 'core_group_external', 'create_groupings', 'group/externallib.php', 'moodle', ''),
(16, 'core_group_update_groupings', 'core_group_external', 'update_groupings', 'group/externallib.php', 'moodle', ''),
(17, 'core_group_get_groupings', 'core_group_external', 'get_groupings', 'group/externallib.php', 'moodle', ''),
(18, 'core_group_get_course_groupings', 'core_group_external', 'get_course_groupings', 'group/externallib.php', 'moodle', ''),
(19, 'core_group_delete_groupings', 'core_group_external', 'delete_groupings', 'group/externallib.php', 'moodle', ''),
(20, 'core_group_assign_grouping', 'core_group_external', 'assign_grouping', 'group/externallib.php', 'moodle', ''),
(21, 'core_group_unassign_grouping', 'core_group_external', 'unassign_grouping', 'group/externallib.php', 'moodle', ''),
(22, 'moodle_file_get_files', 'core_files_external', 'get_files', 'files/externallib.php', 'moodle', ''),
(23, 'core_files_get_files', 'core_files_external', 'get_files', 'files/externallib.php', 'moodle', ''),
(24, 'moodle_file_upload', 'core_files_external', 'upload', 'files/externallib.php', 'moodle', ''),
(25, 'core_files_upload', 'core_files_external', 'upload', 'files/externallib.php', 'moodle', ''),
(26, 'moodle_user_create_users', 'core_user_external', 'create_users', 'user/externallib.php', 'moodle', 'moodle/user:create'),
(27, 'core_user_create_users', 'core_user_external', 'create_users', 'user/externallib.php', 'moodle', 'moodle/user:create'),
(28, 'moodle_user_get_users_by_id', 'core_user_external', 'get_users_by_id', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),
(29, 'core_user_get_users_by_id', 'core_user_external', 'get_users_by_id', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),
(30, 'moodle_user_get_users_by_courseid', 'core_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(31, 'moodle_user_get_course_participants_by_id', 'core_user_external', 'get_course_user_profiles', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(32, 'core_user_get_course_user_profiles', 'core_user_external', 'get_course_user_profiles', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(33, 'moodle_user_delete_users', 'core_user_external', 'delete_users', 'user/externallib.php', 'moodle', 'moodle/user:delete'),
(34, 'core_user_delete_users', 'core_user_external', 'delete_users', 'user/externallib.php', 'moodle', 'moodle/user:delete'),
(35, 'moodle_user_update_users', 'core_user_external', 'update_users', 'user/externallib.php', 'moodle', 'moodle/user:update'),
(36, 'core_user_update_users', 'core_user_external', 'update_users', 'user/externallib.php', 'moodle', 'moodle/user:update'),
(37, 'core_enrol_get_enrolled_users_with_capability', 'core_enrol_external', 'get_enrolled_users_with_capability', 'enrol/externallib.php', 'moodle', ''),
(38, 'moodle_enrol_get_enrolled_users', 'moodle_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/site:viewparticipants, moodle/course:viewparticipants,\n            moodle/role:review, moodle/site:accessallgroups, moodle/course:enrolreview'),
(39, 'core_enrol_get_enrolled_users', 'core_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(40, 'moodle_enrol_get_users_courses', 'core_enrol_external', 'get_users_courses', 'enrol/externallib.php', 'moodle', 'moodle/course:viewparticipants'),
(41, 'core_enrol_get_users_courses', 'core_enrol_external', 'get_users_courses', 'enrol/externallib.php', 'moodle', 'moodle/course:viewparticipants'),
(42, 'moodle_role_assign', 'core_role_external', 'assign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(43, 'core_role_assign_roles', 'core_role_external', 'assign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(44, 'moodle_role_unassign', 'core_role_external', 'unassign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(45, 'core_role_unassign_roles', 'core_role_external', 'unassign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(46, 'core_course_get_contents', 'core_course_external', 'get_course_contents', 'course/externallib.php', 'moodle', 'moodle/course:update,moodle/course:viewhiddencourses'),
(47, 'moodle_course_get_courses', 'core_course_external', 'get_courses', 'course/externallib.php', 'moodle', 'moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),
(48, 'core_course_get_courses', 'core_course_external', 'get_courses', 'course/externallib.php', 'moodle', 'moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),
(49, 'moodle_course_create_courses', 'core_course_external', 'create_courses', 'course/externallib.php', 'moodle', 'moodle/course:create,moodle/course:visibility'),
(50, 'core_course_create_courses', 'core_course_external', 'create_courses', 'course/externallib.php', 'moodle', 'moodle/course:create,moodle/course:visibility'),
(51, 'core_course_delete_courses', 'core_course_external', 'delete_courses', 'course/externallib.php', 'moodle', 'moodle/course:delete'),
(52, 'core_course_duplicate_course', 'core_course_external', 'duplicate_course', 'course/externallib.php', 'moodle', 'moodle/backup:backupcourse,moodle/restore:restorecourse,moodle/course:create'),
(53, 'core_course_get_categories', 'core_course_external', 'get_categories', 'course/externallib.php', 'moodle', 'moodle/category:viewhiddencategories'),
(54, 'core_course_create_categories', 'core_course_external', 'create_categories', 'course/externallib.php', 'moodle', 'moodle/category:manage'),
(55, 'core_course_update_categories', 'core_course_external', 'update_categories', 'course/externallib.php', 'moodle', 'moodle/category:manage'),
(56, 'core_course_delete_categories', 'core_course_external', 'delete_categories', 'course/externallib.php', 'moodle', 'moodle/category:manage'),
(57, 'core_course_import_course', 'core_course_external', 'import_course', 'course/externallib.php', 'moodle', 'moodle/backup:backuptargetimport, moodle/restore:restoretargetimport'),
(58, 'moodle_message_send_instantmessages', 'core_message_external', 'send_instant_messages', 'message/externallib.php', 'moodle', 'moodle/site:sendmessage'),
(59, 'core_message_send_instant_messages', 'core_message_external', 'send_instant_messages', 'message/externallib.php', 'moodle', 'moodle/site:sendmessage'),
(60, 'moodle_notes_create_notes', 'core_notes_external', 'create_notes', 'notes/externallib.php', 'moodle', 'moodle/notes:manage'),
(61, 'core_notes_create_notes', 'core_notes_external', 'create_notes', 'notes/externallib.php', 'moodle', 'moodle/notes:manage'),
(62, 'moodle_webservice_get_siteinfo', 'core_webservice_external', 'get_site_info', 'webservice/externallib.php', 'moodle', ''),
(63, 'core_webservice_get_site_info', 'core_webservice_external', 'get_site_info', 'webservice/externallib.php', 'moodle', ''),
(64, 'core_get_string', 'core_external', 'get_string', 'lib/external/externallib.php', 'moodle', ''),
(65, 'core_get_strings', 'core_external', 'get_strings', 'lib/external/externallib.php', 'moodle', ''),
(66, 'core_get_component_strings', 'core_external', 'get_component_strings', 'lib/external/externallib.php', 'moodle', ''),
(67, 'mod_assign_get_grades', 'mod_assign_external', 'get_grades', 'mod/assign/externallib.php', 'mod_assign', ''),
(68, 'mod_assign_get_assignments', 'mod_assign_external', 'get_assignments', 'mod/assign/externallib.php', 'mod_assign', ''),
(69, 'moodle_enrol_manual_enrol_users', 'enrol_manual_external', 'enrol_users', 'enrol/manual/externallib.php', 'enrol_manual', 'enrol/manual:enrol'),
(70, 'enrol_manual_enrol_users', 'enrol_manual_external', 'enrol_users', 'enrol/manual/externallib.php', 'enrol_manual', 'enrol/manual:enrol');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_external_services`
--

CREATE TABLE `mdl_external_services` (
  `id` bigint(10) NOT NULL,
  `name` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL,
  `requiredcapability` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `restrictedusers` tinyint(1) NOT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `downloadfiles` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='built in and custom external services';

--
-- Dumping data for table `mdl_external_services`
--

INSERT INTO `mdl_external_services` (`id`, `name`, `enabled`, `requiredcapability`, `restrictedusers`, `component`, `timecreated`, `timemodified`, `shortname`, `downloadfiles`) VALUES
(1, 'Moodle mobile web service', 0, NULL, 0, 'moodle', 1359214485, NULL, 'moodle_mobile_app', 1);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_external_services_functions`
--

CREATE TABLE `mdl_external_services_functions` (
  `id` bigint(10) NOT NULL,
  `externalserviceid` bigint(10) NOT NULL,
  `functionname` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='lists functions available in each service group';

--
-- Dumping data for table `mdl_external_services_functions`
--

INSERT INTO `mdl_external_services_functions` (`id`, `externalserviceid`, `functionname`) VALUES
(1, 1, 'moodle_enrol_get_users_courses'),
(2, 1, 'moodle_enrol_get_enrolled_users'),
(3, 1, 'moodle_user_get_users_by_id'),
(4, 1, 'moodle_webservice_get_siteinfo'),
(5, 1, 'moodle_notes_create_notes'),
(6, 1, 'moodle_user_get_course_participants_by_id'),
(7, 1, 'moodle_user_get_users_by_courseid'),
(8, 1, 'moodle_message_send_instantmessages'),
(9, 1, 'core_course_get_contents'),
(10, 1, 'core_get_component_strings');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_external_services_users`
--

CREATE TABLE `mdl_external_services_users` (
  `id` bigint(10) NOT NULL,
  `externalserviceid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `iprestriction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='users allowed to use services with restricted users flag';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_external_tokens`
--

CREATE TABLE `mdl_external_tokens` (
  `id` bigint(10) NOT NULL,
  `token` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tokentype` smallint(4) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `externalserviceid` bigint(10) NOT NULL,
  `sid` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contextid` bigint(10) NOT NULL,
  `creatorid` bigint(10) NOT NULL DEFAULT '1',
  `iprestriction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `lastaccess` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Security tokens for accessing of external services';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback`
--

CREATE TABLE `mdl_feedback` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `anonymous` tinyint(1) NOT NULL DEFAULT '1',
  `email_notification` tinyint(1) NOT NULL DEFAULT '1',
  `multiple_submit` tinyint(1) NOT NULL DEFAULT '1',
  `autonumbering` tinyint(1) NOT NULL DEFAULT '1',
  `site_after_submit` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `page_after_submit` longtext COLLATE utf8_unicode_ci NOT NULL,
  `page_after_submitformat` tinyint(2) NOT NULL DEFAULT '0',
  `publish_stats` tinyint(1) NOT NULL DEFAULT '0',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionsubmit` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all feedbacks';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_completed`
--

CREATE TABLE `mdl_feedback_completed` (
  `id` bigint(10) NOT NULL,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `random_response` bigint(10) NOT NULL DEFAULT '0',
  `anonymous_response` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='filled out feedback';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_completedtmp`
--

CREATE TABLE `mdl_feedback_completedtmp` (
  `id` bigint(10) NOT NULL,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `guestid` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `random_response` bigint(10) NOT NULL DEFAULT '0',
  `anonymous_response` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='filled out feedback';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_item`
--

CREATE TABLE `mdl_feedback_item` (
  `id` bigint(10) NOT NULL,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `template` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `presentation` longtext COLLATE utf8_unicode_ci NOT NULL,
  `typ` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hasvalue` tinyint(1) NOT NULL DEFAULT '0',
  `position` smallint(3) NOT NULL DEFAULT '0',
  `required` tinyint(1) NOT NULL DEFAULT '0',
  `dependitem` bigint(10) NOT NULL DEFAULT '0',
  `dependvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='feedback_items';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_sitecourse_map`
--

CREATE TABLE `mdl_feedback_sitecourse_map` (
  `id` bigint(10) NOT NULL,
  `feedbackid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='feedback sitecourse map';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_template`
--

CREATE TABLE `mdl_feedback_template` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `ispublic` tinyint(1) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='templates of feedbackstructures';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_tracking`
--

CREATE TABLE `mdl_feedback_tracking` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='feedback trackingdata';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_value`
--

CREATE TABLE `mdl_feedback_value` (
  `id` bigint(10) NOT NULL,
  `course_id` bigint(10) NOT NULL DEFAULT '0',
  `item` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='values of the completeds';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_feedback_valuetmp`
--

CREATE TABLE `mdl_feedback_valuetmp` (
  `id` bigint(10) NOT NULL,
  `course_id` bigint(10) NOT NULL DEFAULT '0',
  `item` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='values of the completedstmp';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_files`
--

CREATE TABLE `mdl_files` (
  `id` bigint(10) NOT NULL,
  `contenthash` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pathnamehash` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `filearea` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `filepath` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `filename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` bigint(10) DEFAULT NULL,
  `filesize` bigint(10) NOT NULL,
  `mimetype` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `source` longtext COLLATE utf8_unicode_ci,
  `author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `license` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `referencefileid` bigint(10) DEFAULT NULL,
  `referencelastsync` bigint(10) DEFAULT NULL,
  `referencelifetime` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='description of files, content is stored in sha1 file pool';

--
-- Dumping data for table `mdl_files`
--

INSERT INTO `mdl_files` (`id`, `contenthash`, `pathnamehash`, `contextid`, `component`, `filearea`, `itemid`, `filepath`, `filename`, `userid`, `filesize`, `mimetype`, `status`, `source`, `author`, `license`, `timecreated`, `timemodified`, `sortorder`, `referencefileid`, `referencelastsync`, `referencelifetime`) VALUES
(1, '03bc5f1e2ea410d1140420d00cc226b729ad5459', '47f20fc4fa14f7e991d82b86ff220fd03a0ebc87', 5, 'user', 'draft', 726500628, '/', 'jos_users.csv', 2, 13484, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219205, 1359219205, 0, NULL, NULL, NULL),
(2, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'f58d41cf9664f31191d00e440392cafdb60001fc', 5, 'user', 'draft', 726500628, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219205, 1359219205, 0, NULL, NULL, NULL),
(3, 'c739094316296c0c54999ca6ac551b9ecb78d7e6', 'b9019cc045ca4962f74b0a33f5a188ed7ee5b28f', 5, 'user', 'draft', 277495720, '/', 'jos_users.csv', 2, 5834, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219274, 1359219274, 0, NULL, NULL, NULL),
(4, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '5b27bc0a8657bf5670833af71e0985763b2f7b1e', 5, 'user', 'draft', 277495720, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219274, 1359219274, 0, NULL, NULL, NULL),
(5, 'b150c1dab1614638de6d1820530246d574e209af', '26a39c8c60bf2a3b0dbc133c04bf113b39caedb0', 5, 'user', 'draft', 174959104, '/', 'jos_users.csv', 2, 5586, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219361, 1359219361, 0, NULL, NULL, NULL),
(6, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '34be137c995a815307669302562fe0fe3d4cc145', 5, 'user', 'draft', 174959104, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219361, 1359219361, 0, NULL, NULL, NULL),
(7, '5068e561762a25941c5870bcccc94c2594a8002c', '2dcb50e78dc6a0947abca1bed838e0d0fc4c8b3c', 5, 'user', 'draft', 764477268, '/', 'jos_users.csv', 2, 3871, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219789, 1359219789, 0, NULL, NULL, NULL),
(8, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'f0b2493bd0b42274e66c82288340b76a91a7db26', 5, 'user', 'draft', 764477268, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219789, 1359219789, 0, NULL, NULL, NULL),
(9, '5068e561762a25941c5870bcccc94c2594a8002c', 'f7225bd694f4fc78e76b4a4bfbdc084067b16907', 5, 'user', 'draft', 298967600, '/', 'jos_users.csv', 2, 3871, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219912, 1359219912, 0, NULL, NULL, NULL),
(10, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '7206469e410ed2227bf7e551ceb8917fa8e7dc53', 5, 'user', 'draft', 298967600, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219912, 1359219912, 0, NULL, NULL, NULL),
(11, '86c4e15c3d1cb64e9ee6ed3dc7715284482e25cb', 'fe2d62399324ffcb34bac95f8f15c48d0d6d4ffd', 5, 'user', 'draft', 267505942, '/', 'jos_users.csv', 2, 3836, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359219969, 1359219969, 0, NULL, NULL, NULL),
(12, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'edefe883ec92a7a1295e62172961f125c4559456', 5, 'user', 'draft', 267505942, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359219969, 1359219969, 0, NULL, NULL, NULL),
(13, '3e73b332a8b570b0e08fe9b53e8b0fa0544def11', 'becf1211b7d40d5865a05e754c3b2e0e5815bd9b', 5, 'user', 'draft', 26155917, '/', 'jos_users.csv', 2, 3782, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220095, 1359220095, 0, NULL, NULL, NULL),
(14, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '3ed692ea3f486a88b0539bd4b34b769e204f1465', 5, 'user', 'draft', 26155917, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220095, 1359220095, 0, NULL, NULL, NULL),
(15, '3e73b332a8b570b0e08fe9b53e8b0fa0544def11', 'd78bdac5daa3ee58d6fdfc528506aaca11b25a5e', 5, 'user', 'draft', 505365854, '/', 'jos_users.csv', 2, 3782, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220189, 1359220189, 0, NULL, NULL, NULL),
(16, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '707eceeb9654a5c326bd9a0ca2a3e453ee00f2f9', 5, 'user', 'draft', 505365854, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220189, 1359220189, 0, NULL, NULL, NULL),
(18, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'c253697446936d4aee893abebbefedc3df89aba5', 5, 'user', 'draft', 105688041, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220364, 1359220364, 0, NULL, NULL, NULL),
(20, '354557b8e762755425c31391769e1fc781712bb6', 'dea8fada9338e8df86e72fdc12d77902079c866b', 5, 'user', 'draft', 105688041, '/', 'jos_users.csv', 2, 3870, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220387, 1359220387, 0, NULL, NULL, NULL),
(21, '354557b8e762755425c31391769e1fc781712bb6', '839c7d53e5333585c1db18042333a1185d58201a', 5, 'user', 'draft', 873159135, '/', 'jos_users.csv', 2, 3870, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:13:\"jos_users.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220424, 1359220424, 0, NULL, NULL, NULL),
(22, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '604e5022868e25b0f0f3d9a089af26d8f09d33d0', 5, 'user', 'draft', 873159135, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220424, 1359220424, 0, NULL, NULL, NULL),
(23, '94ca750f22716de721f4fa32705db7e6e605ebc8', '2286f12fadcddaf241d25b6e3129d6f653add4dd', 5, 'user', 'draft', 148880619, '/', 'usuairos.csv', 2, 3553, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:12:\"usuairos.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220495, 1359220495, 0, NULL, NULL, NULL),
(24, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '892b72df20bf79dab5b2356523d926915ff107f3', 5, 'user', 'draft', 148880619, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220495, 1359220495, 0, NULL, NULL, NULL),
(25, '706a2c10f9400b39bfa555965ba606c28a0be94d', 'e3be73d40ee0b5901479a89dd47f78f3aa6c2754', 5, 'user', 'draft', 255582841, '/', 'usuairos.csv', 2, 3642, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:12:\"usuairos.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220785, 1359220785, 0, NULL, NULL, NULL),
(26, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '9ffac88a2c772e0d2599c80b134f26172de333f7', 5, 'user', 'draft', 255582841, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220785, 1359220785, 0, NULL, NULL, NULL),
(27, 'a4d40f67492966d5ccb2fe98c7b4039d57b931a3', '9f830877630fffb321a4c7826021cbba90d4a7c0', 5, 'user', 'draft', 811276095, '/', 'usuairos.csv', 2, 3640, 'text/csv', 0, 'O:8:\"stdClass\":1:{s:6:\"source\";s:12:\"usuairos.csv\";}', 'Rafael Sanchez', 'allrightsreserved', 1359220880, 1359220880, 0, NULL, NULL, NULL),
(28, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '308681bd6d205207a02899958a8af09c6e2c8a4c', 5, 'user', 'draft', 811276095, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359220880, 1359220880, 0, NULL, NULL, NULL),
(29, '349fa5408e93fb7e7e0521c9c98078fa05576e2d', '10cb61d9dbb13ce39b9cd183e94d356a5f16d5b5', 5, 'user', 'draft', 890719723, '/', 'EPP Módulo COLUMNA LUMBALGIA 13-11-07  CD.ppt', 2, 3436544, 'application/vnd.ms-powerpoint', 0, 'EPP Módulo COLUMNA LUMBALGIA 13-11-07  CD.ppt', 'Rafael Sanchez', 'allrightsreserved', 1359473150, 1359473150, 0, NULL, NULL, NULL),
(30, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'ea3aba93d622646a803d62d46f5f9b387015d924', 5, 'user', 'draft', 890719723, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359473151, 1359473151, 0, NULL, NULL, NULL),
(31, '349fa5408e93fb7e7e0521c9c98078fa05576e2d', 'b4baf2c891054cc42bd85fbb4fdb1105d7f6c7bc', 287, 'mod_resource', 'content', 0, '/', 'EPP Módulo COLUMNA LUMBALGIA 13-11-07  CD.ppt', 2, 3436544, 'application/vnd.ms-powerpoint', 0, 'EPP Módulo COLUMNA LUMBALGIA 13-11-07  CD.ppt', 'Rafael Sanchez', 'allrightsreserved', 1359473150, 1359473150, 1, NULL, NULL, NULL),
(32, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'a16d678da3baf67804f5b3f920c946b8f954e819', 287, 'mod_resource', 'content', 0, '/', '.', 2, 0, NULL, 0, NULL, NULL, NULL, 1359473151, 1359473151, 0, NULL, NULL, NULL),
(33, '09b9107859f273bcbdbcb8c04aa3ca592f5e30f1', 'f96946a0b74135650df710e195b58ce833bf8645', 31, 'user', 'draft', 308535996, '/', 'smiley-1024x768.jpg', 7, 80245, 'image/jpeg', 0, 'smiley-1024x768.jpg', 'Oscar Castaño', 'allrightsreserved', 1360755827, 1360755827, 0, NULL, NULL, NULL),
(34, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '3768ba4352d39d3b18c01f9b054b0f01f2560d9d', 31, 'user', 'draft', 308535996, '/', '.', 7, 0, NULL, 0, NULL, NULL, NULL, 1360755827, 1360755827, 0, NULL, NULL, NULL),
(35, '125f0a0f043fb81dfd3070d1727251926747cda9', '21ccbfbcb334cbea524129f0de1bbb0c9e8c8d65', 1, 'core', 'preview', 0, '/thumb/', '09b9107859f273bcbdbcb8c04aa3ca592f5e30f1', NULL, 7050, 'image/png', 0, NULL, NULL, NULL, 1360755828, 1360755828, 0, NULL, NULL, NULL),
(36, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '74c104d54c05b5f8c633a36da516d37e6c5279e4', 1, 'core', 'preview', 0, '/thumb/', '.', NULL, 0, NULL, 0, NULL, NULL, NULL, 1360755828, 1360755828, 0, NULL, NULL, NULL),
(37, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '884555719c50529b9df662a38619d04b5b11e25c', 1, 'core', 'preview', 0, '/', '.', NULL, 0, NULL, 0, NULL, NULL, NULL, 1360755828, 1360755828, 0, NULL, NULL, NULL),
(40, '6570f2752ebee241c01c86730b46c4be7fc810ab', 'cf492287cfd8d6e6d6e7bdf2abe2a73443635b0c', 31, 'user', 'icon', 0, '/', 'f1.png', NULL, 12810, 'image/png', 0, NULL, NULL, NULL, 1360755851, 1360755851, 0, NULL, NULL, NULL),
(41, 'da39a3ee5e6b4b0d3255bfef95601890afd80709', '466ee1f722960423b17acd9c4ad69ddf02a2eee8', 31, 'user', 'icon', 0, '/', '.', NULL, 0, NULL, 0, NULL, NULL, NULL, 1360755851, 1360755851, 0, NULL, NULL, NULL),
(42, 'aefdda040e7d1d5a409b90523c08e18ca87f0c06', '08af4d96300ec4e7cd6209f4241c269d5cc35c90', 31, 'user', 'icon', 0, '/', 'f2.png', NULL, 2028, 'image/png', 0, NULL, NULL, NULL, 1360755851, 1360755851, 0, NULL, NULL, NULL),
(43, '6872ffa021e211ebefe8e4c4b882c0374338dde4', 'aa40d722d7be6ce9944cb44b45feb068b2349104', 31, 'user', 'icon', 0, '/', 'f3.png', NULL, 232999, 'image/png', 0, NULL, NULL, NULL, 1360755851, 1360755851, 0, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_files_reference`
--

CREATE TABLE `mdl_files_reference` (
  `id` bigint(10) NOT NULL,
  `repositoryid` bigint(10) NOT NULL,
  `lastsync` bigint(10) DEFAULT NULL,
  `lifetime` bigint(10) DEFAULT NULL,
  `reference` longtext COLLATE utf8_unicode_ci,
  `referencehash` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Store files references';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_filter_active`
--

CREATE TABLE `mdl_filter_active` (
  `id` bigint(10) NOT NULL,
  `filter` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `active` smallint(4) NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores information about which filters are active in which c';

--
-- Dumping data for table `mdl_filter_active`
--

INSERT INTO `mdl_filter_active` (`id`, `filter`, `contextid`, `active`, `sortorder`) VALUES
(1, 'filter/activitynames', 1, 1, 1),
(2, 'filter/mediaplugin', 1, 1, 2),
(3, 'filter/censor', 1, -9999, 3),
(4, 'filter/multilang', 1, -9999, 4),
(5, 'filter/urltolink', 1, -9999, 5),
(6, 'filter/data', 1, -9999, 6),
(7, 'filter/glossary', 1, -9999, 7),
(8, 'filter/tidy', 1, -9999, 8),
(9, 'filter/emoticon', 1, -9999, 9),
(10, 'filter/algebra', 1, -9999, 10),
(11, 'filter/tex', 1, -9999, 11),
(12, 'filter/emailprotect', 1, -9999, 12);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_filter_config`
--

CREATE TABLE `mdl_filter_config` (
  `id` bigint(10) NOT NULL,
  `filter` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores per-context configuration settings for filters which ';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_folder`
--

CREATE TABLE `mdl_folder` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='each record is one folder resource';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum`
--

CREATE TABLE `mdl_forum` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'general',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `assessed` bigint(10) NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `maxbytes` bigint(10) NOT NULL DEFAULT '0',
  `maxattachments` bigint(10) NOT NULL DEFAULT '1',
  `forcesubscribe` tinyint(1) NOT NULL DEFAULT '0',
  `trackingtype` tinyint(2) NOT NULL DEFAULT '1',
  `rsstype` tinyint(2) NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `warnafter` bigint(10) NOT NULL DEFAULT '0',
  `blockafter` bigint(10) NOT NULL DEFAULT '0',
  `blockperiod` bigint(10) NOT NULL DEFAULT '0',
  `completiondiscussions` int(9) NOT NULL DEFAULT '0',
  `completionreplies` int(9) NOT NULL DEFAULT '0',
  `completionposts` int(9) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Forums contain and structure discussion';

--
-- Dumping data for table `mdl_forum`
--

INSERT INTO `mdl_forum` (`id`, `course`, `type`, `name`, `intro`, `introformat`, `assessed`, `assesstimestart`, `assesstimefinish`, `scale`, `maxbytes`, `maxattachments`, `forcesubscribe`, `trackingtype`, `rsstype`, `rssarticles`, `timemodified`, `warnafter`, `blockafter`, `blockperiod`, `completiondiscussions`, `completionreplies`, `completionposts`) VALUES
(1, 2, 'news', 'Novedades', 'Novedades y anuncios', 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1359215604, 0, 0, 0, 0, 0, 0),
(2, 25, 'news', 'Novedades', 'Novedades y anuncios', 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1359229918, 0, 0, 0, 0, 0, 0),
(3, 41, 'news', 'Novedades', 'Novedades y anuncios', 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1359488858, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_discussions`
--

CREATE TABLE `mdl_forum_discussions` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `forum` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `firstpost` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '-1',
  `assessed` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) NOT NULL DEFAULT '0',
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Forums are composed of discussions';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_posts`
--

CREATE TABLE `mdl_forum_posts` (
  `id` bigint(10) NOT NULL,
  `discussion` bigint(10) NOT NULL DEFAULT '0',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `created` bigint(10) NOT NULL DEFAULT '0',
  `modified` bigint(10) NOT NULL DEFAULT '0',
  `mailed` tinyint(2) NOT NULL DEFAULT '0',
  `subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `message` longtext COLLATE utf8_unicode_ci NOT NULL,
  `messageformat` tinyint(2) NOT NULL DEFAULT '0',
  `messagetrust` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `totalscore` smallint(4) NOT NULL DEFAULT '0',
  `mailnow` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='All posts are stored in this table';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_queue`
--

CREATE TABLE `mdl_forum_queue` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `discussionid` bigint(10) NOT NULL DEFAULT '0',
  `postid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For keeping track of posts that will be mailed in digest for';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_read`
--

CREATE TABLE `mdl_forum_read` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forumid` bigint(10) NOT NULL DEFAULT '0',
  `discussionid` bigint(10) NOT NULL DEFAULT '0',
  `postid` bigint(10) NOT NULL DEFAULT '0',
  `firstread` bigint(10) NOT NULL DEFAULT '0',
  `lastread` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks each users read posts';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_subscriptions`
--

CREATE TABLE `mdl_forum_subscriptions` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forum` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Keeps track of who is subscribed to what forum';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_forum_track_prefs`
--

CREATE TABLE `mdl_forum_track_prefs` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forumid` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks each users untracked forums';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary`
--

CREATE TABLE `mdl_glossary` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `allowduplicatedentries` tinyint(2) NOT NULL DEFAULT '0',
  `displayformat` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'dictionary',
  `mainglossary` tinyint(2) NOT NULL DEFAULT '0',
  `showspecial` tinyint(2) NOT NULL DEFAULT '1',
  `showalphabet` tinyint(2) NOT NULL DEFAULT '1',
  `showall` tinyint(2) NOT NULL DEFAULT '1',
  `allowcomments` tinyint(2) NOT NULL DEFAULT '0',
  `allowprintview` tinyint(2) NOT NULL DEFAULT '1',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1',
  `defaultapproval` tinyint(2) NOT NULL DEFAULT '1',
  `approvaldisplayformat` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default',
  `globalglossary` tinyint(2) NOT NULL DEFAULT '0',
  `entbypage` smallint(3) NOT NULL DEFAULT '10',
  `editalways` tinyint(2) NOT NULL DEFAULT '0',
  `rsstype` tinyint(2) NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) NOT NULL DEFAULT '0',
  `assessed` bigint(10) NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionentries` int(9) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all glossaries';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary_alias`
--

CREATE TABLE `mdl_glossary_alias` (
  `id` bigint(10) NOT NULL,
  `entryid` bigint(10) NOT NULL DEFAULT '0',
  `alias` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='entries alias';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary_categories`
--

CREATE TABLE `mdl_glossary_categories` (
  `id` bigint(10) NOT NULL,
  `glossaryid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all categories for glossary entries';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary_entries`
--

CREATE TABLE `mdl_glossary_entries` (
  `id` bigint(10) NOT NULL,
  `glossaryid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `concept` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `definition` longtext COLLATE utf8_unicode_ci NOT NULL,
  `definitionformat` tinyint(2) NOT NULL DEFAULT '0',
  `definitiontrust` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `teacherentry` tinyint(2) NOT NULL DEFAULT '0',
  `sourceglossaryid` bigint(10) NOT NULL DEFAULT '0',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1',
  `casesensitive` tinyint(2) NOT NULL DEFAULT '0',
  `fullmatch` tinyint(2) NOT NULL DEFAULT '1',
  `approved` tinyint(2) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all glossary entries';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary_entries_categories`
--

CREATE TABLE `mdl_glossary_entries_categories` (
  `id` bigint(10) NOT NULL,
  `categoryid` bigint(10) NOT NULL DEFAULT '0',
  `entryid` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='categories of each glossary entry';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_glossary_formats`
--

CREATE TABLE `mdl_glossary_formats` (
  `id` bigint(10) NOT NULL,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `popupformatname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(2) NOT NULL DEFAULT '1',
  `showgroup` tinyint(2) NOT NULL DEFAULT '1',
  `defaultmode` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `defaulthook` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortkey` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortorder` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Setting of the display formats';

--
-- Dumping data for table `mdl_glossary_formats`
--

INSERT INTO `mdl_glossary_formats` (`id`, `name`, `popupformatname`, `visible`, `showgroup`, `defaultmode`, `defaulthook`, `sortkey`, `sortorder`) VALUES
(1, 'continuous', 'continuous', 1, 1, '', '', '', ''),
(2, 'dictionary', 'dictionary', 1, 1, '', '', '', ''),
(3, 'encyclopedia', 'encyclopedia', 1, 1, '', '', '', ''),
(4, 'entrylist', 'entrylist', 1, 1, '', '', '', ''),
(5, 'faq', 'faq', 1, 1, '', '', '', ''),
(6, 'fullwithauthor', 'fullwithauthor', 1, 1, '', '', '', ''),
(7, 'fullwithoutauthor', 'fullwithoutauthor', 1, 1, '', '', '', '');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_categories`
--

CREATE TABLE `mdl_grade_categories` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `parent` bigint(10) DEFAULT NULL,
  `depth` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fullname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `aggregation` bigint(10) NOT NULL DEFAULT '0',
  `keephigh` bigint(10) NOT NULL DEFAULT '0',
  `droplow` bigint(10) NOT NULL DEFAULT '0',
  `aggregateonlygraded` tinyint(1) NOT NULL DEFAULT '0',
  `aggregateoutcomes` tinyint(1) NOT NULL DEFAULT '0',
  `aggregatesubcats` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `hidden` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table keeps information about categories, used for grou';

--
-- Dumping data for table `mdl_grade_categories`
--

INSERT INTO `mdl_grade_categories` (`id`, `courseid`, `parent`, `depth`, `path`, `fullname`, `aggregation`, `keephigh`, `droplow`, `aggregateonlygraded`, `aggregateoutcomes`, `aggregatesubcats`, `timecreated`, `timemodified`, `hidden`) VALUES
(1, 2, NULL, 1, '/1/', '?', 11, 0, 0, 1, 0, 0, 1359215788, 1359215788, 0),
(2, 41, NULL, 1, '/2/', '?', 11, 0, 0, 1, 0, 0, 1359489137, 1359489137, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_categories_history`
--

CREATE TABLE `mdl_grade_categories_history` (
  `id` bigint(10) NOT NULL,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) NOT NULL,
  `parent` bigint(10) DEFAULT NULL,
  `depth` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fullname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `aggregation` bigint(10) NOT NULL DEFAULT '0',
  `keephigh` bigint(10) NOT NULL DEFAULT '0',
  `droplow` bigint(10) NOT NULL DEFAULT '0',
  `aggregateonlygraded` tinyint(1) NOT NULL DEFAULT '0',
  `aggregateoutcomes` tinyint(1) NOT NULL DEFAULT '0',
  `aggregatesubcats` tinyint(1) NOT NULL DEFAULT '0',
  `hidden` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='History of grade_categories';

--
-- Dumping data for table `mdl_grade_categories_history`
--

INSERT INTO `mdl_grade_categories_history` (`id`, `action`, `oldid`, `source`, `timemodified`, `loggeduser`, `courseid`, `parent`, `depth`, `path`, `fullname`, `aggregation`, `keephigh`, `droplow`, `aggregateonlygraded`, `aggregateoutcomes`, `aggregatesubcats`, `hidden`) VALUES
(1, 1, 1, 'system', 1359215788, 2, 2, NULL, 0, NULL, '?', 11, 0, 0, 1, 0, 0, 0),
(2, 2, 1, 'system', 1359215788, 2, 2, NULL, 1, '/1/', '?', 11, 0, 0, 1, 0, 0, 0),
(3, 1, 2, 'system', 1359489137, 5, 41, NULL, 0, NULL, '?', 11, 0, 0, 1, 0, 0, 0),
(4, 2, 2, 'system', 1359489137, 5, 41, NULL, 1, '/2/', '?', 11, 0, 0, 1, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_grades`
--

CREATE TABLE `mdl_grade_grades` (
  `id` bigint(10) NOT NULL,
  `itemid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `rawgrademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `rawgrademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `rawscaleid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `exported` bigint(10) NOT NULL DEFAULT '0',
  `overridden` bigint(10) NOT NULL DEFAULT '0',
  `excluded` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext COLLATE utf8_unicode_ci,
  `feedbackformat` bigint(10) NOT NULL DEFAULT '0',
  `information` longtext COLLATE utf8_unicode_ci,
  `informationformat` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='grade_grades  This table keeps individual grades for each us';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_grades_history`
--

CREATE TABLE `mdl_grade_grades_history` (
  `id` bigint(10) NOT NULL,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `itemid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `rawgrademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `rawgrademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `rawscaleid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `exported` bigint(10) NOT NULL DEFAULT '0',
  `overridden` bigint(10) NOT NULL DEFAULT '0',
  `excluded` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext COLLATE utf8_unicode_ci,
  `feedbackformat` bigint(10) NOT NULL DEFAULT '0',
  `information` longtext COLLATE utf8_unicode_ci,
  `informationformat` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='History table';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_import_newitem`
--

CREATE TABLE `mdl_grade_import_newitem` (
  `id` bigint(10) NOT NULL,
  `itemname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `importcode` bigint(10) NOT NULL,
  `importer` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='temporary table for storing new grade_item names from grade ';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_import_values`
--

CREATE TABLE `mdl_grade_import_values` (
  `id` bigint(10) NOT NULL,
  `itemid` bigint(10) DEFAULT NULL,
  `newgradeitem` bigint(10) DEFAULT NULL,
  `userid` bigint(10) NOT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `feedback` longtext COLLATE utf8_unicode_ci,
  `importcode` bigint(10) NOT NULL,
  `importer` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Temporary table for importing grades';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_items`
--

CREATE TABLE `mdl_grade_items` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `itemname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itemtype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemmodule` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iteminstance` bigint(10) DEFAULT NULL,
  `itemnumber` bigint(10) DEFAULT NULL,
  `iteminfo` longtext COLLATE utf8_unicode_ci,
  `idnumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `calculation` longtext COLLATE utf8_unicode_ci,
  `gradetype` smallint(4) NOT NULL DEFAULT '1',
  `grademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `grademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `scaleid` bigint(10) DEFAULT NULL,
  `outcomeid` bigint(10) DEFAULT NULL,
  `gradepass` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `multfactor` decimal(10,5) NOT NULL DEFAULT '1.00000',
  `plusfactor` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  `decimals` tinyint(1) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `needsupdate` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table keeps information about gradeable items (ie colum';

--
-- Dumping data for table `mdl_grade_items`
--

INSERT INTO `mdl_grade_items` (`id`, `courseid`, `categoryid`, `itemname`, `itemtype`, `itemmodule`, `iteminstance`, `itemnumber`, `iteminfo`, `idnumber`, `calculation`, `gradetype`, `grademax`, `grademin`, `scaleid`, `outcomeid`, `gradepass`, `multfactor`, `plusfactor`, `aggregationcoef`, `sortorder`, `display`, `decimals`, `hidden`, `locked`, `locktime`, `needsupdate`, `timecreated`, `timemodified`) VALUES
(1, 2, NULL, NULL, 'course', NULL, 1, NULL, NULL, NULL, NULL, 1, '100.00000', '0.00000', NULL, NULL, '0.00000', '1.00000', '0.00000', '0.00000', 1, 0, NULL, 0, 0, 0, 0, 1359215788, 1359215788),
(2, 41, NULL, NULL, 'course', NULL, 2, NULL, NULL, NULL, NULL, 1, '100.00000', '0.00000', NULL, NULL, '0.00000', '1.00000', '0.00000', '0.00000', 1, 0, NULL, 0, 0, 0, 0, 1359489137, 1359489137);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_items_history`
--

CREATE TABLE `mdl_grade_items_history` (
  `id` bigint(10) NOT NULL,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `itemname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itemtype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemmodule` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iteminstance` bigint(10) DEFAULT NULL,
  `itemnumber` bigint(10) DEFAULT NULL,
  `iteminfo` longtext COLLATE utf8_unicode_ci,
  `idnumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `calculation` longtext COLLATE utf8_unicode_ci,
  `gradetype` smallint(4) NOT NULL DEFAULT '1',
  `grademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `grademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `scaleid` bigint(10) DEFAULT NULL,
  `outcomeid` bigint(10) DEFAULT NULL,
  `gradepass` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `multfactor` decimal(10,5) NOT NULL DEFAULT '1.00000',
  `plusfactor` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `needsupdate` bigint(10) NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  `decimals` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='History of grade_items';

--
-- Dumping data for table `mdl_grade_items_history`
--

INSERT INTO `mdl_grade_items_history` (`id`, `action`, `oldid`, `source`, `timemodified`, `loggeduser`, `courseid`, `categoryid`, `itemname`, `itemtype`, `itemmodule`, `iteminstance`, `itemnumber`, `iteminfo`, `idnumber`, `calculation`, `gradetype`, `grademax`, `grademin`, `scaleid`, `outcomeid`, `gradepass`, `multfactor`, `plusfactor`, `aggregationcoef`, `sortorder`, `hidden`, `locked`, `locktime`, `needsupdate`, `display`, `decimals`) VALUES
(1, 1, 1, 'system', 1359215788, 2, 2, NULL, NULL, 'course', NULL, 1, NULL, NULL, NULL, NULL, 1, '100.00000', '0.00000', NULL, NULL, '0.00000', '1.00000', '0.00000', '0.00000', 1, 0, 0, 0, 1, 0, NULL),
(2, 1, 2, 'system', 1359489137, 5, 41, NULL, NULL, 'course', NULL, 2, NULL, NULL, NULL, NULL, 1, '100.00000', '0.00000', NULL, NULL, '0.00000', '1.00000', '0.00000', '0.00000', 1, 0, 0, 0, 1, 0, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_letters`
--

CREATE TABLE `mdl_grade_letters` (
  `id` bigint(10) NOT NULL,
  `contextid` bigint(10) NOT NULL,
  `lowerboundary` decimal(10,5) NOT NULL,
  `letter` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Repository for grade letters, for courses and other moodle e';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_outcomes`
--

CREATE TABLE `mdl_grade_outcomes` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fullname` longtext COLLATE utf8_unicode_ci NOT NULL,
  `scaleid` bigint(10) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table describes the outcomes used in the system. An out';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_outcomes_courses`
--

CREATE TABLE `mdl_grade_outcomes_courses` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `outcomeid` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='stores what outcomes are used in what courses.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_outcomes_history`
--

CREATE TABLE `mdl_grade_outcomes_history` (
  `id` bigint(10) NOT NULL,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fullname` longtext COLLATE utf8_unicode_ci NOT NULL,
  `scaleid` bigint(10) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='History table';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grade_settings`
--

CREATE TABLE `mdl_grade_settings` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='gradebook settings';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_guide_comments`
--

CREATE TABLE `mdl_gradingform_guide_comments` (
  `id` bigint(10) NOT NULL,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='frequently used comments used in marking guide';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_guide_criteria`
--

CREATE TABLE `mdl_gradingform_guide_criteria` (
  `id` bigint(10) NOT NULL,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  `descriptionmarkers` longtext COLLATE utf8_unicode_ci,
  `descriptionmarkersformat` tinyint(2) DEFAULT NULL,
  `maxscore` decimal(10,5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the rows of the criteria grid.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_guide_fillings`
--

CREATE TABLE `mdl_gradingform_guide_fillings` (
  `id` bigint(10) NOT NULL,
  `instanceid` bigint(10) NOT NULL,
  `criterionid` bigint(10) NOT NULL,
  `remark` longtext COLLATE utf8_unicode_ci,
  `remarkformat` tinyint(2) DEFAULT NULL,
  `score` decimal(10,5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the data of how the guide is filled by a particular r';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_rubric_criteria`
--

CREATE TABLE `mdl_gradingform_rubric_criteria` (
  `id` bigint(10) NOT NULL,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the rows of the rubric grid.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_rubric_fillings`
--

CREATE TABLE `mdl_gradingform_rubric_fillings` (
  `id` bigint(10) NOT NULL,
  `instanceid` bigint(10) NOT NULL,
  `criterionid` bigint(10) NOT NULL,
  `levelid` bigint(10) DEFAULT NULL,
  `remark` longtext COLLATE utf8_unicode_ci,
  `remarkformat` tinyint(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the data of how the rubric is filled by a particular ';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_gradingform_rubric_levels`
--

CREATE TABLE `mdl_gradingform_rubric_levels` (
  `id` bigint(10) NOT NULL,
  `criterionid` bigint(10) NOT NULL,
  `score` decimal(10,5) NOT NULL,
  `definition` longtext COLLATE utf8_unicode_ci,
  `definitionformat` bigint(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the columns of the rubric grid.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grading_areas`
--

CREATE TABLE `mdl_grading_areas` (
  `id` bigint(10) NOT NULL,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `areaname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `activemethod` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Identifies gradable areas where advanced grading can happen.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grading_definitions`
--

CREATE TABLE `mdl_grading_definitions` (
  `id` bigint(10) NOT NULL,
  `areaid` bigint(10) NOT NULL,
  `method` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `copiedfromid` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `usercreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecopied` bigint(10) DEFAULT '0',
  `options` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains the basic information about an advanced grading for';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_grading_instances`
--

CREATE TABLE `mdl_grading_instances` (
  `id` bigint(10) NOT NULL,
  `definitionid` bigint(10) NOT NULL,
  `raterid` bigint(10) NOT NULL,
  `itemid` bigint(10) DEFAULT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext COLLATE utf8_unicode_ci,
  `feedbackformat` tinyint(2) DEFAULT NULL,
  `timemodified` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Grading form instance is an assessment record for one gradab';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_groupings`
--

CREATE TABLE `mdl_groupings` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `configdata` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='A grouping is a collection of groups. WAS: groups_groupings';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_groupings_groups`
--

CREATE TABLE `mdl_groupings_groups` (
  `id` bigint(10) NOT NULL,
  `groupingid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `timeadded` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Link a grouping to a group (note, groups can be in multiple ';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_groups`
--

CREATE TABLE `mdl_groups` (
  `id` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `idnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` longtext COLLATE utf8_unicode_ci,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `enrolmentkey` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `picture` bigint(10) NOT NULL DEFAULT '0',
  `hidepicture` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each record represents a group.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_groups_members`
--

CREATE TABLE `mdl_groups_members` (
  `id` bigint(10) NOT NULL,
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timeadded` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Link a user to a group.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_imscp`
--

CREATE TABLE `mdl_imscp` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `keepold` bigint(10) NOT NULL DEFAULT '-1',
  `structure` longtext COLLATE utf8_unicode_ci,
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='each record is one imscp resource';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_label`
--

CREATE TABLE `mdl_label` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci NOT NULL,
  `introformat` smallint(4) DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines labels';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson`
--

CREATE TABLE `mdl_lesson` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `practice` smallint(3) NOT NULL DEFAULT '0',
  `modattempts` smallint(3) NOT NULL DEFAULT '0',
  `usepassword` smallint(3) NOT NULL DEFAULT '0',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `dependency` bigint(10) NOT NULL DEFAULT '0',
  `conditions` longtext COLLATE utf8_unicode_ci NOT NULL,
  `grade` smallint(3) NOT NULL DEFAULT '0',
  `custom` smallint(3) NOT NULL DEFAULT '0',
  `ongoing` smallint(3) NOT NULL DEFAULT '0',
  `usemaxgrade` smallint(3) NOT NULL DEFAULT '0',
  `maxanswers` smallint(3) NOT NULL DEFAULT '4',
  `maxattempts` smallint(3) NOT NULL DEFAULT '5',
  `review` smallint(3) NOT NULL DEFAULT '0',
  `nextpagedefault` smallint(3) NOT NULL DEFAULT '0',
  `feedback` smallint(3) NOT NULL DEFAULT '1',
  `minquestions` smallint(3) NOT NULL DEFAULT '0',
  `maxpages` smallint(3) NOT NULL DEFAULT '0',
  `timed` smallint(3) NOT NULL DEFAULT '0',
  `maxtime` bigint(10) NOT NULL DEFAULT '0',
  `retake` smallint(3) NOT NULL DEFAULT '1',
  `activitylink` bigint(10) NOT NULL DEFAULT '0',
  `mediafile` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mediaheight` bigint(10) NOT NULL DEFAULT '100',
  `mediawidth` bigint(10) NOT NULL DEFAULT '650',
  `mediaclose` smallint(3) NOT NULL DEFAULT '0',
  `slideshow` smallint(3) NOT NULL DEFAULT '0',
  `width` bigint(10) NOT NULL DEFAULT '640',
  `height` bigint(10) NOT NULL DEFAULT '480',
  `bgcolor` varchar(7) COLLATE utf8_unicode_ci NOT NULL DEFAULT '#FFFFFF',
  `displayleft` smallint(3) NOT NULL DEFAULT '0',
  `displayleftif` smallint(3) NOT NULL DEFAULT '0',
  `progressbar` smallint(3) NOT NULL DEFAULT '0',
  `highscores` smallint(3) NOT NULL DEFAULT '0',
  `maxhighscores` bigint(10) NOT NULL DEFAULT '0',
  `available` bigint(10) NOT NULL DEFAULT '0',
  `deadline` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_answers`
--

CREATE TABLE `mdl_lesson_answers` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `jumpto` bigint(11) NOT NULL DEFAULT '0',
  `grade` smallint(4) NOT NULL DEFAULT '0',
  `score` bigint(10) NOT NULL DEFAULT '0',
  `flags` smallint(3) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `answer` longtext COLLATE utf8_unicode_ci,
  `answerformat` tinyint(2) NOT NULL DEFAULT '0',
  `response` longtext COLLATE utf8_unicode_ci,
  `responseformat` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_answers';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_attempts`
--

CREATE TABLE `mdl_lesson_attempts` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `answerid` bigint(10) NOT NULL DEFAULT '0',
  `retry` smallint(3) NOT NULL DEFAULT '0',
  `correct` bigint(10) NOT NULL DEFAULT '0',
  `useranswer` longtext COLLATE utf8_unicode_ci,
  `timeseen` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_attempts';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_branch`
--

CREATE TABLE `mdl_lesson_branch` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `retry` bigint(10) NOT NULL DEFAULT '0',
  `flag` smallint(3) NOT NULL DEFAULT '0',
  `timeseen` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='branches for each lesson/user';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_grades`
--

CREATE TABLE `mdl_lesson_grades` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `grade` double NOT NULL DEFAULT '0',
  `late` smallint(3) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_grades';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_high_scores`
--

CREATE TABLE `mdl_lesson_high_scores` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `gradeid` bigint(10) NOT NULL DEFAULT '0',
  `nickname` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='high scores for each lesson';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_pages`
--

CREATE TABLE `mdl_lesson_pages` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `prevpageid` bigint(10) NOT NULL DEFAULT '0',
  `nextpageid` bigint(10) NOT NULL DEFAULT '0',
  `qtype` smallint(3) NOT NULL DEFAULT '0',
  `qoption` smallint(3) NOT NULL DEFAULT '0',
  `layout` smallint(3) NOT NULL DEFAULT '1',
  `display` smallint(3) NOT NULL DEFAULT '1',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contents` longtext COLLATE utf8_unicode_ci NOT NULL,
  `contentsformat` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_pages';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lesson_timer`
--

CREATE TABLE `mdl_lesson_timer` (
  `id` bigint(10) NOT NULL,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `starttime` bigint(10) NOT NULL DEFAULT '0',
  `lessontime` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='lesson timer for each lesson';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_license`
--

CREATE TABLE `mdl_license` (
  `id` bigint(10) NOT NULL,
  `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fullname` longtext COLLATE utf8_unicode_ci,
  `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  `version` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='store licenses used by moodle';

--
-- Dumping data for table `mdl_license`
--

INSERT INTO `mdl_license` (`id`, `shortname`, `fullname`, `source`, `enabled`, `version`) VALUES
(1, 'unknown', 'Unknown license', '', 1, 2010033100),
(2, 'allrightsreserved', 'All rights reserved', 'http://en.wikipedia.org/wiki/All_rights_reserved', 1, 2010033100),
(3, 'public', 'Public Domain', 'http://creativecommons.org/licenses/publicdomain/', 1, 2010033100),
(4, 'cc', 'Creative Commons', 'http://creativecommons.org/licenses/by/3.0/', 1, 2010033100),
(5, 'cc-nd', 'Creative Commons - NoDerivs', 'http://creativecommons.org/licenses/by-nd/3.0/', 1, 2010033100),
(6, 'cc-nc-nd', 'Creative Commons - No Commercial NoDerivs', 'http://creativecommons.org/licenses/by-nc-nd/3.0/', 1, 2010033100),
(7, 'cc-nc', 'Creative Commons - No Commercial', 'http://creativecommons.org/licenses/by-nd/3.0/', 1, 2010033100),
(8, 'cc-nc-sa', 'Creative Commons - No Commercial ShareAlike', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 1, 2010033100),
(9, 'cc-sa', 'Creative Commons - ShareAlike', 'http://creativecommons.org/licenses/by-sa/3.0/', 1, 2010033100);

-- --------------------------------------------------------

--
-- Table structure for table `mdl_log`
--

CREATE TABLE `mdl_log` (
  `id` bigint(10) NOT NULL,
  `time` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `ip` varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cmid` bigint(10) NOT NULL DEFAULT '0',
  `action` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Every action is logged as far as possible';

--
-- Dumping data for table `mdl_log`
--

INSERT INTO `mdl_log` (`id`, `time`, `userid`, `ip`, `course`, `module`, `cmid`, `action`, `url`, `info`) VALUES
(1, 1359214622, 2, '190.189.40.226', 1, 'user', 0, 'update', 'view.php?id=2&course=1', ''),
(2, 1359214680, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(3, 1359215073, 2, '190.189.40.226', 1, 'user', 0, 'update', 'view.php?id=2&course=1', ''),
(4, 1359215078, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(5, 1359215189, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(6, 1359215205, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(7, 1359215555, 2, '190.189.40.226', 1, 'course', 0, 'new', 'view.php?id=2', 'Curso en vivo (ID 2)'),
(8, 1359215568, 2, '190.189.40.226', 2, 'course', 0, 'enrol', '../enrol/users.php?id=2', '2'),
(9, 1359215604, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(10, 1359215644, 1, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '1'),
(11, 1359215653, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(12, 1359215691, 2, '190.189.40.226', 2, 'course', 0, 'update', 'edit.php?id=2', '2'),
(13, 1359215691, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(14, 1359215788, 2, '190.189.40.226', 2, 'calendar', 0, 'add', 'event.php?action=edit&id=1', 'Clase en vivo'),
(15, 1359215788, 2, '190.189.40.226', 2, 'course', 0, 'add mod', '../mod/chat/view.php?id=2', 'chat 1'),
(16, 1359215788, 2, '190.189.40.226', 2, 'chat', 2, 'add', 'view.php?id=2', '1'),
(17, 1359215788, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(18, 1359215788, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(19, 1359215864, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(20, 1359215864, 2, '190.189.40.226', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(21, 1359215864, 2, '190.189.40.226', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(22, 1359215865, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(23, 1359215868, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(24, 1359215870, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(25, 1359215882, 2, '190.189.40.226', 2, 'chat', 2, 'talk', 'view.php?id=2', '1'),
(26, 1359216110, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(27, 1359216110, 2, '190.189.40.226', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(28, 1359216110, 2, '190.189.40.226', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(29, 1359216111, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(30, 1359216114, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(31, 1359216135, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(32, 1359216354, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(33, 1359216359, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(34, 1359216554, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(35, 1359216557, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(36, 1359216560, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(37, 1359216693, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(38, 1359216693, 2, '190.189.40.226', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(39, 1359216693, 2, '190.189.40.226', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(40, 1359216693, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(41, 1359216725, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(42, 1359216771, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(43, 1359216787, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(44, 1359216787, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(45, 1359216805, 1, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(46, 1359216809, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(47, 1359216869, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(48, 1359216890, 1, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '1'),
(49, 1359216903, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(50, 1359216911, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(51, 1359216930, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(52, 1359217026, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(53, 1359217035, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(54, 1359217043, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(55, 1359217082, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(56, 1359217082, 2, '190.189.40.226', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(57, 1359217082, 2, '190.189.40.226', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(58, 1359217082, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(59, 1359217189, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(60, 1359217194, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(61, 1359217231, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(62, 1359217359, 2, '190.189.40.226', 1, 'user', 0, 'add', 'view.php?id=3&course=1', ''),
(63, 1359217367, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(64, 1359217371, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(65, 1359217406, 2, '190.189.40.226', 2, 'course', 0, 'enrol', '../enrol/users.php?id=2', '2'),
(66, 1359217421, 1, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(67, 1359217427, 1, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(68, 1359217447, 3, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=1&course=1', '3'),
(69, 1359217448, 3, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(70, 1359217457, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(71, 1359217461, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(72, 1359217474, 2, '190.189.40.226', 2, 'chat', 2, 'talk', 'view.php?id=2', '1'),
(73, 1359217484, 3, '190.189.40.226', 2, 'chat', 2, 'talk', 'view.php?id=2', '1'),
(74, 1359217489, 2, '190.189.40.226', 2, 'chat', 2, 'talk', 'view.php?id=2', '1'),
(75, 1359217497, 3, '190.189.40.226', 2, 'chat', 2, 'talk', 'view.php?id=2', '1'),
(76, 1359217923, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(77, 1359218469, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(78, 1359218476, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(79, 1359218488, 2, '190.189.40.226', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(80, 1359218542, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(81, 1359221919, 0, '190.104.72.202', 1, 'login', 0, 'error', 'index.php', 'marcelo'),
(82, 1359221975, 0, '190.104.72.202', 1, 'login', 0, 'error', 'index.php', 'marcelo'),
(83, 1359222074, 0, '190.104.72.202', 1, 'login', 0, 'error', 'index.php', 'marcelo'),
(84, 1359222134, 0, '190.104.72.202', 1, 'login', 0, 'error', 'index.php', 'marcelo'),
(85, 1359222180, 0, '190.104.72.202', 1, 'login', 0, 'error', 'index.php', 'marcelo'),
(86, 1359222318, 5, '190.104.72.202', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '5'),
(87, 1359222371, 5, '190.104.72.202', 1, 'user', 0, 'change password', 'view.php?id=5&course=1', '5'),
(88, 1359222611, 5, '190.104.72.202', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(89, 1359226698, 0, '201.213.51.174', 1, 'login', 0, 'error', 'index.php', 'tecpreci'),
(90, 1359226704, 2, '201.213.51.174', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(91, 1359226706, 2, '201.213.51.174', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(92, 1359226712, 2, '201.213.51.174', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(93, 1359226869, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(94, 1359227151, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=3', 'Alcoholismo (ID 3)'),
(95, 1359227169, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(96, 1359227281, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=4', 'Análisis de riesgos - Factores que afectan el comportamiento humano (ID 4)'),
(97, 1359227758, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=5', 'Electricidad estática (ID 5)'),
(98, 1359227937, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=6', 'Cuidados del medio ambiente (ID 6)'),
(99, 1359228797, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=7', 'Elementos de Izaje (Eslingas - Cables - Aparejos) (ID 7)'),
(100, 1359228828, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(101, 1359228860, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=8', 'Ergonomía, Espalda y levantamiento de cargas (ID 8)'),
(102, 1359228909, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=9', 'Espacios confinados (ID 9)'),
(103, 1359228949, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=10', 'Evacuación de accidentados (ID 10)'),
(104, 1359228967, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(105, 1359229009, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=11', 'Evaluación de Conocimientos (ID 11)'),
(106, 1359229051, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=12', 'Gestión de residuos (ID 12)'),
(107, 1359229106, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=13', 'Golpes de calor (ID 13)'),
(108, 1359229127, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=14', 'Hipotermia, congelamiento (ID 14)'),
(109, 1359229185, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=15', 'Inducción a la seguridad (ID 15)'),
(110, 1359229307, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=16', 'Investigación de accidentes (ID 16)'),
(111, 1359229372, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=17', 'Manejo defensivo (ID 17)'),
(112, 1359229403, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=18', 'Máquinas y herramientas cortopunzantes (ID 18)'),
(113, 1359229481, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=19', ' Operaciones con Gas Sulfhídrico (ID 19)'),
(114, 1359229504, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(115, 1359229626, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=20', 'Orden y limpieza (ID 20)'),
(116, 1359229632, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(117, 1359229695, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=21', 'Permisos de trabajo. (ID 21)'),
(118, 1359229772, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=22', 'Permisos de trabajo (ID 22)'),
(119, 1359229793, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=23', 'Plan de contingencias (ID 23)'),
(120, 1359229898, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=24', 'Primeros auxilios (ID 24)'),
(121, 1359229911, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=25', 'Primeros auxilios - RCP (ID 25)'),
(122, 1359229918, 2, '201.213.51.174', 25, 'course', 0, 'view', 'view.php?id=25', '25'),
(123, 1359230068, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=26', 'Primeros auxilios - Quemaduras (ID 26)'),
(124, 1359230131, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=27', 'Protección contra incendio (ID 27)'),
(125, 1359230160, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=28', 'Protección de manos (ID 28)'),
(126, 1359230243, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=29', 'Sistemas de Bloqueo (Tarjetas y candados)  (ID 29)'),
(127, 1359230269, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=30', 'Riesgo eléctrico (ID 30)'),
(128, 1359230349, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=31', 'Riesgo Químico con FDS (ID 31)'),
(129, 1359230383, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=32', 'Ruidos molestos en los ambientes de trabajo (ID 32)'),
(130, 1359230583, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=33', 'Seguridad en laboratorios (ID 33)'),
(131, 1359230630, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=34', 'Seguridad en oficinas (ID 34)'),
(132, 1359230672, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=35', 'Seguridad en utilización de montacargas (ID 35)'),
(133, 1359230701, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=36', 'Señales y colores de seguridad (ID 36)'),
(134, 1359230724, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=37', 'Soldaduras y trabajos en caliente (ID 37)'),
(135, 1359230749, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=38', 'Trabajo en altura (ID 38)'),
(136, 1359230768, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=39', 'Uso de equipos de protección personal (ID 39)'),
(137, 1359230792, 2, '201.213.51.174', 1, 'course', 0, 'new', 'view.php?id=40', 'Animales Ponzoñosos (ID 40)'),
(138, 1359231266, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(139, 1359231285, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(140, 1359231387, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(141, 1359231421, 2, '201.213.51.174', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(142, 1359231793, 25, '190.104.74.66', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '25'),
(143, 1359231873, 25, '190.104.74.66', 1, 'user', 0, 'change password', 'view.php?id=25&course=1', '25'),
(144, 1359231925, 25, '190.104.74.66', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(145, 1359232052, 25, '190.104.74.66', 1, 'user', 0, 'logout', 'view.php?id=25&course=1', '25'),
(146, 1359232096, 25, '190.104.74.66', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '25'),
(147, 1359232126, 25, '190.104.74.66', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(148, 1359232150, 25, '190.104.74.66', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(149, 1359232165, 25, '190.104.74.66', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(150, 1359232181, 25, '190.104.74.66', 1, 'user', 0, 'logout', 'view.php?id=25&course=1', '25'),
(151, 1359233547, 0, '190.195.6.157', 1, 'login', 0, 'error', 'index.php', 'miguel.gonzalez'),
(152, 1359233585, 0, '190.195.6.157', 1, 'login', 0, 'error', 'index.php', 'miguel.gonzalez'),
(153, 1359233635, 0, '190.195.6.157', 1, 'login', 0, 'error', 'index.php', 'miguel.gonzalez'),
(154, 1359233642, 60, '190.195.6.157', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '60'),
(155, 1359233693, 60, '190.195.6.157', 1, 'user', 0, 'change password', 'view.php?id=60&course=1', '60'),
(156, 1359233817, 60, '190.195.6.157', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(157, 1359233866, 60, '190.195.6.157', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(158, 1359233887, 60, '190.195.6.157', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(159, 1359323395, 24, '190.114.129.219', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '24'),
(160, 1359323432, 24, '190.114.129.219', 1, 'user', 0, 'change password', 'view.php?id=24&course=1', '24'),
(161, 1359323519, 24, '190.114.129.219', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(162, 1359323543, 24, '190.114.129.219', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(163, 1359323627, 24, '190.114.129.219', 1, 'user', 0, 'update', 'view.php?id=24&course=1', ''),
(164, 1359323639, 24, '190.114.129.219', 1, 'user', 0, 'logout', 'view.php?id=24&course=1', '24'),
(165, 1359340546, 53, '190.104.65.176', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '53'),
(166, 1359340566, 53, '190.104.65.176', 1, 'user', 0, 'change password', 'view.php?id=53&course=1', '53'),
(167, 1359340724, 53, '190.104.65.176', 1, 'user', 0, 'update', 'view.php?id=53&course=1', ''),
(168, 1359340732, 53, '190.104.65.176', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(169, 1359340748, 53, '190.104.65.176', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(170, 1359340775, 53, '190.104.65.176', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(171, 1359369681, 21, '190.104.77.39', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '21'),
(172, 1359369735, 21, '190.104.77.39', 1, 'user', 0, 'change password', 'view.php?id=21&course=1', '21'),
(173, 1359369832, 21, '190.104.77.39', 1, 'user', 0, 'update', 'view.php?id=21&course=1', ''),
(174, 1359372204, 55, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '55'),
(175, 1359372239, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'luciano.montecino'),
(176, 1359372286, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'luciano.montecino'),
(177, 1359372311, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'leonardo.guala'),
(178, 1359372334, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'leonardo.guala'),
(179, 1359372335, 67, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '67'),
(180, 1359372339, 68, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '68'),
(181, 1359372395, 68, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=68&course=1', '68'),
(182, 1359372427, 14, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '14'),
(183, 1359372458, 14, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=14&course=1', '14'),
(184, 1359372492, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'curra'),
(185, 1359372505, 37, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '37'),
(186, 1359372520, 14, '190.104.75.16', 1, 'user', 0, 'update', 'view.php?id=14&course=1', ''),
(187, 1359372525, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'curra'),
(188, 1359372546, 14, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=14&course=1', '14'),
(189, 1359372562, 37, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=37&course=1', '37'),
(190, 1359372604, 4, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '4'),
(191, 1359372606, 37, '190.104.75.16', 1, 'forum', 0, 'user report', 'user.php?id=37', '37'),
(192, 1359372609, 37, '190.104.75.16', 1, 'forum', 0, 'user report', 'user.php?id=37&mode=discussions', '37'),
(193, 1359372611, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'curra'),
(194, 1359372643, 4, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=4&course=1', '4'),
(195, 1359372653, 55, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=55&course=1', '55'),
(196, 1359372661, 4, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(197, 1359372704, 4, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(198, 1359372767, 37, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=37&course=1', '37'),
(199, 1359372817, 55, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(200, 1359373093, 11, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '11'),
(201, 1359373168, 11, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=11&course=1', '11'),
(202, 1359373313, 11, '190.104.75.16', 1, 'user', 0, 'update', 'view.php?id=11&course=1', ''),
(203, 1359373402, 0, '190.104.75.16', 1, 'login', 0, 'error', 'index.php', 'lore'),
(204, 1359373419, 11, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=11&course=1', '11'),
(205, 1359373421, 16, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '16'),
(206, 1359373454, 11, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '11'),
(207, 1359373468, 11, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=11&course=1', '11'),
(208, 1359373625, 16, '190.104.75.16', 1, 'user', 0, 'change password', 'view.php?id=16&course=1', '16'),
(209, 1359373677, 16, '190.104.75.16', 1, 'user', 0, 'update', 'view.php?id=16&course=1', ''),
(210, 1359373692, 16, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(211, 1359373714, 16, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(212, 1359373734, 16, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(213, 1359373740, 16, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=16&course=1', '16'),
(214, 1359373882, 16, '190.104.75.16', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '16'),
(215, 1359373884, 16, '190.104.75.16', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(216, 1359374575, 16, '190.104.75.16', 1, 'user', 0, 'logout', 'view.php?id=16&course=1', '16'),
(217, 1359375129, 15, '10.14.49.39', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '15'),
(218, 1359375252, 15, '10.14.49.39', 1, 'user', 0, 'change password', 'view.php?id=15&course=1', '15'),
(219, 1359377359, 68, '190.104.75.16', 1, 'user', 0, 'update', 'view.php?id=68&course=1', ''),
(220, 1359385131, 36, '200.5.119.36', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '36'),
(221, 1359385175, 36, '200.5.119.36', 1, 'user', 0, 'change password', 'view.php?id=36&course=1', '36'),
(222, 1359385193, 36, '200.5.119.36', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(223, 1359385280, 36, '200.5.119.36', 1, 'user', 0, 'logout', 'view.php?id=36&course=1', '36'),
(224, 1359391702, 19, '200.3.110.23', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '19'),
(225, 1359391742, 19, '200.3.110.23', 1, 'user', 0, 'change password', 'view.php?id=19&course=1', '19'),
(226, 1359391798, 19, '200.3.110.23', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(227, 1359391866, 19, '200.3.110.23', 1, 'blog', 0, 'view', 'index.php?entryid=&tagid=&tag=', 'view blog entry'),
(228, 1359391935, 19, '200.3.110.23', 1, 'user', 0, 'update', 'view.php?id=19&course=1', ''),
(229, 1359391948, 19, '200.3.110.23', 1, 'blog', 0, 'view', 'index.php?entryid=&tagid=&tag=', 'view blog entry'),
(230, 1359391953, 19, '200.3.110.23', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(231, 1359391965, 19, '200.3.110.23', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(232, 1359391984, 19, '200.3.110.23', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(233, 1359392004, 19, '200.3.110.23', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(234, 1359392061, 0, '8.28.16.254', 1, 'forum', 0, 'user report', 'user.php?id=19', '19'),
(235, 1359392062, 19, '200.3.110.23', 1, 'forum', 0, 'user report', 'user.php?id=19', '19'),
(236, 1359392090, 19, '200.3.110.23', 1, 'user', 0, 'logout', 'view.php?id=19&course=1', '19'),
(237, 1359470763, 1, '190.104.70.151', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '1'),
(238, 1359470774, 1, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(239, 1359470783, 1, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(240, 1359470787, 1, '190.104.70.151', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(241, 1359470824, 1, '190.104.70.151', 1, 'login', 0, 'error', 'index.php', 'rafael'),
(242, 1359470861, 1, '190.104.70.151', 1, 'login', 0, 'error', 'index.php', 'tecpreci'),
(243, 1359470896, 2, '190.104.70.151', 1, 'user', 0, 'login', 'view.php?id=1&course=1', '2'),
(244, 1359470905, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(245, 1359470912, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(246, 1359470945, 2, '190.104.70.151', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(247, 1359470967, 2, '190.104.70.151', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(248, 1359470998, 2, '190.104.70.151', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(249, 1359471007, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(250, 1359471012, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(251, 1359471021, 2, '190.104.70.151', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(252, 1359471071, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(253, 1359471077, 2, '190.104.70.151', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(254, 1359471092, 2, '190.104.70.151', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(255, 1359471187, 2, '190.104.70.151', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(256, 1359471330, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(257, 1359471335, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(258, 1359471386, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(259, 1359471388, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(260, 1359471470, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(261, 1359471477, 2, '190.189.40.226', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(262, 1359471510, 0, '190.104.70.151', 1, 'login', 0, 'error', 'index.php', 'tecpreci'),
(263, 1359471522, 2, '190.104.70.151', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(264, 1359471524, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(265, 1359471536, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(266, 1359471630, 2, '190.104.70.151', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(267, 1359471705, 2, '190.104.70.151', 2, 'course', 0, 'enrol', '../enrol/users.php?id=2', '2'),
(268, 1359471714, 46, '10.16.97.86', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '46'),
(269, 1359471750, 46, '10.16.97.86', 1, 'user', 0, 'change password', 'view.php?id=46&course=1', '46'),
(270, 1359471776, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(271, 1359471816, 46, '10.16.97.86', 1, 'user', 0, 'update', 'view.php?id=46&course=1', ''),
(272, 1359471848, 46, '10.16.97.86', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(273, 1359471980, 46, '10.16.97.86', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(274, 1359472019, 46, '10.16.97.86', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(275, 1359472065, 46, '10.16.97.86', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(276, 1359472254, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(277, 1359472704, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(278, 1359472799, 2, '190.104.70.151', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(279, 1359472799, 2, '190.104.70.151', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(280, 1359472799, 2, '190.104.70.151', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(281, 1359472801, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(282, 1359472808, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(283, 1359472812, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(284, 1359472968, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(285, 1359473246, 2, '190.104.70.151', 2, 'course', 0, 'add mod', '../mod/resource/view.php?id=4', 'resource 1'),
(286, 1359473246, 2, '190.104.70.151', 2, 'resource', 4, 'add', 'view.php?id=4', '1'),
(287, 1359473246, 2, '190.104.70.151', 2, 'resource', 4, 'view', 'view.php?id=4', '1'),
(288, 1359473270, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(289, 1359473280, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(290, 1359473320, 2, '190.104.70.151', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(291, 1359473381, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(292, 1359473386, 2, '190.104.70.151', 2, 'resource', 4, 'view', 'view.php?id=4', '1'),
(293, 1359473406, 2, '190.189.40.226', 2, 'resource', 4, 'view', 'view.php?id=4', '1'),
(294, 1359473416, 2, '190.104.70.151', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(295, 1359474098, 2, '190.189.40.226', 2, 'calendar', 0, 'edit', 'event.php?action=edit&id=1', 'Clase en vivo'),
(296, 1359474098, 2, '190.189.40.226', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=2', 'chat 1'),
(297, 1359474098, 2, '190.189.40.226', 2, 'chat', 2, 'update', 'view.php?id=2', '1'),
(298, 1359474098, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(299, 1359475297, 0, '172.30.2.194', 1, 'login', 0, 'error', 'index.php', 'valeria cofre'),
(300, 1359475944, 2, '190.104.71.205', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(301, 1359476200, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(302, 1359476201, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(303, 1359476211, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(304, 1359476460, 2, '190.104.71.205', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(305, 1359476868, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(306, 1359478133, 2, '190.104.71.205', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(307, 1359478139, 2, '190.104.71.205', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(308, 1359478465, 2, '190.104.71.205', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(309, 1359478470, 2, '190.104.71.205', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(310, 1359479854, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(311, 1359479892, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(312, 1359480087, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(313, 1359480096, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(314, 1359480100, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(315, 1359485247, 0, '190.104.71.205', 1, 'login', 0, 'error', 'index.php', 'tecpreci'),
(316, 1359485256, 2, '190.104.71.205', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(317, 1359485258, 2, '190.104.71.205', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(318, 1359485264, 2, '190.104.71.205', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(319, 1359485302, 2, '190.104.71.205', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(320, 1359485349, 2, '190.104.71.205', 2, 'course', 0, 'enrol', '../enrol/users.php?id=2', '2'),
(321, 1359485371, 2, '190.104.71.205', 2, 'course', 0, 'enrol', '../enrol/users.php?id=2', '2'),
(322, 1359485665, 5, '190.104.68.87', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '5'),
(323, 1359485667, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(324, 1359485683, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(325, 1359485689, 5, '190.104.68.87', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(326, 1359485913, 2, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(327, 1359485989, 2, '190.104.68.87', 1, 'role', 0, 'assign', 'admin/roles/assign.php?contextid=2&roleid=3', 'Profesor'),
(328, 1359486008, 2, '190.104.68.87', 1, 'role', 0, 'assign', 'admin/roles/assign.php?contextid=2&roleid=3', 'Profesor'),
(329, 1359486032, 2, '190.104.68.87', 1, 'role', 0, 'assign', 'admin/roles/assign.php?contextid=2&roleid=3', 'Profesor'),
(330, 1359486096, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(331, 1359486195, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(332, 1359486209, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(333, 1359486209, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(334, 1359486419, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(335, 1359486684, 2, '190.104.68.87', 2, 'user', 0, 'view', 'view.php?id=5&course=2', '5'),
(336, 1359486782, 2, '190.189.40.226', 1, 'role', 0, 'assign', 'admin/roles/assign.php?contextid=3&roleid=2', 'Creador de curso'),
(337, 1359486876, 2, '190.189.40.226', 1, 'role', 0, 'assign', 'admin/roles/assign.php?contextid=3&roleid=1', 'Gestor'),
(338, 1359487005, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(339, 1359487030, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(340, 1359487051, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(341, 1359487067, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(342, 1359487119, 5, '190.104.68.87', 2, 'course', 0, 'update mod', '../mod/chat/view.php?id=5', 'chat 2'),
(343, 1359487119, 5, '190.104.68.87', 2, 'chat', 5, 'update', 'view.php?id=5', '2'),
(344, 1359487119, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(345, 1359487122, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(346, 1359487127, 5, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(347, 1359487132, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(348, 1359487135, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(349, 1359487144, 5, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(350, 1359487154, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(351, 1359487164, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(352, 1359487177, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(353, 1359487879, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(354, 1359487978, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(355, 1359488004, 5, '190.104.68.87', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '5'),
(356, 1359488006, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(357, 1359488018, 5, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(358, 1359488052, 2, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(359, 1359488058, 2, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(360, 1359488061, 2, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(361, 1359488323, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(362, 1359488337, 5, '190.104.68.87', 2, 'user', 0, 'view all', 'index.php?id=2', ''),
(363, 1359488457, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(364, 1359488485, 5, '190.189.40.226', 1, 'user', 0, 'logout', 'view.php?id=5&course=1', '5'),
(365, 1359488498, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(366, 1359488501, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(367, 1359488502, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(368, 1359488515, 5, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(369, 1359488532, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(370, 1359488553, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(371, 1359488566, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(372, 1359488573, 2, '190.189.40.226', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(373, 1359488583, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(374, 1359488602, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(375, 1359488612, 5, '190.104.68.87', 2, 'chat', 5, 'view', 'view.php?id=5', '2'),
(376, 1359488628, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(377, 1359488710, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(378, 1359488734, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(379, 1359488735, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(380, 1359488752, 5, '190.104.68.87', 2, 'course', 5, 'delete mod', 'view.php?id=2', 'chat 2'),
(381, 1359488754, 5, '190.104.68.87', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(382, 1359488784, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(383, 1359488845, 5, '190.104.68.87', 1, 'course', 0, 'new', 'view.php?id=41', 'Marcelo Privado (ID 41)'),
(384, 1359488858, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(385, 1359488868, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(386, 1359488889, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(387, 1359488961, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(388, 1359488965, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(389, 1359488966, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(390, 1359488975, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(391, 1359488981, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(392, 1359488989, 2, '190.189.40.226', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(393, 1359489004, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(394, 1359489015, 2, '190.189.40.226', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(395, 1359489016, 2, '190.189.40.226', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(396, 1359489099, 2, '190.189.40.226', 41, 'course', 0, 'update', 'edit.php?id=41', '41'),
(397, 1359489100, 2, '190.189.40.226', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(398, 1359489137, 5, '190.104.68.87', 41, 'calendar', 0, 'add', 'event.php?action=edit&id=2', 'Marcelo Privado'),
(399, 1359489137, 5, '190.104.68.87', 41, 'course', 0, 'add mod', '../mod/chat/view.php?id=7', 'chat 3'),
(400, 1359489137, 5, '190.104.68.87', 41, 'chat', 7, 'add', 'view.php?id=7', '3'),
(401, 1359489139, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(402, 1359489144, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(403, 1359489168, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(404, 1359489180, 5, '190.104.68.87', 41, 'chat', 7, 'view', 'view.php?id=7', '3'),
(405, 1359489195, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(406, 1359489248, 2, '190.189.40.226', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(407, 1359489255, 2, '190.189.40.226', 41, 'chat', 7, 'view', 'view.php?id=7', '3'),
(408, 1359489360, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(409, 1359489368, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(410, 1359489370, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(411, 1359489380, 5, '190.104.68.87', 41, 'chat', 7, 'view', 'view.php?id=7', '3'),
(412, 1359489384, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(413, 1359489398, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(414, 1359489413, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(415, 1359489415, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(416, 1359489423, 5, '190.104.68.87', 41, 'chat', 7, 'view', 'view.php?id=7', '3'),
(417, 1359489436, 5, '190.104.68.87', 41, 'user', 0, 'view all', 'index.php?id=41', ''),
(418, 1359489456, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(419, 1359489481, 5, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(420, 1359489566, 5, '190.104.68.87', 41, 'course', 0, 'enrol', '../enrol/users.php?id=41', '41'),
(421, 1359489581, 5, '190.104.68.87', 41, 'course', 0, 'view', 'view.php?id=41', '41'),
(422, 1359490577, 2, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(423, 1359491231, 2, '190.104.68.87', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(424, 1359554451, 34, '190.104.76.38', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '34'),
(425, 1359554481, 34, '190.104.76.38', 1, 'user', 0, 'change password', 'view.php?id=34&course=1', '34'),
(426, 1359554624, 34, '190.104.76.38', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(427, 1359554652, 34, '190.104.76.38', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(428, 1359558166, 2, '190.189.40.226', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '2'),
(429, 1359558168, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(430, 1359558176, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(431, 1359558987, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(432, 1359559240, 2, '190.189.40.226', 2, 'course', 0, 'view', 'view.php?id=2', '2'),
(433, 1359559245, 2, '190.189.40.226', 2, 'chat', 2, 'view', 'view.php?id=2', '1'),
(434, 1359559257, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(435, 1359559269, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(436, 1359559270, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(437, 1359559300, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(438, 1359559371, 2, '190.189.40.226', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(439, 1359979545, 0, '190.104.70.120', 1, 'login', 0, 'error', 'index.php', 'fabian'),
(440, 1359979595, 0, '190.104.70.120', 1, 'login', 0, 'error', 'index.php', 'fabian'),
(441, 1360755610, 7, '190.104.66.143', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '7'),
(442, 1360755633, 7, '190.104.66.143', 1, 'user', 0, 'change password', 'view.php?id=7&course=1', '7'),
(443, 1360755851, 7, '190.104.66.143', 1, 'user', 0, 'update', 'view.php?id=7&course=1', ''),
(444, 1360767064, 0, '201.234.41.152', 1, 'login', 0, 'error', 'index.php', 'pablo_painevil'),
(445, 1360767095, 27, '201.234.41.152', 1, 'user', 0, 'login', 'view.php?id=0&course=1', '27'),
(446, 1360767140, 27, '201.234.41.152', 1, 'user', 0, 'change password', 'view.php?id=27&course=1', '27'),
(447, 1360767222, 27, '201.234.41.152', 1, 'user', 0, 'update', 'view.php?id=27&course=1', ''),
(448, 1360767229, 27, '201.234.41.152', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(449, 1360767244, 27, '201.234.41.152', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(450, 1360767270, 27, '201.234.41.152', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(451, 1360767287, 27, '201.234.41.152', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(452, 1360767312, 27, '201.234.41.152', 1, 'course', 0, 'view', 'view.php?id=1', '1'),
(453, 1360767323, 27, '201.234.41.152', 1, 'user', 0, 'logout', 'view.php?id=27&course=1', '27');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_log_display`
--

CREATE TABLE `mdl_log_display` (
  `id` bigint(10) NOT NULL,
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `action` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mtable` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `field` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `component` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For a particular module/action, specifies a moodle table/fie';

--
-- Dumping data for table `mdl_log_display`
--

INSERT INTO `mdl_log_display` (`id`, `module`, `action`, `mtable`, `field`, `component`) VALUES
(1, 'course', 'user report', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(2, 'course', 'view', 'course', 'fullname', 'moodle'),
(3, 'course', 'view section', 'course_sections', 'name', 'moodle'),
(4, 'course', 'update', 'course', 'fullname', 'moodle'),
(5, 'course', 'enrol', 'course', 'fullname', 'moodle'),
(6, 'course', 'unenrol', 'course', 'fullname', 'moodle'),
(7, 'course', 'report log', 'course', 'fullname', 'moodle'),
(8, 'course', 'report live', 'course', 'fullname', 'moodle'),
(9, 'course', 'report outline', 'course', 'fullname', 'moodle'),
(10, 'course', 'report participation', 'course', 'fullname', 'moodle'),
(11, 'course', 'report stats', 'course', 'fullname', 'moodle'),
(12, 'message', 'write', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(13, 'message', 'read', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(14, 'message', 'add contact', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(15, 'message', 'remove contact', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(16, 'message', 'block contact', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(17, 'message', 'unblock contact', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(18, 'group', 'view', 'groups', 'name', 'moodle'),
(19, 'tag', 'update', 'tag', 'name', 'moodle'),
(20, 'tag', 'flag', 'tag', 'name', 'moodle'),
(21, 'user', 'view', 'user', 'CONCAT(firstname, \' \', lastname)', 'moodle'),
(22, 'assign', 'add', 'assign', 'name', 'mod_assign'),
(23, 'assign', 'delete mod', 'assign', 'name', 'mod_assign'),
(24, 'assign', 'download all submissions', 'assign', 'name', 'mod_assign'),
(25, 'assign', 'grade submission', 'assign', 'name', 'mod_assign'),
(26, 'assign', 'lock submission', 'assign', 'name', 'mod_assign'),
(27, 'assign', 'reveal identities', 'assign', 'name', 'mod_assign'),
(28, 'assign', 'revert submission to draft', 'assign', 'name', 'mod_assign'),
(29, 'assign', 'submission statement accepted', 'assign', 'name', 'mod_assign'),
(30, 'assign', 'submit', 'assign', 'name', 'mod_assign'),
(31, 'assign', 'submit for grading', 'assign', 'name', 'mod_assign'),
(32, 'assign', 'unlock submission', 'assign', 'name', 'mod_assign'),
(33, 'assign', 'update', 'assign', 'name', 'mod_assign'),
(34, 'assign', 'upload', 'assign', 'name', 'mod_assign'),
(35, 'assign', 'view', 'assign', 'name', 'mod_assign'),
(36, 'assign', 'view all', 'course', 'fullname', 'mod_assign'),
(37, 'assign', 'view confirm submit assignment form', 'assign', 'name', 'mod_assign'),
(38, 'assign', 'view grading form', 'assign', 'name', 'mod_assign'),
(39, 'assign', 'view submission', 'assign', 'name', 'mod_assign'),
(40, 'assign', 'view submission grading table', 'assign', 'name', 'mod_assign'),
(41, 'assign', 'view submit assignment form', 'assign', 'name', 'mod_assign'),
(42, 'assign', 'view feedback', 'assign', 'name', 'mod_assign'),
(43, 'assignment', 'view', 'assignment', 'name', 'mod_assignment'),
(44, 'assignment', 'add', 'assignment', 'name', 'mod_assignment'),
(45, 'assignment', 'update', 'assignment', 'name', 'mod_assignment'),
(46, 'assignment', 'view submission', 'assignment', 'name', 'mod_assignment'),
(47, 'assignment', 'upload', 'assignment', 'name', 'mod_assignment'),
(48, 'book', 'add', 'book', 'name', 'mod_book'),
(49, 'book', 'update', 'book', 'name', 'mod_book'),
(50, 'book', 'view', 'book', 'name', 'mod_book'),
(51, 'book', 'add chapter', 'book_chapters', 'title', 'mod_book'),
(52, 'book', 'update chapter', 'book_chapters', 'title', 'mod_book'),
(53, 'book', 'view chapter', 'book_chapters', 'title', 'mod_book'),
(54, 'chat', 'view', 'chat', 'name', 'mod_chat'),
(55, 'chat', 'add', 'chat', 'name', 'mod_chat'),
(56, 'chat', 'update', 'chat', 'name', 'mod_chat'),
(57, 'chat', 'report', 'chat', 'name', 'mod_chat'),
(58, 'chat', 'talk', 'chat', 'name', 'mod_chat'),
(59, 'choice', 'view', 'choice', 'name', 'mod_choice'),
(60, 'choice', 'update', 'choice', 'name', 'mod_choice'),
(61, 'choice', 'add', 'choice', 'name', 'mod_choice'),
(62, 'choice', 'report', 'choice', 'name', 'mod_choice'),
(63, 'choice', 'choose', 'choice', 'name', 'mod_choice'),
(64, 'choice', 'choose again', 'choice', 'name', 'mod_choice'),
(65, 'data', 'view', 'data', 'name', 'mod_data'),
(66, 'data', 'add', 'data', 'name', 'mod_data'),
(67, 'data', 'update', 'data', 'name', 'mod_data'),
(68, 'data', 'record delete', 'data', 'name', 'mod_data'),
(69, 'data', 'fields add', 'data_fields', 'name', 'mod_data'),
(70, 'data', 'fields update', 'data_fields', 'name', 'mod_data'),
(71, 'data', 'templates saved', 'data', 'name', 'mod_data'),
(72, 'data', 'templates def', 'data', 'name', 'mod_data'),
(73, 'feedback', 'startcomplete', 'feedback', 'name', 'mod_feedback'),
(74, 'feedback', 'submit', 'feedback', 'name', 'mod_feedback'),
(75, 'feedback', 'delete', 'feedback', 'name', 'mod_feedback'),
(76, 'feedback', 'view', 'feedback', 'name', 'mod_feedback'),
(77, 'feedback', 'view all', 'course', 'shortname', 'mod_feedback'),
(78, 'folder', 'view', 'folder', 'name', 'mod_folder'),
(79, 'folder', 'view all', 'folder', 'name', 'mod_folder'),
(80, 'folder', 'update', 'folder', 'name', 'mod_folder'),
(81, 'folder', 'add', 'folder', 'name', 'mod_folder'),
(82, 'forum', 'add', 'forum', 'name', 'mod_forum'),
(83, 'forum', 'update', 'forum', 'name', 'mod_forum'),
(84, 'forum', 'add discussion', 'forum_discussions', 'name', 'mod_forum'),
(85, 'forum', 'add post', 'forum_posts', 'subject', 'mod_forum'),
(86, 'forum', 'update post', 'forum_posts', 'subject', 'mod_forum'),
(87, 'forum', 'user report', 'user', 'CONCAT(firstname, \' \', lastname)', 'mod_forum'),
(88, 'forum', 'move discussion', 'forum_discussions', 'name', 'mod_forum'),
(89, 'forum', 'view subscribers', 'forum', 'name', 'mod_forum'),
(90, 'forum', 'view discussion', 'forum_discussions', 'name', 'mod_forum'),
(91, 'forum', 'view forum', 'forum', 'name', 'mod_forum'),
(92, 'forum', 'subscribe', 'forum', 'name', 'mod_forum'),
(93, 'forum', 'unsubscribe', 'forum', 'name', 'mod_forum'),
(94, 'glossary', 'add', 'glossary', 'name', 'mod_glossary'),
(95, 'glossary', 'update', 'glossary', 'name', 'mod_glossary'),
(96, 'glossary', 'view', 'glossary', 'name', 'mod_glossary'),
(97, 'glossary', 'view all', 'glossary', 'name', 'mod_glossary'),
(98, 'glossary', 'add entry', 'glossary', 'name', 'mod_glossary'),
(99, 'glossary', 'update entry', 'glossary', 'name', 'mod_glossary'),
(100, 'glossary', 'add category', 'glossary', 'name', 'mod_glossary'),
(101, 'glossary', 'update category', 'glossary', 'name', 'mod_glossary'),
(102, 'glossary', 'delete category', 'glossary', 'name', 'mod_glossary'),
(103, 'glossary', 'approve entry', 'glossary', 'name', 'mod_glossary'),
(104, 'glossary', 'view entry', 'glossary_entries', 'concept', 'mod_glossary'),
(105, 'imscp', 'view', 'imscp', 'name', 'mod_imscp'),
(106, 'imscp', 'view all', 'imscp', 'name', 'mod_imscp'),
(107, 'imscp', 'update', 'imscp', 'name', 'mod_imscp'),
(108, 'imscp', 'add', 'imscp', 'name', 'mod_imscp'),
(109, 'label', 'add', 'label', 'name', 'mod_label'),
(110, 'label', 'update', 'label', 'name', 'mod_label'),
(111, 'lesson', 'start', 'lesson', 'name', 'mod_lesson'),
(112, 'lesson', 'end', 'lesson', 'name', 'mod_lesson'),
(113, 'lesson', 'view', 'lesson_pages', 'title', 'mod_lesson'),
(114, 'lti', 'view', 'lti', 'name', 'mod_lti'),
(115, 'lti', 'launch', 'lti', 'name', 'mod_lti'),
(116, 'lti', 'view all', 'lti', 'name', 'mod_lti'),
(117, 'page', 'view', 'page', 'name', 'mod_page'),
(118, 'page', 'view all', 'page', 'name', 'mod_page'),
(119, 'page', 'update', 'page', 'name', 'mod_page'),
(120, 'page', 'add', 'page', 'name', 'mod_page'),
(121, 'quiz', 'add', 'quiz', 'name', 'mod_quiz'),
(122, 'quiz', 'update', 'quiz', 'name', 'mod_quiz'),
(123, 'quiz', 'view', 'quiz', 'name', 'mod_quiz'),
(124, 'quiz', 'report', 'quiz', 'name', 'mod_quiz'),
(125, 'quiz', 'attempt', 'quiz', 'name', 'mod_quiz'),
(126, 'quiz', 'submit', 'quiz', 'name', 'mod_quiz'),
(127, 'quiz', 'review', 'quiz', 'name', 'mod_quiz'),
(128, 'quiz', 'editquestions', 'quiz', 'name', 'mod_quiz'),
(129, 'quiz', 'preview', 'quiz', 'name', 'mod_quiz'),
(130, 'quiz', 'start attempt', 'quiz', 'name', 'mod_quiz'),
(131, 'quiz', 'close attempt', 'quiz', 'name', 'mod_quiz'),
(132, 'quiz', 'continue attempt', 'quiz', 'name', 'mod_quiz'),
(133, 'quiz', 'edit override', 'quiz', 'name', 'mod_quiz'),
(134, 'quiz', 'delete override', 'quiz', 'name', 'mod_quiz'),
(135, 'resource', 'view', 'resource', 'name', 'mod_resource'),
(136, 'resource', 'view all', 'resource', 'name', 'mod_resource'),
(137, 'resource', 'update', 'resource', 'name', 'mod_resource'),
(138, 'resource', 'add', 'resource', 'name', 'mod_resource'),
(139, 'scorm', 'view', 'scorm', 'name', 'mod_scorm'),
(140, 'scorm', 'review', 'scorm', 'name', 'mod_scorm'),
(141, 'scorm', 'update', 'scorm', 'name', 'mod_scorm'),
(142, 'scorm', 'add', 'scorm', 'name', 'mod_scorm'),
(143, 'survey', 'add', 'survey', 'name', 'mod_survey'),
(144, 'survey', 'update', 'survey', 'name', 'mod_survey'),
(145, 'survey', 'download', 'survey', 'name', 'mod_survey'),
(146, 'survey', 'view form', 'survey', 'name', 'mod_survey'),
(147, 'survey', 'view graph', 'survey', 'name', 'mod_survey'),
(148, 'survey', 'view report', 'survey', 'name', 'mod_survey'),
(149, 'survey', 'submit', 'survey', 'name', 'mod_survey'),
(150, 'url', 'view', 'url', 'name', 'mod_url'),
(151, 'url', 'view all', 'url', 'name', 'mod_url'),
(152, 'url', 'update', 'url', 'name', 'mod_url'),
(153, 'url', 'add', 'url', 'name', 'mod_url'),
(154, 'workshop', 'add', 'workshop', 'name', 'mod_workshop'),
(155, 'workshop', 'update', 'workshop', 'name', 'mod_workshop'),
(156, 'workshop', 'view', 'workshop', 'name', 'mod_workshop'),
(157, 'workshop', 'view all', 'workshop', 'name', 'mod_workshop'),
(158, 'workshop', 'add submission', 'workshop_submissions', 'title', 'mod_workshop'),
(159, 'workshop', 'update submission', 'workshop_submissions', 'title', 'mod_workshop'),
(160, 'workshop', 'view submission', 'workshop_submissions', 'title', 'mod_workshop'),
(161, 'workshop', 'add assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(162, 'workshop', 'update assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(163, 'workshop', 'add example', 'workshop_submissions', 'title', 'mod_workshop'),
(164, 'workshop', 'update example', 'workshop_submissions', 'title', 'mod_workshop'),
(165, 'workshop', 'view example', 'workshop_submissions', 'title', 'mod_workshop'),
(166, 'workshop', 'add reference assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(167, 'workshop', 'update reference assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(168, 'workshop', 'add example assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(169, 'workshop', 'update example assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(170, 'workshop', 'update aggregate grades', 'workshop', 'name', 'mod_workshop'),
(171, 'workshop', 'update clear aggregated grades', 'workshop', 'name', 'mod_workshop'),
(172, 'workshop', 'update clear assessments', 'workshop', 'name', 'mod_workshop'),
(173, 'book', 'exportimscp', 'book', 'name', 'booktool_exportimscp'),
(174, 'book', 'print', 'book', 'name', 'booktool_print'),
(175, 'book', 'print chapter', 'book_chapters', 'title', 'booktool_print');

-- --------------------------------------------------------

--
-- Table structure for table `mdl_log_queries`
--

CREATE TABLE `mdl_log_queries` (
  `id` bigint(10) NOT NULL,
  `qtype` mediumint(5) NOT NULL,
  `sqltext` longtext COLLATE utf8_unicode_ci NOT NULL,
  `sqlparams` longtext COLLATE utf8_unicode_ci,
  `error` mediumint(5) NOT NULL DEFAULT '0',
  `info` longtext COLLATE utf8_unicode_ci,
  `backtrace` longtext COLLATE utf8_unicode_ci,
  `exectime` decimal(10,5) NOT NULL,
  `timelogged` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Logged database queries.';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lti`
--

CREATE TABLE `mdl_lti` (
  `id` bigint(10) NOT NULL,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` longtext COLLATE utf8_unicode_ci,
  `introformat` smallint(4) DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `typeid` bigint(10) DEFAULT NULL,
  `toolurl` longtext COLLATE utf8_unicode_ci NOT NULL,
  `securetoolurl` longtext COLLATE utf8_unicode_ci,
  `instructorchoicesendname` tinyint(1) DEFAULT NULL,
  `instructorchoicesendemailaddr` tinyint(1) DEFAULT NULL,
  `instructorchoiceallowroster` tinyint(1) DEFAULT NULL,
  `instructorchoiceallowsetting` tinyint(1) DEFAULT NULL,
  `instructorcustomparameters` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `instructorchoiceacceptgrades` tinyint(1) DEFAULT NULL,
  `grade` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `launchcontainer` tinyint(2) NOT NULL DEFAULT '1',
  `resourcekey` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `debuglaunch` tinyint(1) NOT NULL DEFAULT '0',
  `showtitlelaunch` tinyint(1) NOT NULL DEFAULT '0',
  `showdescriptionlaunch` tinyint(1) NOT NULL DEFAULT '0',
  `servicesalt` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `icon` longtext COLLATE utf8_unicode_ci,
  `secureicon` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='This table contains Basic LTI activities instances';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_lti_submission`
--

CREATE TABLE `mdl_lti_submission` (
  `id` bigint(10) NOT NULL,
  `ltiid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `datesubmitted` bigint(10) NOT NULL,
  `dateupdated` bigint(10) NOT NULL,
  `gradepercent` decimal(10,5) NOT NULL,
  `originalgrade` decimal(10,5) NOT NULL,
  `launchid` bigint(10) NOT NULL,
  `state` tinyint(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Keeps track of individual submissions for LTI activities.';

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

CREATE TABLE `mdl_message` (
  `id` bigint(10) NOT NULL,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext COLLATE utf8_unicode_ci,
  `contexturlname` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all unread messages';

-- --------------------------------------------------------

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

CREATE TABLE `mdl_message_contacts` (
  `id` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `contactid` bigint(10) NOT NULL DEFAULT '0',
  `blocked` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maintains lists of relationships between users';

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_message_processors` (`id`, `name`, `enabled`) VALUES
(1, 'email', 1),
(2, 'jabber', 1),
(3, 'popup', 1);

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_message_providers` (`id`, `name`, `component`, `capability`) VALUES
(1, 'notices', 'moodle', 'moodle/site:config'),
(2, 'errors', 'moodle', 'moodle/site:config'),
(3, 'availableupdate', 'moodle', 'moodle/site:config'),
(4, 'instantmessage', 'moodle', NULL),
(5, 'backup', 'moodle', 'moodle/site:config'),
(6, 'courserequested', 'moodle', 'moodle/site:approvecourse'),
(7, 'courserequestapproved', 'moodle', 'moodle/course:request'),
(8, 'courserequestrejected', 'moodle', 'moodle/course:request'),
(9, 'assign_notification', 'mod_assign', NULL),
(10, 'assignment_updates', 'mod_assignment', NULL),
(11, 'submission', 'mod_feedback', NULL),
(12, 'message', 'mod_feedback', NULL),
(13, 'posts', 'mod_forum', NULL),
(14, 'graded_essay', 'mod_lesson', NULL),
(15, 'submission', 'mod_quiz', 'mod/quiz:emailnotifysubmission'),
(16, 'confirmation', 'mod_quiz', 'mod/quiz:emailconfirmsubmission'),
(17, 'attempt_overdue', 'mod_quiz', 'mod/quiz:emailwarnoverdue'),
(18, 'authorize_enrolment', 'enrol_authorize', NULL),
(19, 'flatfile_enrolment', 'enrol_flatfile', NULL),
(20, 'imsenterprise_enrolment', 'enrol_imsenterprise', NULL),
(21, 'expiry_notification', 'enrol_manual', NULL),
(22, 'paypal_enrolment', 'enrol_paypal', NULL),
(23, 'expiry_notification', 'enrol_self', NULL);

-- --------------------------------------------------------

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

CREATE TABLE `mdl_message_read` (
  `id` bigint(10) NOT NULL,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext COLLATE utf8_unicode_ci,
  `fullmessage` longtext COLLATE utf8_unicode_ci,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext COLLATE utf8_unicode_ci,
  `smallmessage` longtext COLLATE utf8_unicode_ci,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext COLLATE utf8_unicode_ci,
  `contexturlname` longtext COLLATE utf8_unicode_ci,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timeread` bigint(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all messages that have been read';

-- --------------------------------------------------------

--
-- Table structure for table `mdl_message_working`
--

CREATE TABLE `mdl_message_working` (
  `id` bigint(10) NOT NULL,
  `unreadmessageid` bigint(10) NOT NULL,
  `processorid` bigint(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Lists all the messages and processors that need to be proces';

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

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

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

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_mnet_host` (`id`, `deleted`, `wwwroot`, `ip_address`, `name`, `public_key`, `public_key_expires`, `transport`, `portno`, `last_connect_time`, `last_log_id`, `force_theme`, `theme`, `applicationid`) VALUES
(1, 0, 'http://campus.tecprecincsrl.com.ar', '178.33.161.11', '', '', 0, 0, 0, 0, 0, 0, NULL, 1),
(2, 0, '', '', 'All Hosts', '', 0, 0, 0, 0, 0, 0, NULL, 1);

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

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

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

-- --------------------------------------------------------

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

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

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

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

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_mnet_rpc` (`id`, `functionname`, `xmlrpcpath`, `plugintype`, `pluginname`, `enabled`, `help`, `profile`, `filename`, `classname`, `static`) 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:0:\"\";}}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:0:\"\";}}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:\n f1          - the content of the default 100x100px image\n f1_mimetype - the mimetype of the f1 file\n f2          - the content of the 35x35px variant of the image\n f2_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:5:\"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:0:\"\";}}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:0:\"\";}}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:14:\"user details {\";}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:0:\"\";}}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:5:\"array\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}', 'enrol.php', 'enrol_mnet_mnetservice_enrol', 0),
(15, 'fetch_file', 'portfolio/mahara/lib.php/fetch_file', 'portfolio', 'mahara', 1, 'xmlrpc (mnet) function to get the file.\nreads in the file and returns it base_64 encoded\nso that it can be enrypted by mnet.', 'a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"token\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:56:\"the token recieved previously during send_content_intent\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"void\";s:11:\"description\";s:0:\"\";}}', 'lib.php', 'portfolio_plugin_mahara', 1);

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_mnet_service` (`id`, `name`, `description`, `apiversion`, `offer`) VALUES
(1, 'sso_idp', '', '1', 1),
(2, 'sso_sp', '', '1', 1),
(3, 'mnet_enrol', '', '1', 1),
(4, 'pf', '', '1', 1);

-- --------------------------------------------------------

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

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

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

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

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

-- --------------------------------------------------------

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

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

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

INSERT INTO `mdl_my_pages` (`id`, `userid`, `name`, `private`, `sortorder`) VALUES
(1, NULL, '__default', 0, 0),
(2, NULL, '__default', 1, 0),
(3, 19, '__default', 0, 0),
(4, 46, '__default', 0, 0);

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

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

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

-- --------------------------------------------------------

--
