Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -15,8 +15,8 @@ FOREIGN KEY (student_id) REFERENCES student(student_id) | ... | @@ -15,8 +15,8 @@ FOREIGN KEY (student_id) REFERENCES student(student_id) |
15 | CREATE TABLE student_attendance( | 15 | 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 | -attendance_time DATETIME NOT NULL, | ||
19 | status VARCHAR(10) NOT NULL, | 18 | status VARCHAR(10) NOT NULL, |
19 | +attendance_time 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 | ); | ... | ... |
-
Please register or login to post a comment