def METHOD_NAME(action: SyncAction) -> QuerySet[Schedule]:
    """
    Applies the operations required to sync the schedules in the settings with the schedules in the DB
    """
    Schedule.objects.bulk_create(action.to_add)
    Schedule.objects.filter(id__in=[schedule.id for schedule in action.to_delete]).delete()
    Schedule.objects.bulk_update(action.to_modify, fields=ScheduleSerializer.Meta.fields)
    return Schedule.objects.all()