The table that I show in the image is in MySQL. I want to make that same table but in firebase, how would that table be structured in the form of a tree as established by firebase?
Good, as you said, the firebase has a tree format since the data is stored in a JSON format. Therefore you will have to break down the data that you have in the table in different layers. Let's analyze carefully:
We have different products, and each product has different properties such as weight, lot1, etc. So we can make a father to all the products (all). Within this we can include the different products and in turn within each product the properties they have. I will not put the whole table but as you can imagine it would be as follows:
producto:{
transporte1:{
peso:4,
lote1: etc,
siguiente: etc
},
transporte2:{
como el anterior
}
}