Add inverse relation, for relations without persist a foreign key.

The relation needs an index on the foreign key