CSE311 Project (Finding Relationships)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Binary Relationships:

Passengers - Purchase - Tickets

One-to-many (Passenger to Tickets)


Many-to-one (Tickets to Passenger)

Bus Routes - Serviced by - Buses

One-to-many (Bus Routes to Buses)


Many-to-one (Buses to Bus Routes)

Buses - Driven by - Drivers

One-to-many (Buses to Drivers)


Many-to-one (Drivers to Buses)

Bus Stops - Served by - Bus Routes

One-to-many (Bus Stops to Bus Routes)


Many-to-one (Bus Routes to Bus Stops)

Bus Schedules - Associated with - Bus Routes

One-to-many (Bus Schedules to Bus Routes)


Many-to-one (Bus Routes to Bus Schedules)

Tickets - Belong to - Ticket Types

One-to-many (Tickets to Ticket Types)


Many-to-one (Ticket Types to Tickets)

Feedback - Given by - Passengers

One-to-many (Feedback to Passengers)


Many-to-one (Passengers to Feedback)
Lost and Found - Reported by - Passengers

One-to-many (Lost and Found to Passengers)


Many-to-one (Passengers to Lost and Found)

Refunds - Issued for - Tickets

One-to-many (Refunds to Tickets)


Many-to-one (Tickets to Refunds)

Bus Stations - Located on - Bus Routes

One-to-many (Bus Stations to Bus Routes)


Many-to-one (Bus Routes to Bus Stations)

Notifications - Sent to - User Accounts

One-to-many (Notifications to User Accounts)


Many-to-one (User Accounts to Notifications)

Bus Reservations - Made by - Passengers

One-to-many (Bus Reservations to Passengers)


Many-to-one (Passengers to Bus Reservations)

Bus Amenities - Available on - Buses

One-to-many (Bus Amenities to Buses)


Many-to-one (Buses to Bus Amenities)

Bus Maintenance - Scheduled for - Buses

One-to-many (Bus Maintenance to Buses)


Many-to-one (Buses to Bus Maintenance)
Bus Inspections - Conducted on - Buses

One-to-many (Bus Inspections to Buses)


Many-to-one (Buses to Bus Inspections)

Bus Staff - Employed by - Buses

One-to-many (Bus Staff to Buses)


Many-to-one (Buses to Bus Staff)

Customer Support - Provided for - User Accounts

One-to-many (Customer Support to User Accounts)


Many-to-one (User Accounts to Customer Support)

Ternary Relationship:

Bus Routes - Covered by - Bus Schedules - Include - Bus Stops

One-to-many-to-many (Bus Routes to Bus Schedules to Bus Stops)


One-to-many-to-many (Bus Routes to Bus Stops to Bus Schedules)
One-to-many-to-many (Bus Stops to Bus Routes to Bus Schedules)

You might also like