it would be better if you have an entity for the date and time, so you dont need to manually check if there is an appointment. that table should contain the appointment date and time and the status of it, you can have a table to auto create these record, for example 3 month in advance so they can select 3 months ahead. you can change depending on your scenario