I am making a bookings(appointments) app.The user will be able to see the available appointment slots for a business.
The available appointments slots is the result of a query that “looks” in a table that holds all possible appointments(date and time columns) for a period of ten months.From the data in that table I remove the already booked appointments plus that I filter it according to the schedule(found in another table) of the business.
As I see it this table that holds all possible slots must be updated every once and a while with slots that reflect future dates.
My rationale is that the use will be able to book appts as far as 7 months ahead…so I put slots of 10 months in the table so I can have time of 3 months to update the table
-
What do you think overall of the above logic?
-
Can I automate the above process?