Help with scheduling rides

Options
I am building a database for a rental van site. Need help with setting up the database and API logic behind reserving vans and then showing customers available times for vans not already reserved. Will it require a data table for all time slots for all vans?

Comments

  • Depends on the logic, but you probably don't. Every time the API is called, you can generate an array of times then just loop to remove any unavailable slots from that array. Could also use caching to speed this up depending on the use!