I need to log progress of a project at weekly intervals, but I also need to store expected progress at these intervals for comparison in the future.
Typically each project has several tasks of different durations which make up the total duration of the project.
When a project is first stored, I will know the start and end dates and so I would then store the weekly intervals in a logs table. I can then map this against the tasks to store expected progress at each interval. I then plan to use a cron job to log the actual progress each week.
I don't feel easy about this solution. What if the planned dates for the project change? If another task is stored and extends the overall duration of the project, the original stored intervals might not match up. Also, what if a task starts midweek? This won't match up to the project wide intervals?
How might I execute this within the confines of MySQL?
A few tips:
Here's a simple schema as a starter for ten: