2002-08-04 16:19:37 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `assignment`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_assignment` (
|
2002-08-04 16:19:37 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`course` int(10) unsigned NOT NULL default '0',
|
|
|
|
`name` varchar(255) NOT NULL default '',
|
|
|
|
`description` text NOT NULL,
|
2002-10-16 05:31:56 +00:00
|
|
|
`format` tinyint(2) unsigned NOT NULL default '0',
|
2002-11-15 03:32:30 +00:00
|
|
|
`resubmit` tinyint(2) unsigned NOT NULL default '0',
|
2002-08-04 16:19:37 +00:00
|
|
|
`type` int(10) unsigned NOT NULL default '1',
|
|
|
|
`maxbytes` int(10) unsigned NOT NULL default '100000',
|
|
|
|
`timedue` int(10) unsigned NOT NULL default '0',
|
|
|
|
`grade` int(10) NOT NULL default '0',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) COMMENT='Defines assignments';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `assignment_submissions`
|
|
|
|
#
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
CREATE TABLE `prefix_assignment_submissions` (
|
2002-08-07 08:46:48 +00:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
2002-08-04 16:19:37 +00:00
|
|
|
`assignment` int(10) unsigned NOT NULL default '0',
|
2002-12-23 09:39:26 +00:00
|
|
|
`userid` int(10) unsigned NOT NULL default '0',
|
2002-08-04 16:19:37 +00:00
|
|
|
`timecreated` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timemodified` int(10) unsigned NOT NULL default '0',
|
|
|
|
`numfiles` int(10) unsigned NOT NULL default '0',
|
|
|
|
`grade` int(11) NOT NULL default '0',
|
|
|
|
`comment` text NOT NULL,
|
|
|
|
`teacher` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timemarked` int(10) unsigned NOT NULL default '0',
|
|
|
|
`mailed` tinyint(1) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) COMMENT='Info about submitted assignments';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
|
2002-12-20 14:44:14 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('assignment', 'view', 'assignment', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('assignment', 'add', 'assignment', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('assignment', 'update', 'assignment', 'name');
|
2004-02-17 12:25:01 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('assignment', 'view submission', 'assignment', 'name');
|
2002-12-20 14:44:14 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('assignment', 'upload', 'assignment', 'name');
|
2002-08-04 16:19:37 +00:00
|
|
|
|