Indexes are only created for types with unique attrs