Setting up relationships for the schedule