def col(attrib):
    """Return the column that stores an ``attrib`` of a model.

    Given a sqlalchemy.orm.attributes.InstrumentedAttribute
    (type of the attributes of model classes),
    return the corresponding column. E.g.: ``col(User.email)``
    """
    return attrib.property.columns[0]
