CREATE TABLE mast.node ( id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY ,nam text ,sch text ,doc jsonb ) CREATE TABLE acct.accm ( id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY ,nam text --reference to node ids --should be limited to certain types of nodes, like location, product line, fsline, perhaps an enum? ,nodes bigint[] --node attributes pooled here ,doc jsonb )