I know this might be broad, but I have searched the interwebz and haven't found anything at all on this topic.
I am trying to implement a user to user communication system in Angular2. I would like to save the messages on Google Firebase db.
The only requirement is - A user should be able to start a conversation with other user. A conversation can contain multiple messages forth and back between 2 (and only 2) users.
Obviously, I need a collection for the messages on Firestore.
What should the structure be behind it? Should I have a separate collection inside 'messages' for each of the 'conversations' and then a collection inside for 'individual messages'? Can anyone please give any insight or any best practices how to implement this on a database level?
Thank you.