Skip to content

Data Model

ConceptUser
purposeinfo about users
statesname:User-> Name; username:User-> Username; password:User->Password
ConceptDiary
purposeInfo about the posts
statescontent:Diary-> Content:string; images:Diary-> set Image; author:Diary->User; time: Diary -> Date
ConceptPoint
purposeInfo about users' points
statespoints: one User-> one Number;
ConceptComment
purposeTo express an opinion about something
statesauthor: one Comment -> one User; post: one Comment-> one Post; time: Comment -> Date
ConceptFriendship [User, Tag]
purposeinfo about friendship
statesfriends: Users-> set Users; pendingFriends: set Users->Users
ConceptTag
purposeInfo about tags
statestags: Diary -> set tags; user: Users -> set tags

Github and Deployment

https://github.com/amirika20/backend

https://backend-19fduemwn-amirabbas-kazeminias-projects.vercel.app/