Add relationships and entity classes.