mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 02:57:36 +00:00
Database updates
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
CREATE TABLE `progress_report` (
|
||||
`id_progress_report` int NOT NULL,
|
||||
`id_student` int DEFAULT NULL,
|
||||
`id_goal` int DEFAULT NULL,
|
||||
`id_user_created` int DEFAULT NULL,
|
||||
`id_progress_report` char(36) NOT NULL,
|
||||
`id_student` char(36) DEFAULT NULL,
|
||||
`id_goal` char(36) DEFAULT NULL,
|
||||
`id_user_created` char(36) DEFAULT NULL,
|
||||
`period` varchar(10) DEFAULT NULL,
|
||||
`year` int DEFAULT NULL,
|
||||
`summary` text,
|
||||
`generated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_progress_report`),
|
||||
KEY `id_student` (`id_student`),
|
||||
KEY `id_goal` (`id_goal`),
|
||||
KEY `id_user_created` (`id_user_created`),
|
||||
KEY `progress_report_ibfk_1` (`id_student`),
|
||||
KEY `progress_report_ibfk_2` (`id_goal`),
|
||||
KEY `progress_report_ibfk_3` (`id_user_created`),
|
||||
CONSTRAINT `progress_report_ibfk_1` FOREIGN KEY (`id_student`) REFERENCES `student` (`id_student`),
|
||||
CONSTRAINT `progress_report_ibfk_2` FOREIGN KEY (`id_goal`) REFERENCES `goal` (`id_goal`),
|
||||
CONSTRAINT `progress_report_ibfk_3` FOREIGN KEY (`id_user_created`) REFERENCES `user` (`id_user`)
|
||||
|
||||
Reference in New Issue
Block a user