I want to create database on Firebase with a many-to-many relationship. I am not sure how to implement the JSON file structure.
The database should work like:
- One user will belong to many organisations
- One organisation will have many users
I did some structuring like this:
App
-Organisation
--Organisation Name
---Members
-----Member1
-----Member2
-Users
--Member
1
--UserEmail
--Organisations
--User questions
Any suggestions?