Graduate

Change student_attendance table

...@@ -15,7 +15,8 @@ FOREIGN KEY (student_id) REFERENCES student(student_id) ...@@ -15,7 +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_date DATE NOT NULL, 18 +attendance_time DATETIME NOT NULL,
19 +status VARCHAR(10) NOT NULL,
19 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id), 20 FOREIGN KEY (lecture_id) REFERENCES lecture(lecture_id),
20 FOREIGN KEY (student_id) REFERENCES student(student_id) 21 FOREIGN KEY (student_id) REFERENCES student(student_id)
21 ); 22 );
......