2003-09-16 03:07:21 +00:00
|
|
|
# This file contains a complete database schema for all the
|
|
|
|
# tables used by this module, written in SQL
|
|
|
|
|
|
|
|
# It may also contain INSERT statements for particular data
|
|
|
|
# that may be used, especially new entries in the table log_display
|
|
|
|
|
2003-09-16 18:51:40 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `glossary`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
course int(10) unsigned NOT NULL default '0',
|
|
|
|
name varchar(255) NOT NULL default '',
|
2003-10-15 16:12:38 +00:00
|
|
|
intro text NOT NULL,
|
2003-09-16 18:51:40 +00:00
|
|
|
studentcanpost tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
allowduplicatedentries tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
displayformat tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
mainglossary tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
showspecial tinyint(2) unsigned NOT NULL default '1',
|
|
|
|
showalphabet tinyint(2) unsigned NOT NULL default '1',
|
|
|
|
showall tinyint(2) unsigned NOT NULL default '1',
|
2003-10-16 05:15:59 +00:00
|
|
|
allowcomments tinyint(2) unsigned NOT NULL default '0',
|
2003-10-16 22:05:00 +00:00
|
|
|
usedynalink tinyint(2) unsigned NOT NULL default '1',
|
2003-10-21 04:55:22 +00:00
|
|
|
defaultapproval tinyint(2) unsigned NOT NULL default '1',
|
2003-10-29 23:33:54 +00:00
|
|
|
globalglossary tinyint(2) unsigned NOT NULL default '0',
|
2003-11-15 15:55:47 +00:00
|
|
|
entbypage tinyint(3) unsigned NOT NULL default '10',
|
2003-11-21 18:42:38 +00:00
|
|
|
assessed int(10) unsigned NOT NULL default '0',
|
|
|
|
assesstimestart int(10) unsigned NOT NULL default '0',
|
|
|
|
assesstimefinish int(10) unsigned NOT NULL default '0',
|
|
|
|
scale int(10) NOT NULL default '0',
|
2003-09-16 18:51:40 +00:00
|
|
|
timecreated int(10) unsigned NOT NULL default '0',
|
|
|
|
timemodified int(10) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='all glossaries';
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `glossary_entries`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary_entries (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
glossaryid int(10) unsigned NOT NULL default '0',
|
|
|
|
userid int(10) unsigned NOT NULL default '0',
|
|
|
|
concept varchar(255) NOT NULL default '',
|
|
|
|
definition text NOT NULL,
|
|
|
|
format tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
attachment VARCHAR(100) NOT NULL default '',
|
|
|
|
timecreated int(10) unsigned NOT NULL default '0',
|
|
|
|
timemodified int(10) unsigned NOT NULL default '0',
|
|
|
|
teacherentry tinyint(2) unsigned NOT NULL default '0',
|
2003-09-29 10:06:03 +00:00
|
|
|
sourceglossaryid int(10) unsigned NOT NULL default '0',
|
2003-10-16 22:05:00 +00:00
|
|
|
usedynalink tinyint(2) unsigned NOT NULL default '1',
|
|
|
|
casesensitive tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
fullmatch tinyint(2) unsigned NOT NULL default '1',
|
2003-10-21 04:55:22 +00:00
|
|
|
approved tinyint(2) unsigned NOT NULL default '1',
|
2003-09-16 18:51:40 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='all glossary entries';
|
|
|
|
|
2003-11-05 00:06:31 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `glossary_alias`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary_alias (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
entryid int(10) unsigned NOT NULL default '0',
|
|
|
|
alias text NOT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='entries alias';
|
|
|
|
|
2003-09-18 23:53:05 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `glossary_cageories`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary_categories (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
glossaryid int(10) unsigned NOT NULL default '0',
|
|
|
|
name varchar(255) NOT NULL default '',
|
2003-11-15 15:55:47 +00:00
|
|
|
usedynalink tinyint(2) unsigned NOT NULL default '1',
|
2003-09-18 23:53:05 +00:00
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='all categories for glossary entries';
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `glossary_entries_category`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary_entries_categories (
|
2003-09-21 23:34:21 +00:00
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
2003-09-21 17:08:41 +00:00
|
|
|
categoryid int(10) unsigned NOT NULL default '0',
|
2003-09-18 23:53:05 +00:00
|
|
|
entryid int(10) unsigned NOT NULL default '0',
|
2003-09-21 23:40:00 +00:00
|
|
|
PRIMARY KEY (id)
|
2003-09-18 23:53:05 +00:00
|
|
|
) TYPE=MyISAM COMMENT='categories of each glossary entry';
|
|
|
|
|
2003-10-16 05:15:59 +00:00
|
|
|
CREATE TABLE prefix_glossary_comments (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
entryid int(10) unsigned NOT NULL default '0',
|
|
|
|
userid int(10) unsigned NOT NULL default '0',
|
|
|
|
comment text NOT NULL,
|
|
|
|
format tinyint(2) unsigned NOT NULL default '0',
|
|
|
|
timemodified int(10) unsigned NOT NULL default '0',
|
|
|
|
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='comments on glossary entries';
|
|
|
|
|
2003-11-19 17:47:40 +00:00
|
|
|
CREATE TABLE prefix_glossary_displayformats (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
fid int(10) unsigned NOT NULL default '0',
|
|
|
|
visible tinyint(2) unsigned NOT NULL default '1',
|
|
|
|
|
|
|
|
relatedview tinyint(3) NOT NULL default '-1',
|
|
|
|
showgroup tinyint(2) unsigned NOT NULL default '1',
|
|
|
|
|
|
|
|
defaultmode varchar(50) NOT NULL default '',
|
|
|
|
defaulthook varchar(50) NOT NULL default '',
|
|
|
|
|
|
|
|
sortkey varchar(50) NOT NULL default '',
|
|
|
|
sortorder varchar(50) NOT NULL default '',
|
|
|
|
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) TYPE=MyISAM COMMENT='Setting of the display formats';
|
|
|
|
|
2003-11-21 18:42:38 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `forum_ratings`
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE prefix_glossary_ratings (
|
|
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
|
|
userid int(10) unsigned NOT NULL default '0',
|
|
|
|
entryid int(10) unsigned NOT NULL default '0',
|
|
|
|
time int(10) unsigned NOT NULL default '0',
|
|
|
|
rating tinyint(4) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
) COMMENT='Contains user ratings for entries';
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
2003-09-16 18:51:40 +00:00
|
|
|
#
|
|
|
|
# Dumping data for table `log_display`
|
|
|
|
#
|
|
|
|
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'add', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'update', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'view', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'view all', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'add entry', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'update entry', 'glossary', 'name');
|
2003-09-18 23:53:05 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'add category', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'update category', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'delete category', 'glossary', 'name');
|
2003-10-16 05:15:59 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'add comment', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'update comment', 'glossary', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'delete comment', 'glossary', 'name');
|
2003-10-21 04:55:22 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('glossary', 'approve entry', 'glossary', 'name');
|
2003-09-16 18:51:40 +00:00
|
|
|
|