Added relations to model.