I am building an android app and I am looking for good data storage (database). I want to avoid creating MySQL (or similar) db setting it on my own server and preparing webservice for managing data, I would also like to allow user to sync his data between his devices. That is why I am thinking about Firebase realtime database but I am not sure is ot ok for my scenario. To simplify a bit lets say that I will have 3 entities: User, Group, Product
Each user can create his own groups and products. He can attach product to a Group. Product can be attached only to one Group.
As I understand FRD (Firebase Realtime Database) is synced in realtime to all devices so every user will have data of every other user. So is there a chance to set an ownership ? For example I want to create something like "SELECT * FROM group WHERE owner = 'Dawid'"
I hope you see my point. I like firebase db because it is getting of my shoulders all things related with architecture and sync and so on, but I don't feel that this realtime sync ok for my scenario