2002-05-31 09:18:12 +00:00
|
|
|
# phpMyAdmin MySQL-Dump
|
|
|
|
# version 2.3.0-dev
|
|
|
|
# http://phpwizard.net/phpMyAdmin/
|
|
|
|
# http://www.phpmyadmin.net/ (download page)
|
|
|
|
#
|
|
|
|
# Host: localhost
|
2002-06-25 11:49:06 +00:00
|
|
|
# Generation Time: Jun 25, 2002 at 05:04 PM
|
2002-05-31 09:18:12 +00:00
|
|
|
# Server version: 3.23.49
|
|
|
|
# PHP Version: 4.1.2
|
|
|
|
# Database : `moodle`
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2002-07-27 12:38:06 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `config`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_config` (
|
2002-07-27 12:38:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`value` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `name` (`name`)
|
|
|
|
) TYPE=MyISAM COMMENT='Moodle configuration variables';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `course`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_course` (
|
2002-06-09 14:14:07 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`category` int(10) unsigned NOT NULL default '0',
|
|
|
|
`password` varchar(50) NOT NULL default '',
|
|
|
|
`fullname` varchar(254) NOT NULL default '',
|
|
|
|
`shortname` varchar(15) NOT NULL default '',
|
|
|
|
`summary` text NOT NULL,
|
2002-06-25 11:49:06 +00:00
|
|
|
`format` enum('weeks','social','topics') NOT NULL default 'weeks',
|
2002-11-10 07:37:15 +00:00
|
|
|
`modinfo` text NOT NULL,
|
2002-06-25 11:49:06 +00:00
|
|
|
`newsitems` smallint(5) unsigned NOT NULL default '1',
|
2002-06-09 14:14:07 +00:00
|
|
|
`teacher` varchar(100) NOT NULL default 'Teacher',
|
2002-09-08 03:24:38 +00:00
|
|
|
`teachers` varchar(100) NOT NULL default 'Teachers',
|
2002-06-09 14:14:07 +00:00
|
|
|
`student` varchar(100) NOT NULL default 'Student',
|
2002-09-08 03:24:38 +00:00
|
|
|
`students` varchar(100) NOT NULL default 'Students',
|
2002-08-22 06:40:48 +00:00
|
|
|
`guest` tinyint(2) unsigned NOT NULL default '0',
|
2002-06-09 14:14:07 +00:00
|
|
|
`startdate` int(10) unsigned NOT NULL default '0',
|
2002-06-25 12:08:38 +00:00
|
|
|
`numsections` smallint(5) unsigned NOT NULL default '1',
|
2002-11-12 04:26:16 +00:00
|
|
|
`showrecent` smallint(5) unsigned NOT NULL default '1',
|
2002-06-19 05:37:59 +00:00
|
|
|
`marker` int(10) unsigned NOT NULL default '0',
|
2002-06-10 11:34:31 +00:00
|
|
|
`timecreated` int(10) unsigned NOT NULL default '0',
|
2002-06-09 14:14:07 +00:00
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `course_categories`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_course_categories` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='Course categories';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `course_modules`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_course_modules` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
|
|
|
`module` int(10) unsigned NOT NULL default '0',
|
|
|
|
`instance` int(10) unsigned NOT NULL default '0',
|
|
|
|
`section` int(10) unsigned NOT NULL default '0',
|
|
|
|
`added` int(10) unsigned NOT NULL default '0',
|
|
|
|
`deleted` tinyint(1) unsigned NOT NULL default '0',
|
|
|
|
`score` tinyint(4) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
2002-06-25 11:49:06 +00:00
|
|
|
# Table structure for table `course_sections`
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_course_sections` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
|
|
|
`section` int(10) unsigned NOT NULL default '0',
|
2002-09-01 14:24:16 +00:00
|
|
|
`summary` text NOT NULL,
|
2002-06-25 11:49:06 +00:00
|
|
|
`sequence` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `log`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_log` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`time` int(10) unsigned NOT NULL default '0',
|
2002-12-23 09:39:26 +00:00
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`ip` varchar(15) NOT NULL default '',
|
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
|
|
|
`module` varchar(10) NOT NULL default '',
|
|
|
|
`action` varchar(15) NOT NULL default '',
|
|
|
|
`url` varchar(100) NOT NULL default '',
|
|
|
|
`info` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='Every action is logged as far as possible.';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `log_display`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_log_display` (
|
2002-06-08 02:13:17 +00:00
|
|
|
`module` varchar(20) NOT NULL default '',
|
|
|
|
`action` varchar(20) NOT NULL default '',
|
2002-08-04 02:08:43 +00:00
|
|
|
`mtable` varchar(20) NOT NULL default '',
|
2002-06-08 02:13:17 +00:00
|
|
|
`field` varchar(40) NOT NULL default ''
|
2002-08-04 02:08:43 +00:00
|
|
|
) TYPE=MyISAM COMMENT='For a particular module/action, specifies a moodle table/field.';
|
2002-05-31 09:18:12 +00:00
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `modules`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_modules` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(20) NOT NULL default '',
|
|
|
|
`version` int(10) NOT NULL default '0',
|
|
|
|
`cron` int(10) unsigned NOT NULL default '0',
|
|
|
|
`lastcron` int(10) unsigned NOT NULL default '0',
|
|
|
|
`search` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `user`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_user` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`confirmed` tinyint(1) NOT NULL default '0',
|
2002-09-22 03:11:05 +00:00
|
|
|
`deleted` tinyint(1) NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`username` varchar(100) NOT NULL default '',
|
|
|
|
`password` varchar(32) NOT NULL default '',
|
|
|
|
`idnumber` varchar(12) default NULL,
|
|
|
|
`firstname` varchar(20) NOT NULL default '',
|
|
|
|
`lastname` varchar(20) NOT NULL default '',
|
|
|
|
`email` varchar(100) NOT NULL default '',
|
|
|
|
`icq` varchar(15) default NULL,
|
|
|
|
`phone1` varchar(20) default NULL,
|
|
|
|
`phone2` varchar(20) default NULL,
|
|
|
|
`institution` varchar(40) default NULL,
|
|
|
|
`department` varchar(30) default NULL,
|
|
|
|
`address` varchar(70) default NULL,
|
|
|
|
`city` varchar(20) default NULL,
|
|
|
|
`country` char(2) default NULL,
|
2002-09-21 05:43:21 +00:00
|
|
|
`lang` char(5) default 'en',
|
2002-06-25 11:49:06 +00:00
|
|
|
`timezone` float NOT NULL default '99',
|
|
|
|
`firstaccess` int(10) unsigned NOT NULL default '0',
|
|
|
|
`lastaccess` int(10) unsigned NOT NULL default '0',
|
|
|
|
`lastlogin` int(10) unsigned NOT NULL default '0',
|
|
|
|
`currentlogin` int(10) unsigned NOT NULL default '0',
|
|
|
|
`lastIP` varchar(15) default NULL,
|
2002-09-10 12:54:01 +00:00
|
|
|
`secret` varchar(15) default NULL,
|
2002-06-25 11:49:06 +00:00
|
|
|
`picture` tinyint(1) default NULL,
|
|
|
|
`url` varchar(255) default NULL,
|
|
|
|
`description` text,
|
|
|
|
`mailformat` tinyint(1) unsigned NOT NULL default '1',
|
2002-08-22 06:40:48 +00:00
|
|
|
`maildisplay` tinyint(2) unsigned NOT NULL default '2',
|
2002-10-10 07:26:10 +00:00
|
|
|
`htmleditor` tinyint(1) unsigned NOT NULL default '1',
|
2002-06-25 11:49:06 +00:00
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
UNIQUE KEY `username` (`username`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='One record for each person';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `user_admins`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_user_admins` (
|
2002-06-09 14:14:07 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
2002-12-23 09:39:26 +00:00
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
2002-06-09 14:14:07 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='One record per administrator user';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `user_students`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_user_students` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
2002-12-23 09:39:26 +00:00
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
2002-12-23 09:39:26 +00:00
|
|
|
`timestart` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timeend` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`time` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `user_teachers`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_user_teachers` (
|
2002-06-25 11:49:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
2002-12-23 09:39:26 +00:00
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
2002-09-08 03:24:38 +00:00
|
|
|
`authority` int(10) NOT NULL default '3',
|
|
|
|
`role` varchar(40) NOT NULL default '',
|
2002-06-25 11:49:06 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='One record per teacher per course';
|
|
|
|
|
2003-01-01 08:15:55 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('user', 'view', 'user', 'CONCAT(firstname," ",lastname)');
|
2003-01-01 08:08:44 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('course', 'view', 'course', 'fullname');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('course', 'update', 'course', 'fullname');
|
2003-01-01 08:15:55 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('course', 'enrol', 'course', 'fullname');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('course', 'update', 'course', 'fullname');
|