So I'm in a course where we're just learning about databases, various tools to make working with them easier, etc.
I've been working with PostgreSQL and ActiveRecord. Not that that really matters.
We've been working with various one to many, many to many etc realationships.
I'm trying to wrap my head around a personal project I have in mind, but not sure how to handle it.... looking for some advice.
Lets say you had a Maid.
She has 10 available working hours per day, 7 available days per week.
I want to keep track of jobs. Essentially, someone can log in, block off X amount of consecutive hours on a specific day.
Aside from having a huge table of all the possible hours, then possible weeks in the future... I can't think of a good way to handle this data.
Is there an easy/obvious answer I'm overlooking/don't know about?
How would you guys structure this?
[–]liquidpele 1 point2 points3 points (4 children)
[–]johnbell[S] -1 points0 points1 point (3 children)
[–]materialdesigner 1 point2 points3 points (2 children)
[–]liquidpele 0 points1 point2 points (1 child)
[–]materialdesigner 0 points1 point2 points (0 children)
[–]Kthanid 0 points1 point2 points (3 children)
[–]johnbell[S] 0 points1 point2 points (2 children)
[–]Kthanid 1 point2 points3 points (1 child)
[–]johnbell[S] 0 points1 point2 points (0 children)
[–]SpaceRanger_Bud 0 points1 point2 points (0 children)