it gets worse before it gets better
Some checks are pending
Build docker images, publish them, deploy to test server / build (push) Waiting to run
Mirror dev branch to remote / build (push) Waiting to run

This commit is contained in:
hirst 2024-09-06 20:07:32 +02:00
parent 04095b9073
commit 7bea355ce1

View file

@ -3,36 +3,86 @@ title: Classroom
--- ---
erDiagram erDiagram
PERSON ||--|| STUDENT : becomes USER ||--o{ USER_CLASSROOM : "part of"
PERSON ||--|| TEACHER : becomes USER_CLASSROOM }o--|| CLASSROOM : allows
PERSON ||--|| ADMIN : becomes USER ||--|| STUDENT : is
USER ||--|| ADMIN : is
USER ||--|| TEACHER : is
TEACHER |o--o{ CLASSROOM : makes %% TEACHER }o--o{ CLASSROOM : creates
TEACHER }o--o{ ASSIGMENT : makes TEACHER ||--o{ QUIZ : creates
TEACHER ||--o{ "TEACHER-STUDENT CHAT" : "part of" %% TEACHER }o--o{ ASSIGMENT : makes
TEACHER }o--o{ MATERIALS : makes ROLES }|--|| TEACHER : has
TEACHER ||--|{ ROLES : has
TEACHER ||--o{ QUIZ : makes
QUIZ ||--|{ QUESTION : contains QUIZ ||--|{ QUESTION : contains
ASSIGMENT }o--o{ STUDENT : gets %% STUDENT }o--o{ ASSIGMENT : gets
MATERIALS }o--|| ASSIGMENT : contains "TEACHER-STUDENT CHAT" ||--|| CLASSROOM : contains
MATERIALS }|--|| DRIVE : accesses
CLASSROOM }o--o{ STUDENT : has MATERIAL }o--|| ASSIGMENT : contains
CLASSROOM ||--|| "TEACHER-STUDENT CHAT" : contains DRIVE ||--|{ MATERIAL : accesses
%% STUDENT }o--o{ CLASSROOM : "part of"
"TEACHER-STUDENT CHAT" }o--|| TEACHER : "part of"
CLASSROOM ||--o{ ASSIGMENT : contains CLASSROOM ||--o{ ASSIGMENT : contains
ASSIGMENT ||--o| CHAT : has ASSIGMENT ||--o| CHAT : has
CHAT ||--|{ STUDENT : "part of" STUDENT ||--|{ CHAT : "part of"
STUDENT ||--o{ "TEACHER-STUDENT CHAT" : "part of" STUDENT ||--o{ "TEACHER-STUDENT CHAT" : "part of"
STUDENT ||--o{ ROLES : has STUDENT ||--o{ ROLES : has
ADMIN ||--o{ ROLES : creates
STUDENT ||--|| DRIVE : "uploads to" STUDENT ||--|| DRIVE : "uploads to"
TEACHER ||--|| DRIVE : "uploads to" TEACHER ||--|| DRIVE : "uploads to"
%% TEACHER }o--o{ MATERIAL : makes
ADMIN ||--o{ ROLES : creates
ADMIN ||--|| DRIVE : "uploads to" 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
}