type is not a primary key