From 0b4717b03ee4b6e98f2a956ce79c220c5ff71de0 Mon Sep 17 00:00:00 2001 From: TGyAkos Date: Mon, 9 Sep 2024 08:22:17 +0200 Subject: [PATCH] deleted unnecessary tables --- documentation/diagrams/erdClassroom.mmd | 26 ++++--------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/documentation/diagrams/erdClassroom.mmd b/documentation/diagrams/erdClassroom.mmd index 84abd3a..652fd39 100644 --- a/documentation/diagrams/erdClassroom.mmd +++ b/documentation/diagrams/erdClassroom.mmd @@ -32,12 +32,12 @@ erDiagram STUDENT ||--|{ CHAT : "part of" STUDENT ||--o{ "TEACHER-STUDENT MESSAGES" : "part of" - STUDENT ||--o{ ROLES : has STUDENT ||--o{ "PRIVATE-MESSAGE": "part of" - TEACHER ||--o{ "PRIVATE-MESSAGE": "part of" + STUDENT ||--o{ ROLES : has STUDENT ||--|| DRIVE : "uploads to" + TEACHER ||--o{ "PRIVATE-MESSAGE": "part of" TEACHER ||--|| DRIVE : "uploads to" %% TEACHER }o--o{ MATERIAL : makes ADMIN ||--o{ ROLES : creates @@ -82,16 +82,10 @@ erDiagram %% active = just like on discord, so the teachers can spy on the students if they're doing their work in class or just scrolling through TikTok } - TEACHER { - uuid userId PK, FK - uuid roleId FK - uuid createdClassroomId - - } - CLASSROOM { uuid classroomId PK uuid creatorId FK + uuid createdByUsedId datetime creationDateTime } @@ -111,19 +105,6 @@ erDiagram text messageText } - ADMIN { - uuid userId PK, FK - uuid createdRoleId - %% the admin creates a role and gets the id back in order to determine which admin created the role. i guess - } - - STUDENT { - uuid userId PK, FK - uuid roleId FK - - - } - "TEACHER-STUDENT MESSAGES" { uuid teacherStudentMessageId PK uuid senderId @@ -133,6 +114,7 @@ erDiagram ROLES { uuid roleId PK + uuid createdByUsedId datetime creationDateTime string roleName %% idk about these