notes/master_data_nodes.md
2018-04-12 14:00:19 -04:00

454 B

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 )