I am building a Calendar Shift Scheduling/Confirmation app for my transportation company. I’ve got the process down for creating events, creating routes with shift times, and creating users. What I need help with is the data relations, or rather to make sure I am going about it the best way.
When a dispatcher/supervisor opens the app they can see the main calendar displaying all shifts that have a driver scheduled. When they click on the day it opens the pop up, for that day, allowing the to select the route, which automatically fills in time information, and then can select a driver for that route, for that day, and when they click the save button, it creates the calendar event, and then associates the shift with the selected driver.
Im thinking that I need to create a data table, named assignments, that contains two columns 1)List of Calendar Events, and 2)List of Users, then on the user data table, have a column that contains a list of assignments, and on the events data table, a column that contains the driver(user), so everything can correlate and connect.
The goal is to have it so when a driver opens the app, they can see the shifts they have been scheduled for, and then select the shift, and click a button to confirm they are aware of the shift they have been scheduled for.
Thanks