adds model relationships