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
+4
View File
@@ -418,6 +418,8 @@ pub struct CourseAnnouncement {
pub is_pinned: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
#[sqlx(skip)]
pub cohort_ids: Option<Vec<Uuid>>,
}
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow, Clone)]
@@ -435,6 +437,8 @@ pub struct AnnouncementWithAuthor {
// Author info
pub author_name: String,
pub author_avatar: Option<String>,
#[sqlx(skip)]
pub cohort_ids: Option<Vec<Uuid>>,
}
// Student Notes