notes/master_data_nodes.md
Paul Trowbridge e2d0f1fff2 updates
2018-01-26 17:22:07 -05:00

435 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 )