Plugin to setting up relations between models