Compare commits

..

No commits in common. "5b7d08403d1222ba5aa859b2b99b599a8079d2c5" and "3e957027f52b0aa1e3f3c64a9bc02d675c546d9d" have entirely different histories.

View file

@ -32,12 +32,12 @@ erDiagram
STUDENT ||--|{ CHAT : "part of" STUDENT ||--|{ CHAT : "part of"
STUDENT ||--o{ "TEACHER-STUDENT MESSAGES" : "part of" STUDENT ||--o{ "TEACHER-STUDENT MESSAGES" : "part of"
STUDENT ||--o{ "PRIVATE-MESSAGE": "part of"
STUDENT ||--o{ ROLES : has STUDENT ||--o{ ROLES : has
STUDENT ||--|| DRIVE : "uploads to" STUDENT ||--o{ "PRIVATE-MESSAGE": "part of"
TEACHER ||--o{ "PRIVATE-MESSAGE": "part of" TEACHER ||--o{ "PRIVATE-MESSAGE": "part of"
STUDENT ||--|| DRIVE : "uploads to"
TEACHER ||--|| DRIVE : "uploads to" TEACHER ||--|| DRIVE : "uploads to"
%% TEACHER }o--o{ MATERIAL : makes %% TEACHER }o--o{ MATERIAL : makes
ADMIN ||--o{ ROLES : creates ADMIN ||--o{ ROLES : creates
@ -82,10 +82,16 @@ 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 %% 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 { CLASSROOM {
uuid classroomId PK uuid classroomId PK
uuid creatorId FK uuid creatorId FK
uuid createdByUsedId
datetime creationDateTime datetime creationDateTime
} }
@ -105,6 +111,19 @@ erDiagram
text messageText 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" { "TEACHER-STUDENT MESSAGES" {
uuid teacherStudentMessageId PK uuid teacherStudentMessageId PK
uuid senderId uuid senderId
@ -114,7 +133,6 @@ erDiagram
ROLES { ROLES {
uuid roleId PK uuid roleId PK
uuid createdByUsedId
datetime creationDateTime datetime creationDateTime
string roleName string roleName
%% idk about these %% idk about these