2 # Table structure for table `prefix_attendance`
5 CREATE TABLE prefix_attendance (
6 id int(10) unsigned NOT NULL auto_increment,
7 name varchar(255) NOT NULL default '',
8 course int(10) NOT NULL default '0',
9 day int(10) unsigned NOT NULL default '0',
10 hours tinyint(1) NOT NULL default '0',
11 roll tinyint(1) NOT NULL default '0',
12 notes varchar(64) NOT NULL default '',
13 timemodified int(10) unsigned NOT NULL default '0',
14 dynsection tinyint(1) NOT NULL default '0',
15 edited tinyint(1) NOT NULL default '0',
16 autoattend tinyint(1) NOT NULL default '0',
18 KEY `course` (`course`)
22 # Table structure for table `prefix_attendance_roll`
25 CREATE TABLE prefix_attendance_roll (
26 id int(11) NOT NULL auto_increment,
27 dayid int(10) unsigned NOT NULL default '0',
28 userid int(11) NOT NULL default '0',
29 hour tinyint(1) unsigned NOT NULL default '0',
30 status int(11) NOT NULL default '0',
31 notes varchar(64) NOT NULL default '',
33 KEY `dayid` (`dayid`),
34 KEY `userid` (`userid`)
36 INSERT INTO prefix_log_display VALUES ('attendance', 'view', 'attendance', 'name');
37 INSERT INTO prefix_log_display VALUES ('attendance', 'view', 'attendance', 'name');
38 INSERT INTO prefix_log_display VALUES ('attendance', 'viewall', 'attendance', 'name');