dimanche 2 mai 2021

How to structure a firestore database?

I'm creating a flutter app with firestore ,stuck on data structure scenario. So the scenario is a user can visit multiple cities, I have 3000 cities and 100000 users and I wanna be able to add and query, which users have visited a particular city. my current implementation is users/userId/userDetails and cities/cityName/cityDetails




Aucun commentaire:

Enregistrer un commentaire