def _add_scheduling_patterns(obj, data, columns):
    """Add scheduling patterns to column and data tuples
    """
    i = 0
    for s in obj.trigger.properties.pattern:
        name = 'schedule_pattern_' + str(i + 1)
        data += (obj.trigger.properties.pattern[i],)
        columns = columns + (name,)
        i += 1
    return data, columns