Closed MaximilianGeorgiev closed 3 years ago
Routes must be a separate table because routes are hardcoded before hand (as per requirement) and the Trip will make use of foreign keys.
A route will have: route_id route_departurelocation_id(FK) route_arrivallocation_id(FK)
A route can have many middle points that's why another table is needed: RouteAttachment route_id(FK) route_attachmentlocation_id(FK)
resolved with #9eff58d
Routes must be a separate table because routes are hardcoded before hand (as per requirement) and the Trip will make use of foreign keys.
A route will have: route_id route_departurelocation_id(FK) route_arrivallocation_id(FK)
A route can have many middle points that's why another table is needed: RouteAttachment route_id(FK) route_attachmentlocation_id(FK)