I want to make an application like ADO, to buy your bus tickets to travel, the problem has arisen at the time of making the travel search available on that date, I have thought for hours and can not find the ideal structure to achieve look for several trips on a specific date with your specific price, I mean, you can buy your ticket to go from point A to point D on a given date, but how do I do the database in firebase if there will be occasions where a person will buy a ticket at point B to go to C or from point B to go to D or maybe from point A to go to B, all trips would occupy the same truck, they would be the same date, the same time and so several trips at different times, say that each trip has 1 truck, 1 driver and in a single trip that is made, has various origins and several destinations, each origin destination with different prices. Does anyone recommend a structure to filter the trips well in firebase? I can not think of anything.