Added relationships to the type model for entities.