Build assocations amongst User, Link, Sub, SubLink.