feat: Implement student notes functionality for lessons, including API endpoints, database schema, and frontend UI.

This commit is contained in:
Nurfog committed 2026-02-16 02:13:50 -03:00
1 parent 82b346294c
commit 3ae1ae6fd6
11 files changed
+302 -18

No files matched your search

+16
View File
@@ -435,6 +435,22 @@ pub struct AnnouncementWithAuthor {
pub author_avatar: Option<String>,
}
// Student Notes
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow, Clone)]
pub struct StudentNote {
pub id: Uuid,
pub user_id: Uuid,
pub lesson_id: Uuid,
pub content: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Deserialize)]
pub struct SaveNotePayload {
pub content: String,
}
#[cfg(test)]
mod tests {
use super::*;