I have a list of doctors and patients, whom have fixed schedules during several months (long treatments) as you can see in the image:
So Clarice will have an appointment with Dr. Fenwick every Monday from 09:00 to 10:00 until the schedule is deleted
I'm saving that info to the table as:
- id (int)
- day (1,2,3,4,5) where Monday=1, Tuesday=2...
- fk_doctor
- fk_patient
- start (time)
- end (time)
A) How should I generate a list of recurrent events from that table, so I can fill a jQuery fullcalendar component?
B) How much better (or optimal) would be to save the entire list of repeating recurrent events into the table?
The only advantages I see in B) would be the possibility to save a comment to each event, easy to load in fullcalendar, but I'd have lots of records and speed or loading time would be very affected because the data I showed is only 0.00001% of the real situation
Thanks for any idea/opinion you can suggest