From 84541b165b3dcfcec81257e79395c70ebfc3918e Mon Sep 17 00:00:00 2001 From: JaoodxD Date: Fri, 17 Nov 2023 16:42:05 +0200 Subject: [PATCH] Fix prettier --- Models.md | 9 ++++++++- README.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Models.md b/Models.md index 3ea7eaa..6f4eeaf 100644 --- a/Models.md +++ b/Models.md @@ -1,4 +1,5 @@ # Entity-relationship diagram + ```mermaid erDiagram USER }o--o{ USER : contact @@ -9,6 +10,7 @@ GROUP }o--o{ USER : joined ``` # Models + `USER`: Represents individual users. `CONFIG`: Represents configurations or settings. `MESSAGE`: Represents individual messages sent or received. @@ -17,16 +19,21 @@ GROUP }o--o{ USER : joined # Relations ## USER with USER + Represents a many-to-many relationship between users, indicating that users can be in contact with multiple other users and vice versa. This could represent a social network-like relationship where users can communicate with each other. ## USER with CONFIG + This notation signifies a one-to-one relationship, indicating that each user has one specific configuration, and that configuration is owned by that user exclusively. This relationship implies a direct mapping between a user and their unique configuration settings within the system. ## USER with MESSAGE + Represents a one-to-many relationship between USER and MESSAGE, indicating that a user can write multiple messages, but each message is written by only one user. ## MESSAGE with MESSAGE + Represents a many-to-many relationship between messages, indicating that a message can be an answer to multiple other messages, and vice versa. This could represent threaded or nested messages where one message is a reply to another. ## GROUP with USER -Represents a many-to-many relationship between GROUP and USER, indicating that users can join multiple groups, and a group can have multiple users as members. \ No newline at end of file + +Represents a many-to-many relationship between GROUP and USER, indicating that users can join multiple groups, and a group can have multiple users as members. diff --git a/README.md b/README.md index b964d04..a0ea6f0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # 🦾 Back-end part of the messenger application -Detailed entities description can be found here [Models](Models.md) \ No newline at end of file +Detailed entities description can be found here [Models](Models.md)