lots of work done

This commit is contained in:
2026-03-02 16:23:29 -08:00
parent be4873283d
commit ef09a76bb4
25 changed files with 644 additions and 157 deletions
+18
View File
@@ -0,0 +1,18 @@
CREATE OR REPLACE VIEW `v_goal_card` AS
SELECT
goal.`id_goal` AS `goalId`,
goal.`id_goal_parent` AS `goalParentId`,
goal.`id_student` AS `studentId`,
goal.`title` AS `title`,
goal.`description` AS `description`,
goal.`category` AS `category`,
COUNT(pe.`id_progress_event`) AS `progressEventCount`
FROM `goal`
LEFT JOIN `progress_event` pe ON pe.`id_goal` = goal.`id_goal`
GROUP BY
goal.`id_goal`,
goal.`id_goal_parent`,
goal.`id_student`,
goal.`title`,
goal.`description`,
goal.`category`;
+1 -1
View File
@@ -10,7 +10,7 @@ FROM `student` s
LEFT JOIN `goal` g
ON g.`id_student` = s.`id_student`
LEFT JOIN `progress_event` pe
ON pe.`id_student` = s.`id_student`
ON pe.`id_goal` = g.`id_goal`
GROUP BY
s.`id_student`,
s.`identifier`,