Designing a Calendar system like Google Calendar | I have to create something similiar to Google Calendar, so I created an events table that contains all the events for a user.


The hard part is handling re-occurring events, the row in the events table has an event\_type field that tells you what kind of event it is, since an event can be for a single date only, OR a re-occuring event every x days.


**The main design challenge is handling re-occurring events.**


When a user views the calendar, using the month's view, how can I display all the events for the given month? The query is going to be tricky, so I thought it would be easier to create another table and create a row for each and every event, including the re-occuring events.


What do you guys think?