Overview of naming and structuring the MongoDB collection

Here is an example of my first attempt to create the structure of my MongoDB collection.

http://pastebin.com/vDLxysCk

Description The user can create an account and make purchases in existing stores in the database, but can also open his own store.

However, I still have a few questions:

  • Is MongoDB a suitable database type for this kind of data?
  • Is the structure correct? (insert and link)
  • I see that people are advised to store as much data as possible in one document, how do you give them a name? Because they contain several resources.

Thank you very much in advance

0
source share

All Articles