Adds relationships to models