Graduate

Change tables

......@@ -16,7 +16,7 @@ CREATE TABLE student_attendance(
lecture_id VARCHAR(20) NOT NULL,
student_id VARCHAR(10) NOT NULL,
status VARCHAR(10) NOT NULL,
attendance_time DATETIME DEFAULT CURRENT_TIMESTAMP,
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id),
FOREIGN KEY (student_id) REFERENCES student(student_id)
);
......@@ -27,6 +27,7 @@ date DATE NOT NULL,
image BLOB NOT NULL,
width SMALLINT NOT NULL,
height SMALLINT NOT NULL,
timestamp DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id)
);
......