Just a quick question about designing a Firestore schema:
I know you gotta use the right tool for the job, and Firestore isn't supposed to be a Relational database, but is there suggested techniques to model many to many relationships?
Ex:
I want to build a property management app where
Companies own Properties, which contain Units. Hierarchy is straightforward here.
So Tenants will rent multiple Units over time, and each Unit will have many tenants over time.. all that encapsulated by Leases which tie 1 Unit to 1 or more Tenants.
Units can own Leases I guess, but how do Tenants see all their Leases over time.. should Leases have a sub collection that references the Tenants.. are Tenants top level?
Just looking for some basic suggestions..
Or is it better to just user GraphQL with a relational database?