Data Model
Concept | User |
---|---|
purpose | info about users |
states | name:User-> Name; username:User-> Username; password:User->Password |
Concept | Diary |
---|---|
purpose | Info about the posts |
states | content:Diary-> Content:string; images:Diary-> set Image; author:Diary->User; time: Diary -> Date |
Concept | Point |
---|---|
purpose | Info about users' points |
states | points: one User-> one Number; |
Concept | Comment |
---|---|
purpose | To express an opinion about something |
states | author: one Comment -> one User; post: one Comment-> one Post; time: Comment -> Date |
Concept | Friendship [User, Tag] |
---|---|
purpose | info about friendship |
states | friends: Users-> set Users; pendingFriends: set Users->Users |
Concept | Tag |
---|---|
purpose | Info about tags |
states | tags: Diary -> set tags; user: Users -> set tags |
Github and Deployment
https://github.com/amirika20/backend
https://backend-19fduemwn-amirabbas-kazeminias-projects.vercel.app/