需求
“A bus ticketing database with Passenger, Bus, Route, Stop, RouteStop, Schedule, Ticket, and Payment tables. Schedules link routes and buses; tickets link passengers and schedules; payments belong to tickets.”
接著試試Add a driver assignment to each scheduleAdd a fare zone for each stop
這張圖裡有什麼
看懂背後的決策。
01
Included composite primary key for route-stop mapping
02
Separated Payment entity for normalization
03
Added stop ordering in RouteStop junction table
When modeling the database schema for a bus ticketing platform that needs to track stops, schedules, bookings, and payments.