Hi Fellow Firebase Devs!
Earlier this year i got hired into a startup and we got going developing our app in xamarin and we decided to use firebase as our backend. A decision i in some ways regret as its not really as .net/xamarin friendly as for example azure.
However after some workarounds and lessons learnt during this year we got a stable firebase integration into our app. Release is in a couple of weeks so now we are doing some final touches to our backend which leads into my question.
At the moment our Realtime Database is structured in this way:
-posts
-id
-id
-title
-content
-etc
-user-profiles
-id
-id
-name
-age
-etc
So i am basically storing the Id for each item twice. First i though saving the id as field for each object would be practical because when i deserialize the json into .net objects i have a ID property in each of my models to simplify my business logic.
But none of the firebase examples use this logic nor any 3rd party tutorials.
Is there any cleaner database structure i could use? Cheers and thanks in advance!