I want to be able to create schedules that can be performed based on a fixed date, repeated daily, repeated on a specific day of the week, repeated on a specific month of the year, repeated on a specific date every year, and repeated at a specific time of the day.
How do I start creating database tables for this problem?
Edit # 1
Basically, I am writing an application that allows users to schedule pre-configured greetings that will be sent at various pre-configured times. I know that I need a table that stores information about the schedule (for example, Christmas, marketing, ... and when the work schedule should be executed). Then another table to record which schedule was running, which greeting was sent, to whom and by email; basically a transaction table.
My problem is to design the Schedule table because I want to allow users to run the schedule on a specific date, on a specific day of the week (repeating), on a specific day of each month, at a specific time every day, and on a specific day / month (e.g. 25 / 12) every year.
How can I create a set of tables for a schedule that will carefully take care of these inputs?
database-design database-schema
Tebo
source share