I am new to Firebase, I have some knowledge of databases because I worked with MySQL before, but read the benefits of Firebase and what it offers - real-time database, login (auth), analytics, etc. d.
I want to implement Firebase in a project I'm working on. Although MySQL is a relational database, through my search I found (I believe) Firebase is a hierarchical database due to the way it is structured like a JSON tree.
Following the right development path, I would like to bring ERDS tables and databases to get an idea of how my project will interact with the backend. However, I'm not quite sure how I can represent the data structure using these environments, because in SQL you will have primary keys and foreign keys connecting tables. Does this also apply to Firebase?
For example, in MySQL, a table would look like this: ![[d]](http://qaru.site/img/74f020cb932b2c3d6ae63fa6fa34a789.png)
ERD would like to:

My questions:
- Am I saying correctly that Firebase is a hierarchical data structure?
- How can data be presented in ERD and Database tables to show the firebase data structure?
- Does Firebase use primary and foreign keys such as MySQL? If so, are they presented in the same way as when designing ERDs and tables for a MySQL database?
- What is the best way to structure data in Firebase and display it in ERD and tables?
I am new to Firebase, so any help would be nice. Thanks.
database mysql nosql firebase firebase-database
Sumone
source share