I’ve only been using one collection per database since my former projects only require so. But now I need to add login and account feature to my app. Should i create a new collection so the documents don’t mix up? Is having a collection for each type of data schema okay?
For example, I want to create a chatting apps. So I create 4 collections:
- To store login data
- To store profile data (or should i put this inside the login data document?)
- To store one-to-one chat
- To store group information and chats
Is that okay? Is there any better approach? Any advice would be appreciated.
- i don’t know how to google these information