Add relations to model.