First ERB messaging

This commit is contained in:
Debucquoy 2023-12-13 16:15:21 +01:00 committed by Anthony Debucquoy
parent 351c0dbfb2
commit 9c1103ab59
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -0,0 +1,86 @@
# Entity relational diagram
## Messaging extension
```mermaid
erDiagram
%% General
Users
%% Messages
Discussions{
Integer id PK
String name
}
Messages{
Integer id PK
Integer response FK "Messages"
String content
}
Discussions ||--o{ Messages: ""
Discussions ||--o{ Users: ""
Messages o|--o{ Messages: "answers"
%% Forums
Forums{
Integer id PK
String name
}
Topics{
Integer id PK
String subject
String content
Boolean locked
}
Answers{
Integer id PK
String content
Boolean anonymous
TimeStamp creation_time
}
Polls{
Integer id PK
enum PollType "ALLOW_NEW_OPTIONS ALLOW_MULTIPLE CHOICE"
}
Options{
Integer id PK
String name
}
Forums ||--o{ Users: "Registered"
Forums ||--|| Teacher: "Owner"
Forums ||--|| Course: ""
Forums ||--o{ Topics: ""
Forums ||--o{ Polls: ""
Topics ||--|| Teacher: "Author"
Topics ||--|| Users: "Author"
Topics ||--o{ Answers: ""
Polls ||--o{ Options: ""
Options ||--o{ Votes : ""
Votes }o--|| Users: "Voter"
%% Appointments
Teachers
Appointments{
Integer id PK
TIME sent_time
enum Status
}
Appointments ||--|| Teachers: ""
Appointments ||--|| Users: ""
```
Debucquoy Anthony