需求
“Create a smart bus ticketing ERD with Passenger, Ticket, Route, Bus, and Schedule tables, the shown keys and attributes, passengers buying tickets, tickets reserving schedules, and schedules linked to routes and buses.”
接著試試Add fare payments.Add seat assignments.
這張圖裡有什麼
看懂背後的決策。
01
Tickets reference schedules instead of separate route/bus to simplify booking
02
Passenger-to-tickets is one-to-many to allow many purchases
03
Schedules link routes and buses with departure times
When designing a relational database for any public transit ticketing or reservation system.