moodle/mod/hotpot/db/mysql.sql
moodler df0fcc6f78 The initial installation is now properly handled.
Hot Potatoes is disabled by default in new installations.
2005-04-25 16:29:50 +00:00

92 lines
3.0 KiB
SQL

#
# Table structure for table `hotpot`
#
CREATE TABLE prefix_hotpot (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL,
name varchar(255) NOT NULL default '',
reference varchar(255) NOT NULL default '',
summary text NOT NULL,
timeopen int(10) unsigned NOT NULL default '0',
timeclose int(10) unsigned NOT NULL default '0',
attempts smallint(6) NOT NULL default '0',
grademethod tinyint(4) NOT NULL default '1',
review tinyint(4) NOT NULL default '0',
grade int(10) NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
location int(4) unsigned NOT NULL default '0',
navigation int(4) unsigned NOT NULL default '1',
outputformat int(4) unsigned NOT NULL default '1',
shownextquiz int(4) unsigned NOT NULL default '0',
forceplugins int(4) unsigned NOT NULL default '0',
password varchar(255) NOT NULL default '',
subnet varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='details about Hot Potatoes quizzes';
#
# Table structure for table `hotpot_attempts`
#
CREATE TABLE prefix_hotpot_attempts (
id int(10) unsigned NOT NULL auto_increment,
hotpot int(10) unsigned NOT NULL,
userid int(10) unsigned NOT NULL,
starttime int(10) unsigned default NULL,
endtime int(10) unsigned default NULL,
score int(6) unsigned default NULL,
penalties int(6) unsigned default NULL,
attempt int(6) unsigned NOT NULL default '0',
details text,
timestart int(10) unsigned default NULL,
timefinish int(10) unsigned default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='details about Hot Potatoes quiz attempts';
#
# Table structure for table `hotpot_questions`
#
CREATE TABLE prefix_hotpot_questions (
id int(10) unsigned NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
type int(10) unsigned NOT NULL default '0',
text text,
hotpot int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='details about questions in Hot Potatatoes quiz attempts';
#
# Table structure for table `hotpot_responses`
#
CREATE TABLE prefix_hotpot_responses (
id int(10) unsigned NOT NULL auto_increment,
attempt int(10) unsigned NOT NULL,
question int(10) unsigned NOT NULL,
score smallint(8) default NULL,
weighting smallint(8) default NULL,
correct varchar(255) default NULL,
wrong varchar(255) default NULL,
ignored varchar(255) default NULL,
hints smallint(6) default NULL,
clues smallint(6) default NULL,
checks smallint(6) default NULL,
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='details about responses in Hot Potatatoes quiz attempts';
#
# Table structure for table `hotpot_strings`
#
CREATE TABLE prefix_hotpot_strings (
id int(10) unsigned NOT NULL auto_increment,
string text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='strings used in Hot Potatatoes questions and responses';