notes/master_data_nodes.md

20 lines
454 B
Markdown
Raw Normal View History

2018-04-12 14:00:19 -04:00
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
2018-01-26 10:34:47 -05:00
)