There are 2 classes in the scenario under consideration, User and ConnectionRequest.
The structures of the 2 classes are given below:
User:
- fullName: String
- username: String
- email: String
- password: String
- bio: String
- connections: Array
- timestamp: Date
ConnectionRequest:
- sender: String
- receiver: String
- message: String
- timestamp: Date
A user can send a connection request to another user, or they can receive a connection request from another user such as on social media platforms.
What type of connection/relation do the 2 classes share?
How can this be represented using UML notations in a class diagram?
Any modifications or improvements to the above model ignoring other system requirements are welcome.