Dependencias
We call dependencies the relationships between data that affect each other. A simple example: Routes depend on Lines, so deleting a Line will result in the deletion of the Routes it contains, as a Route is a dependency of the Line that contains it.
The myBus Manage system alerts the user if, as a result of an action taken by the user within the system, any dependency will be deleted, changed, or if it will not be possible to delete a piece of data because its dependencies must be deleted first.
Dependency Relationship by Section
Calendars
- It is necessary to delete all dependencies of Calendars in order to delete them.
- Deleting the Calendar implies updating Shifts with dates, Playlists, and Trips.
- Unlinking Agencies from the Calendar is equivalent to deleting the Calendar for that Agency.
Drivers
- It is necessary to delete all dependencies of Drivers in order to delete them.
- Deleting Drivers implies updating Shifts with dates.
Lines
- Deleting Lines implies updating Playlist and deleting Routes with their Trips.
- Unlinking Agencies from the Line is equivalent to deleting the Line for that Agency.
Media
- It is necessary to delete all dependencies of Media in order to delete it.
- Deleting Media implies updating Playlists.
- Unlinking Agencies from the Media is equivalent to deleting the Media for that Agency.
Playlists
- There are no dependencies when deleting Playlists.
Routes
- Deleting a Route implies deleting the Trips created within the Route and updating the Playlists.
Stops
- It is necessary to delete all dependencies of Stops in order to delete them.
- Deleting Stops implies updating Routes with Trips and Playlist.
- Unlinking Agencies from the Stop is equivalent to deleting the Stop for the unlinked Agency.
Trips
- Deleting Trips implies updating Calendars.
Users
- It is necessary to delete all dependencies of the User in order to delete them.
- Deleting Users implies deleting the Media they have uploaded.
Vehicles
- It is necessary to delete all dependencies of Vehicles in order to delete them.
- Deleting Vehicles implies updating scheduled Shifts.