I am trying to create a separate datastore for unique usernames and extra profile data such as avatar etc. I have the following schema:
mydatabase : {
users: [{
<actual user's id>: {
username: "helloworld"
},
<actual user's id>: {
username: "2test"
}]
}
Is my approach correct on this? I didn't see a way in firebase to store usernames or extra user data in the Authentication records of firebase. Also I noticed most examples I find online generate a push key for each row of data, but here I am using the actual user's id instead of a push key. I want to eventually query this when a user tries to create a username to see if it's been taken already.