mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 04:07:39 +00:00
Database updates
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
CREATE TABLE `goal` (
|
||||
`id_goal` int NOT NULL,
|
||||
`id_goal_parent` int DEFAULT NULL,
|
||||
`id_student` int DEFAULT NULL,
|
||||
`id_user_created` int DEFAULT NULL,
|
||||
`id_goal` char(36) NOT NULL,
|
||||
`id_goal_parent` char(36) DEFAULT NULL,
|
||||
`id_student` char(36) DEFAULT NULL,
|
||||
`id_user_created` char(36) DEFAULT NULL,
|
||||
`title` varchar(255) DEFAULT NULL,
|
||||
`description` text,
|
||||
`category` varchar(100) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id_goal`),
|
||||
KEY `id_goal_parent` (`id_goal_parent`),
|
||||
KEY `id_student` (`id_student`),
|
||||
KEY `id_user_created` (`id_user_created`),
|
||||
KEY `goal_ibfk_1` (`id_goal_parent`),
|
||||
KEY `goal_ibfk_2` (`id_student`),
|
||||
KEY `goal_ibfk_3` (`id_user_created`),
|
||||
CONSTRAINT `goal_ibfk_1` FOREIGN KEY (`id_goal_parent`) REFERENCES `goal` (`id_goal`),
|
||||
CONSTRAINT `goal_ibfk_2` FOREIGN KEY (`id_student`) REFERENCES `student` (`id_student`),
|
||||
CONSTRAINT `goal_ibfk_3` FOREIGN KEY (`id_user_created`) REFERENCES `user` (`id_user`)
|
||||
|
||||
Reference in New Issue
Block a user