Showing
1 changed file
with
13 additions
and
0 deletions
DB/SQL/create_table_student_request.sql
0 → 100644
1 | +CREATE TABLE `student_request` ( | ||
2 | + `id` int(11) NOT NULL AUTO_INCREMENT, | ||
3 | + `lecture_id` varchar(20) NOT NULL, | ||
4 | + `student_id` varchar(10) NOT NULL, | ||
5 | + `student_name` varchar(45) DEFAULT NULL, | ||
6 | + `timestamp` datetime DEFAULT CURRENT_TIMESTAMP, | ||
7 | + `status` varchar(10) NOT NULL, | ||
8 | + PRIMARY KEY (`id`), | ||
9 | + KEY `lecture_id` (`lecture_id`), | ||
10 | + KEY `student_id` (`student_id`), | ||
11 | + CONSTRAINT `student_request_ibfk_3` FOREIGN KEY (`lecture_id`) REFERENCES `lecture` (`lecture_id`), | ||
12 | + CONSTRAINT `student_request_ibfk_4` FOREIGN KEY (`student_id`) REFERENCES `student` (`student_id`) | ||
13 | +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; |
-
Please register or login to post a comment