Update 'Documents/proto/messaging_extension/ERD.md'

Makefile for image
This commit is contained in:
Debucquoy Anthony 2023-12-13 22:31:50 +01:00 committed by Anthony Debucquoy
parent 9c1103ab59
commit d4e3ded3da
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@
## Messaging extension ## Messaging extension
```mermaid ```mermaid
%%{init: { "er": {"fontSize": 25, "stroke": "black" }}}%%
erDiagram erDiagram
%% General %% General
@ -29,6 +30,7 @@ Messages o|--o{ Messages: "answers"
Forums{ Forums{
Integer id PK Integer id PK
String name String name
Integer course FK "Course"
} }
Topics{ Topics{
@ -46,7 +48,7 @@ Answers{
Polls{ Polls{
Integer id PK Integer id PK
enum PollType "ALLOW_NEW_OPTIONS ALLOW_MULTIPLE CHOICE" enum PollType
} }
Options{ Options{
Integer id PK Integer id PK
@ -55,7 +57,6 @@ Options{
Forums ||--o{ Users: "Registered" Forums ||--o{ Users: "Registered"
Forums ||--|| Teacher: "Owner" Forums ||--|| Teacher: "Owner"
Forums ||--|| Course: ""
Forums ||--o{ Topics: "" Forums ||--o{ Topics: ""
Forums ||--o{ Polls: "" Forums ||--o{ Polls: ""
@ -71,14 +72,14 @@ Votes }o--|| Users: "Voter"
%% Appointments %% Appointments
Teachers Teacher
Appointments{ Appointments{
Integer id PK Integer id PK
Integer teacher FK "Teacher"
TIME sent_time TIME sent_time
enum Status enum Status
} }
Appointments ||--|| Teachers: ""
Appointments ||--|| Users: "" Appointments ||--|| Users: ""
``` ```

View File

@ -13,6 +13,7 @@ use_case_messagerie.tex: use_case_messagerie.uml
image: use_case_messagerie.uml interaction_diagram.uml image: use_case_messagerie.uml interaction_diagram.uml
plantuml $^ plantuml $^
mmdc -i ERD.md -o ERD.png
extension_messagerie.bbl: extension_messagerie.bcf extension_messagerie.bbl: extension_messagerie.bcf
biber extension_messagerie biber extension_messagerie