added type id column and attribute id column