diff --git a/00-tables.sql b/00-tables.sql index 9b8f755e683ebdae71138f4286e00699e562527c..13da05a36f23d8f572398b85da348e7395e333b4 100644 --- a/00-tables.sql +++ b/00-tables.sql @@ -158,4 +158,9 @@ CREATE TABLE collections ( owner_id VARCHAR NOT NULL, PRIMARY KEY (collection_id) ); - + +CREATE TABLE collections_node ( + collection_id INT references collections(collection_id) ON DELETE CASCADE ON UPDATE CASCADE, + node_id BIGINT references node(node_id) ON DELETE CASCADE ON UPDATE CASCADE, + PRIMARY KEY(collection_id, node_id) +); \ No newline at end of file