I'm writing an education app and my current Firebase structure looks like:
∟ Modules (Includes video, audio, text and quiz modules in one collection)
Where "Course", "Lessons" and "Modules" are each collections. I also have a type field inside the module document that tells me what I should deserialize the document to (video object, audio object, etc. -- the objects only differ by a few fields).
Something tells me that I should instead separate the types of modules into their own collections however:
⊢ Video Modules
⊢ Audio Modules
⊢ Text Modules
∟ Quiz Modules
I've thought a lot about the two options and I can't seem to decide. Is there anything about not mixing the types inside collections specific to Firebase or noSQL databases that would help me decide?