def get_column(name, model=None):
    """
    get table column according to name, the name can be like `model.column`
    """
    if '.' in name:
        m, name = name.split('.')
        model = get_model(m)

    if model:
        return model.c.get(name)