SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- Database: `soft_claro1110`
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]category`
CREATE TABLE `[[dbprefix]]category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '',
`code` varchar(12) NOT NULL DEFAULT '',
`idParent` int(11) DEFAULT '0',
`rank` int(11) NOT NULL DEFAULT '0',
`visible` tinyint(1) NOT NULL DEFAULT '1',
`canHaveCoursesChild` tinyint(1) NOT NULL DEFAULT '1',
UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
-- Dumping data for table `[[dbprefix]]category`
INSERT INTO `[[dbprefix]]category` VALUES
(0, 'Root', 'ROOT', NULL, 0, 0, 0),
(2, 'Sciences', 'SC', 0, 1, 1, 1),
(3, 'Economics', 'ECO', 0, 2, 1, 1),
(4, 'Humanities', 'HUMA', 0, 3, 1, 1);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]class`
CREATE TABLE `[[dbprefix]]class` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '',
`class_parent_id` int(11) DEFAULT NULL,
`class_level` int(11) NOT NULL DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='classe_id, name, classe_parent_id, classe_level' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]config_file`
CREATE TABLE `[[dbprefix]]config_file` (
`config_code` varchar(30) NOT NULL DEFAULT '',
`config_hash` varchar(40) NOT NULL DEFAULT '',
PRIMARY KEY (`config_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AVG_ROW_LENGTH=48;
-- Dumping data for table `[[dbprefix]]config_file`
INSERT INTO `[[dbprefix]]config_file` VALUES
('CLAUTH', '[[md5_CLAUTH]]'),
('CLMSG', '[[md5_CLMSG]]'),
('CLSSO', '[[md5_CLSSO]]'),
('CLHOME', '[[md5_CLHOME]]'),
('CLICAL', '[[md5_CLICAL]]'),
('CLPROFIL', '[[md5_CLPROFIL]]'),
('CLCRS', '[[md5_CLCRS]]'),
('CLRSS', '[[md5_CLRSS]]'),
('CLMAIN', '[[md5_CLMAIN]]'),
('CLGRP', '[[md5_CLGRP]]'),
('CLCAS', '[[md5_CLCAS]]'),
('CLKCACHE', '[[md5_CLKCACHE]]'),
('CLDSC', '[[md5_CLDSC]]'),
('CLANN', '[[md5_CLANN]]'),
('CLDOC', '[[md5_CLDOC]]'),
('CLQWZ', '[[md5_CLQWZ]]'),
('CLLNP', '[[md5_CLLNP]]'),
('CLWRK', '[[md5_CLWRK]]'),
('CLFRM', '[[md5_CLFRM]]'),
('CLUSR', '[[md5_CLUSR]]'),
('CLWIKI', '[[md5_CLWIKI]]'),
('CLCHAT', '[[md5_CLCHAT]]');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]cours`
CREATE TABLE `[[dbprefix]]cours` (
`cours_id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(40) DEFAULT NULL,
`isSourceCourse` tinyint(4) NOT NULL DEFAULT '0',
`sourceCourseId` int(11) DEFAULT NULL,
`administrativeNumber` varchar(40) DEFAULT NULL,
`directory` varchar(20) DEFAULT NULL,
`dbName` varchar(40) DEFAULT NULL,
`language` varchar(15) DEFAULT NULL,
`intitule` varchar(250) DEFAULT NULL,
`titulaires` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`extLinkName` varchar(30) DEFAULT NULL,
`extLinkUrl` varchar(180) DEFAULT NULL,
`visibility` enum('visible','invisible') NOT NULL DEFAULT 'visible',
`access` enum('public','private','platform') NOT NULL DEFAULT 'public',
`registration` enum('open','close','validation') NOT NULL DEFAULT 'open',
`registrationKey` varchar(255) DEFAULT NULL,
`diskQuota` int(10) unsigned DEFAULT NULL,
`versionDb` varchar(250) NOT NULL DEFAULT 'NEVER SET',
`versionClaro` varchar(250) NOT NULL DEFAULT 'NEVER SET',
`lastVisit` datetime DEFAULT NULL,
`lastEdit` datetime DEFAULT NULL,
`creationDate` datetime DEFAULT NULL,
`expirationDate` datetime DEFAULT NULL,
`defaultProfileId` int(11) NOT NULL,
`status` enum('enable','pending','disable','trash','date') NOT NULL DEFAULT 'enable',
`userLimit` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`cours_id`),
KEY `administrativeNumber` (`administrativeNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='data of courses' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]coursehomepage_portlet`
CREATE TABLE `[[dbprefix]]coursehomepage_portlet` (
`label` varchar(10) NOT NULL,
`name` varchar(255) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- Dumping data for table `[[dbprefix]]coursehomepage_portlet`
INSERT INTO `[[dbprefix]]coursehomepage_portlet` VALUES
('CLANN', 'Announcements');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]course_tool`
CREATE TABLE `[[dbprefix]]course_tool` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`claro_label` varchar(8) NOT NULL DEFAULT '',
`script_url` varchar(255) NOT NULL DEFAULT '',
`icon` varchar(255) DEFAULT NULL,
`def_access` enum('ALL','COURSE_MEMBER','GROUP_MEMBER','GROUP_TUTOR','COURSE_ADMIN','PLATFORM_ADMIN') NOT NULL DEFAULT 'ALL',
`def_rank` int(10) unsigned DEFAULT NULL,
`add_in_course` enum('MANUAL','AUTOMATIC') NOT NULL DEFAULT 'AUTOMATIC',
`access_manager` enum('PLATFORM_ADMIN','COURSE_ADMIN') NOT NULL DEFAULT 'COURSE_ADMIN',
UNIQUE KEY `claro_label` (`claro_label`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='based definiton of the claroline tool used in each course' AUTO_INCREMENT=13 ;
-- Dumping data for table `[[dbprefix]]course_tool`
INSERT INTO `[[dbprefix]]course_tool` VALUES
(1, 'CLDSC', 'index.php', 'icon.png', 'ALL', 1, 'AUTOMATIC', 'COURSE_ADMIN'),
(2, 'CLCAL', 'agenda.php', 'icon.png', 'ALL', 2, 'AUTOMATIC', 'COURSE_ADMIN'),
(3, 'CLANN', 'announcements.php', 'icon.png', 'ALL', 3, 'AUTOMATIC', 'COURSE_ADMIN'),
(4, 'CLDOC', 'document.php', 'icon.png', 'ALL', 4, 'AUTOMATIC', 'COURSE_ADMIN'),
(5, 'CLQWZ', 'exercise.php', 'icon.png', 'ALL', 5, 'AUTOMATIC', 'COURSE_ADMIN'),
(6, 'CLLNP', 'learningPathList.php', 'icon.png', 'ALL', 6, 'AUTOMATIC', 'COURSE_ADMIN'),
(7, 'CLWRK', 'work.php', 'icon.png', 'ALL', 7, 'AUTOMATIC', 'COURSE_ADMIN'),
(8, 'CLFRM', 'index.php', 'icon.png', 'ALL', 8, 'AUTOMATIC', 'COURSE_ADMIN'),
(9, 'CLGRP', 'group.php', 'icon.png', 'ALL', 9, 'AUTOMATIC', 'COURSE_ADMIN'),
(10, 'CLUSR', 'user.php', 'icon.png', 'ALL', 10, 'AUTOMATIC', 'COURSE_ADMIN'),
(11, 'CLWIKI', 'wiki.php', 'icon.png', 'ALL', 11, 'AUTOMATIC', 'COURSE_ADMIN'),
(12, 'CLCHAT', 'index.php', 'icon.png', 'ALL', 12, 'AUTOMATIC', 'COURSE_ADMIN');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]desktop_portlet`
CREATE TABLE `[[dbprefix]]desktop_portlet` (
`label` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`visibility` enum('visible','invisible') NOT NULL DEFAULT 'visible',
`activated` int(11) NOT NULL DEFAULT '1',
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]desktop_portlet_data`
CREATE TABLE `[[dbprefix]]desktop_portlet_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(255) NOT NULL,
`idUser` int(11) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]dock`
CREATE TABLE `[[dbprefix]]dock` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`module_id` smallint(5) unsigned NOT NULL DEFAULT '0',
`name` varchar(50) NOT NULL DEFAULT '',
`rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]event_resource`
CREATE TABLE `[[dbprefix]]event_resource` (
`event_id` int(11) NOT NULL,
`resource_id` int(11) NOT NULL,
`tool_id` int(11) NOT NULL,
`course_code` varchar(40) NOT NULL,
PRIMARY KEY (`event_id`,`resource_id`,`tool_id`,`course_code`),
UNIQUE KEY `event_id` (`event_id`,`course_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]im_message`
CREATE TABLE `[[dbprefix]]im_message` (
`message_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sender` int(11) NOT NULL,
`subject` varchar(100) NOT NULL,
`send_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`course` varchar(40) DEFAULT NULL,
`group` int(11) DEFAULT NULL,
`tools` char(8) DEFAULT NULL,
PRIMARY KEY (`message_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]im_message_status`
CREATE TABLE `[[dbprefix]]im_message_status` (
`user_id` int(11) NOT NULL,
`message_id` int(11) NOT NULL,
`is_read` tinyint(4) NOT NULL DEFAULT '0',
`is_deleted` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`,`message_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]im_recipient`
CREATE TABLE `[[dbprefix]]im_recipient` (
`message_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`sent_to` enum('toUser','toGroup','toCourse','toAll') NOT NULL,
PRIMARY KEY (`message_id`,`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]log`
CREATE TABLE `[[dbprefix]]log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(40) DEFAULT NULL,
`tool_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`ip` varchar(15) DEFAULT NULL,
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`type` varchar(60) NOT NULL DEFAULT '',
KEY `course_id` (`course_code`),
KEY `user_log` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]module`
CREATE TABLE `[[dbprefix]]module` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`label` varchar(8) NOT NULL DEFAULT '',
`name` varchar(100) NOT NULL DEFAULT '',
`activation` enum('activated','desactivated') NOT NULL DEFAULT 'desactivated',
`type` varchar(10) NOT NULL DEFAULT 'applet',
`script_url` char(255) NOT NULL DEFAULT 'entry.php',
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
-- Dumping data for table `[[dbprefix]]module`
INSERT INTO `[[dbprefix]]module` VALUES
(1, 'CLDSC', 'Course description', 'activated', 'tool', 'index.php'),
(2, 'CLCAL', 'Agenda', 'activated', 'tool', 'agenda.php'),
(3, 'CLANN', 'Announcements', 'activated', 'tool', 'announcements.php'),
(4, 'CLDOC', 'Documents and Links', 'activated', 'tool', 'document.php'),
(5, 'CLQWZ', 'Exercises', 'activated', 'tool', 'exercise.php'),
(6, 'CLLNP', 'Learning path', 'activated', 'tool', 'learningPathList.php'),
(7, 'CLWRK', 'Assignments', 'activated', 'tool', 'work.php'),
(8, 'CLFRM', 'Forums', 'activated', 'tool', 'index.php'),
(9, 'CLGRP', 'Groups', 'activated', 'tool', 'group.php'),
(10, 'CLUSR', 'Users', 'activated', 'tool', 'user.php'),
(11, 'CLWIKI', 'Wiki', 'activated', 'tool', 'wiki.php'),
(12, 'CLCHAT', 'Chat', 'activated', 'tool', 'index.php');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]module_contexts`
CREATE TABLE `[[dbprefix]]module_contexts` (
`module_id` int(10) unsigned NOT NULL,
`context` varchar(60) NOT NULL DEFAULT 'course',
PRIMARY KEY (`module_id`,`context`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- Dumping data for table `[[dbprefix]]module_contexts`
INSERT INTO `[[dbprefix]]module_contexts` VALUES
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]module_info`
CREATE TABLE `[[dbprefix]]module_info` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`module_id` smallint(6) NOT NULL DEFAULT '0',
`version` varchar(10) NOT NULL DEFAULT '',
`author` varchar(50) DEFAULT NULL,
`author_email` varchar(100) DEFAULT NULL,
`author_website` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`license` varchar(50) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
-- Dumping data for table `[[dbprefix]]module_info`
INSERT INTO `[[dbprefix]]module_info` VALUES
(1, 1, '1.9', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLDSC', 'GPL'),
(2, 2, '3.0', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLCAL', 'GPL'),
(3, 3, '3.0', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLANN', 'GPL'),
(4, 4, '4.0', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n This tool is an original tool of claroline\n It''s able to store and manage local ressoures like file, url.\n Can manage upload, zip, images, url, subdirectory\n Ca edit html files\n ', 'http://wiki.claroline.net/index.php/CLDOC', 'GPL'),
(5, 5, '1.8', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLQWZ', 'GPL'),
(6, 6, '1.0', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://www.claroline.net/wiki/CLLNP/', 'GPL'),
(7, 7, '1.8', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', '', 'GPL'),
(8, 8, '1.8', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLFRM', 'GPL'),
(9, 9, '1.8', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n This tool allows group-based activities and group management in Claroline\n ', 'http://wiki.claroline.net/index.php/CLGRP', 'GPL'),
(10, 10, '4.0', 'Claro team', 'devteam@claroline.net', 'http://www.claroline.net/', '\n ', 'http://wiki.claroline.net/index.php/CLUSR', 'GPL'),
(11, 11, '2.0', 'Frederic Minne', 'zefredz@claroline.net', 'http://wiki.claroline.net/index.php/CLWIKI', '\n This is the original Wiki tool for the Claroline platform. It allows\n online collaborative edition of web pages using a simplified Wiki\n syntax based on Olivier Meunier''s wiki2xhtml renderer from the\n Dotclear blog project.\n ', 'http://wiki.claroline.net/index.php/CLWIKI', 'GPL'),
(12, 12, '1.0', 'Sebastien Piraux', 'seb@claroline.net', 'http://www.claroline.net', '\n \n ', '', 'GPL');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]notify`
CREATE TABLE `[[dbprefix]]notify` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_code` varchar(40) NOT NULL DEFAULT '0',
`tool_id` int(11) NOT NULL DEFAULT '0',
`ressource_id` varchar(255) NOT NULL DEFAULT '0',
`group_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0',
`date` datetime DEFAULT '0000-00-00 00:00:00',
KEY `course_id` (`course_code`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]property_definition`
CREATE TABLE `[[dbprefix]]property_definition` (
`propertyId` varchar(50) NOT NULL DEFAULT '',
`contextScope` varchar(10) NOT NULL DEFAULT '',
`label` varchar(50) NOT NULL DEFAULT '',
`type` varchar(10) NOT NULL DEFAULT '',
`defaultValue` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`required` tinyint(1) NOT NULL DEFAULT '0',
`rank` int(10) unsigned NOT NULL DEFAULT '0',
`acceptedValue` text NOT NULL,
PRIMARY KEY (`contextScope`,`propertyId`),
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]rel_class_user`
CREATE TABLE `[[dbprefix]]rel_class_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`class_id` int(11) NOT NULL DEFAULT '0',
KEY `user_id` (`user_id`),
KEY `class_id` (`class_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]rel_course_category`
CREATE TABLE `[[dbprefix]]rel_course_category` (
`courseId` int(11) NOT NULL,
`categoryId` int(11) NOT NULL,
`rootCourse` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`courseId`,`categoryId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]rel_course_class`
CREATE TABLE `[[dbprefix]]rel_course_class` (
`courseId` varchar(40) NOT NULL,
`classId` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`courseId`,`classId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------