update config and generator to match pyramid relationship model