moodle/mod/attendance/db/mysql.sql
jungwirr eab709a095 Added automatic attendance logging based on date and any activity by
student on that day.  NOTE - cron must be running for this to work
properly

Modified multi-page views to use arrows instead of words, added a first
page and last page link as well.  Cleaned up that nav menu a bit as well.
2003-09-25 18:54:18 +00:00

33 lines
988 B
SQL
Executable File

#
# Table structure for table `prefix_attendance`
#
CREATE TABLE prefix_attendance (
id int(10) unsigned NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
course int(10) NOT NULL default '0',
day int(10) unsigned NOT NULL default '0',
hours tinyint(1) NOT NULL default '0',
roll tinyint(1) NOT NULL default '0',
notes varchar(64) NOT NULL default '',
timemodified int(10) unsigned NOT NULL default '0',
dynsection tinyint(1) NOT NULL default '0',
edited tinyint(1) NOT NULL default '0',
autoattend tinyint(1) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Table structure for table `prefix_attendance_roll`
#
CREATE TABLE prefix_attendance_roll (
id int(11) NOT NULL auto_increment,
dayid int(10) unsigned NOT NULL default '0',
userid int(11) NOT NULL default '0',
hour tinyint(1) unsigned NOT NULL default '0',
status int(11) NOT NULL default '0',
notes varchar(64) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;