This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
learningpulse/documentation/diagrams/erdClassroom.mmd

88 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-09-05 22:35:59 +02:00
---
title: Classroom
---
erDiagram
2024-09-06 20:07:32 +02:00
USER ||--o{ USER_CLASSROOM : "part of"
USER_CLASSROOM }o--|| CLASSROOM : allows
USER ||--|| STUDENT : is
USER ||--|| ADMIN : is
USER ||--|| TEACHER : is
2024-09-05 22:35:59 +02:00
2024-09-06 20:07:32 +02:00
%% TEACHER }o--o{ CLASSROOM : creates
TEACHER ||--o{ QUIZ : creates
%% TEACHER }o--o{ ASSIGMENT : makes
ROLES }|--|| TEACHER : has
2024-09-06 18:44:59 +02:00
QUIZ ||--|{ QUESTION : contains
2024-09-05 22:35:59 +02:00
2024-09-06 20:07:32 +02:00
%% STUDENT }o--o{ ASSIGMENT : gets
2024-09-05 22:35:59 +02:00
2024-09-06 20:07:32 +02:00
"TEACHER-STUDENT CHAT" ||--|| CLASSROOM : contains
2024-09-06 12:30:20 +02:00
2024-09-06 20:07:32 +02:00
MATERIAL }o--|| ASSIGMENT : contains
DRIVE ||--|{ MATERIAL : accesses
%% STUDENT }o--o{ CLASSROOM : "part of"
"TEACHER-STUDENT CHAT" }o--|| TEACHER : "part of"
2024-09-06 12:30:20 +02:00
CLASSROOM ||--o{ ASSIGMENT : contains
2024-09-05 22:35:59 +02:00
ASSIGMENT ||--o| CHAT : has
2024-09-06 20:07:32 +02:00
STUDENT ||--|{ CHAT : "part of"
2024-09-05 22:35:59 +02:00
2024-09-06 20:07:32 +02:00
STUDENT ||--o{ "TEACHER-STUDENT CHAT" : "part of"
2024-09-06 12:30:20 +02:00
STUDENT ||--o{ ROLES : has
STUDENT ||--|| DRIVE : "uploads to"
TEACHER ||--|| DRIVE : "uploads to"
2024-09-06 20:07:32 +02:00
%% TEACHER }o--o{ MATERIAL : makes
ADMIN ||--o{ ROLES : creates
ADMIN ||--|| DRIVE : "uploads to"
USER ||--o{ TEACHER_MATERIAL : "part of"
TEACHER_MATERIAL }o--|| MATERIAL : allows
USER ||--o{ USER_ASSIGNMENT : "part of"
USER_ASSIGNMENT }o--|| ASSIGMENT : allows
%% Connection tables
USER_CLASSROOM {
uuid userId PK, FK
uuid classroomId PK, FK
}
USER_ASSIGNMENT {
uuid userId PK, FK
uuid assigmentId PK, FK
}
TEACHER_MATERIAL {
uuid userId PK, FK
uuid materialId PK, FK
}
%% Definitions of attributes
USER {
uuid userId PK
%% TODO figure out what keycloak gives as an identifier
uuid keyCloakId FK
enum userType
string name
string nickname
string email
}
TEACHER {
%% uuid userId FK
}
CLASSROOM {
uuid classroomId PK
uuid creatorId FK
}
ASSIGMENT {
uuid assigmentId PK, FK
}