Great Messaging System MongoDB React
Budget: $30 – $250 USD
Read/Write Messages from React front end to MongoDB two collections: Conversation and Messages.
Write messages to OwnerUserId from UserId in SingleArtWork.js.
Read messages in Notification.js with buttons: "Mark as Read" "Delete" "Answer" "Block" and "Report" for the message.
Structure and variable in answer: https://stackoverflow.com/questions/30823944/mongodb-best-design-for-messaging-app
Additional Variable:
In the conversation document: "OwnerUserId" (Recipient), "MCUserId" (is the creator of the conversation = UserId),
"OwnerIsBlocked" and "MCIsBlocked" = false (until he gets blocked)
In the message document:
"isRead" = false (until the user clicks "Mark as Read"),
isDeleted = false (until the user clicks "Delete") the message itself doesn't get deleted in the DB, just don't show
the message on the notification page.
"isReportedOwner" and "isReportedMC" = false (until gets reported)
Write messages to OwnerUserId from UserId in SingleArtWork.js.
Read messages in Notification.js with buttons: "Mark as Read" "Delete" "Answer" "Block" and "Report" for the message.
Structure and variable in answer: https://stackoverflow.com/questions/30823944/mongodb-best-design-for-messaging-app
Additional Variable:
In the conversation document: "OwnerUserId" (Recipient), "MCUserId" (is the creator of the conversation = UserId),
"OwnerIsBlocked" and "MCIsBlocked" = false (until he gets blocked)
In the message document:
"isRead" = false (until the user clicks "Mark as Read"),
isDeleted = false (until the user clicks "Delete") the message itself doesn't get deleted in the DB, just don't show
the message on the notification page.
"isReportedOwner" and "isReportedMC" = false (until gets reported)