Objective of the project:
We design tire times Apiwhere the user will look for tires.
Below are my table structure
I have the following tables
the buses
id | bus_name
Table description: Save all bus names
routes
id | route_name
Description of the table: Save all city names
stops
id | stop_name
Table Description: All Stop Names
stop_orders
id | route_id | stop_id | stop_order
Description of the table: here I will assign stops for the help of the city and stop_order columns to determine which stops are next to each other
bus_timing
id | stop_order_id | bus_id | bus_timing | trip | trip_direction
Description of the table: Here I will assign buses to stop the route along with time, shutdown and direction
Expected Result:
, stop_8 stop_18 01:00:00 12:00:00, . , ,
, ,
PHP
, stop_8, stop_18. , , , .
,
, , ( )
. , ,