how can I make the following table in firebase [closed]

0

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?

    
asked by Hackndroid 01.07.2017 в 19:10
source

1 answer

0

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
 }

}
    
answered by 01.07.2017 / 20:36
source