I have a document-based data structure filled with users. Information about the users will include a weekly agenda (activities to do in one week, ex: run 10 minutes on Monday, go shopping on Tuesday), and other essential information such as their first name, gender, age, etc.. Users can have multiple weekly agendas (for example, one for this week, another for the next week, etc..)
I do not know how to structure this data however.
Should there be two subdirectories inside the user directory, one named "weekly_agendas" (containing documents of all the user's weekly agendas), and another named "user_data," containing personal information such as name, gender, age, etc.. Essentially, nesting data is being created.
OR:
Should the "weekly_agendas" directory be moved outside of the users directory?
I have googled everywhere, and all documents typically suggest preventing nested data structure, but how could this nested data structure be bad?
This can help illustrate what I am trying to get at:
Structure #1
users
|
+--user_id
|
+--user_data
|
+--username
+--age
+--gender
+--weekly_agenda
|
+--weekly_agenda_number
|
+--1: walk the dog on Monday
+--2: Go shopping on Tuesday
Structure #2:
users
|
+--user_id
|
+--username
+--age
+--gender
+--weekly_agenda
|
+--user_id
|
+--weekly_agenda_number
|
+--1: walk the dog on Monday
+--2: Go shopping on Tuesday