Migrating from a real-time database to a cloud-based firestore requires a complete reorganization of the database. To do this, I created an example with some major design decisions. See Figure and Database Design in the table below. My two questions are:
1 - when I have a relationship from one to many, is it also the ability to store information in an array inside a document? See Line 8 for database design.
2 - Should I include only a link or duplicate all information in relation to one to many. See Line 38 in the database model.
https://docs.google.com/spreadsheets/d/13KtzSwR67-6TQ3V9X73HGsI2EQDG9FA8WMN9CCHKq48/edit?usp=sharing
source
share