First we must create the different schedules that the worker may have, one in the morning, one in the afternoon and one at night:
Then we must create a shift with one of the previously created schedules, since the employee will be assigned to that shift:
Then we must assign the previously created shift and mark the following options to be able to assign the different schedules that the employee can have:
And with this we will see how depending on what the employee has clocked in he will be assigned a schedule or another.