generating a Relationship model