Graduate

Change tables

...@@ -16,7 +16,7 @@ CREATE TABLE student_attendance( ...@@ -16,7 +16,7 @@ CREATE TABLE student_attendance(
16 lecture_id VARCHAR(20) NOT NULL, 16 lecture_id VARCHAR(20) NOT NULL,
17 student_id VARCHAR(10) NOT NULL, 17 student_id VARCHAR(10) NOT NULL,
18 status VARCHAR(10) NOT NULL, 18 status VARCHAR(10) NOT NULL,
19 -attendance_time DATETIME DEFAULT CURRENT_TIMESTAMP, 19 +timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
20 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id), 20 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id),
21 FOREIGN KEY (student_id) REFERENCES student(student_id) 21 FOREIGN KEY (student_id) REFERENCES student(student_id)
22 ); 22 );
...@@ -27,6 +27,7 @@ date DATE NOT NULL, ...@@ -27,6 +27,7 @@ date DATE NOT NULL,
27 image BLOB NOT NULL, 27 image BLOB NOT NULL,
28 width SMALLINT NOT NULL, 28 width SMALLINT NOT NULL,
29 height SMALLINT NOT NULL, 29 height SMALLINT NOT NULL,
30 +timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
30 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id) 31 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id)
31 ); 32 );
32 33
......