feat: Implement multi-tenancy with default organization, global courses, user profiles, and new UI components like OrganizationSelector and Combobox.

This commit is contained in:
2026-01-16 12:15:15 -03:00
parent 663950aa0e
commit 2dffbd8b71
20 changed files with 942 additions and 153 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use serde_json;
use uuid::Uuid;
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow, Clone)]
pub struct Course {
pub id: Uuid,
pub organization_id: Uuid,
@@ -19,7 +19,7 @@ pub struct Course {
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow, Clone)]
pub struct Module {
pub id: Uuid,
pub organization_id: Uuid,
@@ -29,7 +29,7 @@ pub struct Module {
pub created_at: DateTime<Utc>,
}
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
#[derive(Debug, Serialize, Deserialize, sqlx::FromRow, Clone)]
pub struct Lesson {
pub id: Uuid,
pub organization_id: Uuid,