Professional Documents
Culture Documents
Buses 2
Buses 2
1. Company
CompanyName
RegistrationNumber
2. Bus
RegistrationNumber
3. Route
Origin
Destination
4. Driver
Name
LicenseNumber
5. BusDriverAssignment
6. Passenger
Name
7. Booking
JourneyDateTime
BookingDateTime
8. Payment
Amount
PaymentDateTime
9. Journey
JourneyDateTime
JourneyStatus
10. GPSData
Latitude
Longitude
Timestamp
11. LatraReport
ActionTaken
Remarks
Date
12. Latra
Name
Relationships:
One Booking is for One Passenger and One Bus (One-to-One relationship)
One Bus can have Many GPS Data Points (One-to-Many relationship)
One Journey is associated with One Bus, One Route, and One Driver (One-to-One relationship)
More explanations
1. Company:
2. Bus:
3. Route:
4. Driver:
Each driver has a unique identifier and is associated with one or more buses.
5. BusDriverAssignment:
Composite primary key (BusID, DriverID) establishes the relationship between buses and
drivers.
Each bus can have multiple drivers, and each driver can be assigned to multiple buses.
6. Passenger:
Each passenger has a unique identifier and can make multiple bookings.
7. Booking:
8. Payment:
9. Journey:
Attributes include JourneyID (unique identifier), BusID (foreign key referencing Bus),
RouteID (foreign key referencing Route), DriverID (foreign key referencing Driver),
JourneyDateTime, and JourneyStatus.
Each journey is associated with one bus, one route, and one driver.
10. GPSData:
Attributes include GPSDataID (unique identifier), BusID (foreign key referencing Bus),
Latitude, Longitude, and Timestamp.
Each GPS data point is associated with one bus and records its location at a specific
timestamp.
11. LatraReport:
Attributes include ReportID (unique identifier), LatraID (foreign key referencing Latra),
ActionTaken, Remarks, and Date.
Each report is associated with one Latra personnel and contains details about actions
taken, remarks, and the date of filing.
12. Latra:
Each Latra personnel has a unique identifier and is associated with multiple reports.