Renamed the foreign key object properties.
Removing the _isPrimaryKey || _isUniqueKey || _isIndexKey check from the selector. It's really more complicated than originally thought, i.e. is case of multiple selector keys, we need to check all possible combinations.