adds model relations