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 '',
|
2004-01-29 04:13:55 +00:00
|
|
|
`value` text NOT NULL default '',
|
2002-07-27 12:38:06 +00:00
|
|
|
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',
|
2003-08-07 16:01:31 +00:00
|
|
|
`sortorder` int(10) unsigned NOT NULL default '0',
|
2002-06-09 14:14:07 +00:00
|
|
|
`password` varchar(50) NOT NULL default '',
|
|
|
|
`fullname` varchar(254) NOT NULL default '',
|
|
|
|
`shortname` varchar(15) NOT NULL default '',
|
|
|
|
`summary` text NOT NULL,
|
2003-08-10 14:36:52 +00:00
|
|
|
`format` varchar(10) NOT NULL default 'topics',
|
2003-08-20 07:32:24 +00:00
|
|
|
`showgrades` smallint(2) unsigned NOT NULL default '1',
|
2003-12-30 17:18:06 +00:00
|
|
|
`modinfo` longtext 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',
|
2003-10-06 18:02:35 +00:00
|
|
|
`maxbytes` int(10) unsigned NOT NULL default '0',
|
2003-10-31 05:57:30 +00:00
|
|
|
`showreports` int(4) unsigned NOT NULL default '0',
|
2003-07-21 07:31:01 +00:00
|
|
|
`visible` int(10) unsigned NOT NULL default '1',
|
2003-12-30 17:18:06 +00:00
|
|
|
`groupmode` int(4) unsigned NOT NULL default '0',
|
|
|
|
`groupmodeforce` int(4) 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',
|
2003-08-21 08:14:56 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `category` (`category`)
|
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 '',
|
2003-07-30 13:02:45 +00:00
|
|
|
`description` text NOT NULL,
|
|
|
|
`parent` int(10) unsigned NOT NULL default '0',
|
|
|
|
`sortorder` int(10) unsigned NOT NULL default '0',
|
2003-08-19 09:26:36 +00:00
|
|
|
`coursecount` int(10) unsigned NOT NULL default '0',
|
2003-07-30 13:02:45 +00:00
|
|
|
`visible` tinyint(1) NOT NULL default '1',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
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='Course categories';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2003-04-28 13:29:26 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `course_display`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE `prefix_course_display` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`display` int(10) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
KEY `courseuserid` (course,userid)
|
|
|
|
) TYPE=MyISAM COMMENT='Stores info about how to display the course';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
# 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',
|
2003-09-14 16:31:33 +00:00
|
|
|
`indent` int(5) unsigned NOT NULL default '0',
|
2003-04-14 15:11:09 +00:00
|
|
|
`visible` tinyint(1) NOT NULL default '1',
|
2004-01-11 17:44:09 +00:00
|
|
|
`groupmode` tinyint(4) NOT NULL default '0',
|
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;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
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,
|
2003-07-21 14:28:04 +00:00
|
|
|
`sequence` text NOT NULL default '',
|
2003-05-04 07:59:46 +00:00
|
|
|
`visible` tinyint(1) NOT NULL default '1',
|
2003-12-30 17:18:06 +00:00
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
KEY `coursesection` (course,section)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2004-01-17 09:47:45 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `event`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE `prefix_event` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`description` text NOT NULL,
|
|
|
|
`courseid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`groupid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`modulename` varchar(20) NOT NULL default '',
|
|
|
|
`instance` int(10) unsigned NOT NULL default '0',
|
|
|
|
`eventtype` varchar(20) NOT NULL default '',
|
|
|
|
`timestart` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timeduration` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
KEY `courseid` (`courseid`),
|
|
|
|
KEY `userid` (`userid`)
|
|
|
|
) TYPE=MyISAM COMMENT='For everything with a time associated to it';
|
|
|
|
|
2003-12-30 17:18:06 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `group`
|
|
|
|
#
|
|
|
|
|
2003-12-30 18:07:09 +00:00
|
|
|
CREATE TABLE `prefix_groups` (
|
2003-12-30 17:18:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`courseid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`name` varchar(254) NOT NULL default '',
|
|
|
|
`description` text NOT NULL,
|
|
|
|
`lang` varchar(10) NOT NULL default 'en',
|
|
|
|
`picture` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timecreated` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
2004-01-17 09:47:45 +00:00
|
|
|
UNIQUE KEY `id` (`id`),
|
2003-12-30 17:18:06 +00:00
|
|
|
KEY `courseid` (`courseid`)
|
|
|
|
) TYPE=MyISAM COMMENT='Each record is a group in a course.';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `group_members`
|
|
|
|
#
|
|
|
|
|
2003-12-30 18:07:09 +00:00
|
|
|
CREATE TABLE `prefix_groups_members` (
|
2003-12-30 17:18:06 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`groupid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timeadded` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
2004-01-17 09:47:45 +00:00
|
|
|
UNIQUE KEY `id` (`id`),
|
2003-12-30 17:18:06 +00:00
|
|
|
KEY `groupid` (`groupid`)
|
|
|
|
) TYPE=MyISAM COMMENT='Lists memberships of users to groups';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
# 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 '',
|
2004-01-31 14:47:57 +00:00
|
|
|
`cmid` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
`action` varchar(15) NOT NULL default '',
|
|
|
|
`url` varchar(100) NOT NULL default '',
|
|
|
|
`info` varchar(255) NOT NULL default '',
|
2003-03-26 02:17:46 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2003-07-28 02:51:56 +00:00
|
|
|
KEY `timecoursemoduleaction` (time,course,module,action),
|
2003-04-27 02:58:26 +00:00
|
|
|
KEY `coursemoduleaction` (course,module,action),
|
|
|
|
KEY `courseuserid` (course,userid)
|
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 '',
|
2003-05-09 13:32:27 +00:00
|
|
|
`visible` tinyint(1) NOT NULL default '1',
|
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;
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2003-08-15 14:12:52 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `scale`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE `prefix_scale` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`courseid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`scale` text NOT NULL,
|
|
|
|
`description` text NOT NULL,
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='Defines grading scales';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
# 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',
|
2003-05-23 05:32:40 +00:00
|
|
|
`autosubscribe` 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';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2004-01-28 14:14:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `user_preferences`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE `prefix_user_preferences` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
`name` varchar(50) NOT NULL default '',
|
|
|
|
`value` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
KEY `useridname` (userid,name)
|
|
|
|
) TYPE=MyISAM COMMENT='Allows modules to store arbitrary user preferences';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-05-31 09:18:12 +00:00
|
|
|
#
|
|
|
|
# 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',
|
2003-10-27 12:38:00 +00:00
|
|
|
`timeaccess` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2003-07-28 02:51:56 +00:00
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
KEY `courseuserid` (course,userid)
|
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 '',
|
2003-08-16 05:19:24 +00:00
|
|
|
`editall` int(1) unsigned NOT NULL default '1',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
2003-10-27 12:38:00 +00:00
|
|
|
`timeaccess` int(10) unsigned NOT NULL default '0',
|
2002-06-25 11:49:06 +00:00
|
|
|
PRIMARY KEY (`id`),
|
2003-07-28 02:51:56 +00:00
|
|
|
UNIQUE KEY `id` (`id`),
|
|
|
|
KEY `courseuserid` (course,userid)
|
2002-05-31 09:18:12 +00:00
|
|
|
) TYPE=MyISAM COMMENT='One record per teacher per course';
|
|
|
|
|
2003-02-24 18:48:55 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `user_admins`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE `prefix_user_coursecreators` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
UNIQUE KEY `id` (`id`)
|
|
|
|
) TYPE=MyISAM COMMENT='One record per course creator';
|
|
|
|
|
2003-01-01 08:15:55 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('user', 'view', 'user', 'CONCAT(firstname," ",lastname)');
|
2003-08-27 09:33:12 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('course', 'user report', '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');
|