Add inverse_of to models

Fixes #4146