Created
June 7, 2022 18:21
-
-
Save prmoore77/6992bf903bfc76d6301463e497224345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE product_nodes | |
( | |
node_id VARCHAR(36) DEFAULT uuid() | |
, node_natural_key INTEGER NOT NULL | |
, node_name VARCHAR(100) NOT NULL | |
, level_name VARCHAR(100) NOT NULL | |
, parent_node_id VARCHAR(36) | |
-- | |
, CONSTRAINT product_nodes_pk PRIMARY KEY (node_id) | |
, CONSTRAINT product_nodes_uk_1 UNIQUE (node_natural_key) | |
, CONSTRAINT product_nodes_self_fk FOREIGN KEY (parent_node_id) | |
REFERENCES product_nodes (node_id) | |
) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment