Rank 2: Process
Hi all,
I've got a question on how I should structure my database and was hoping someone could help me out. Let me explain my situation: I've got a platform for creating flashcards. A flashcard set has a name, description, and of course the cards themselves, which have the data of term and definition.
I was wondering if I should have a separate collection that contains all the flashcard data themselves (each document would have term, definition & relation to the main document that holds the flashcard set data (name, description).
OR
Should each flashcard set be it's own document on one collection, where each document has the attributes of name, description & cards (as string type, in json format).
Any help is appreciated, thank you 🙂