feat: Implement full-stack course announcements management with cohort segmentation.

This commit is contained in:
2026-02-17 23:11:25 -03:00
parent fa52397330
commit 89b1d1353d
9 changed files with 485 additions and 29 deletions
@@ -0,0 +1,9 @@
-- Add table for announcement-cohort relationship
CREATE TABLE IF NOT EXISTS announcement_cohorts (
announcement_id UUID NOT NULL REFERENCES course_announcements(id) ON DELETE CASCADE,
cohort_id UUID NOT NULL REFERENCES cohorts(id) ON DELETE CASCADE,
PRIMARY KEY (announcement_id, cohort_id)
);
-- Index for performance
CREATE INDEX idx_announcement_cohorts_cohort ON announcement_cohorts(cohort_id);