Skip to content
Snippets Groups Projects
Commit 03653bed authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

added collections_node many-to-many relationship

parent 18757886
No related branches found
No related tags found
No related merge requests found
Pipeline #15828 passed
...@@ -158,4 +158,9 @@ CREATE TABLE collections ( ...@@ -158,4 +158,9 @@ CREATE TABLE collections (
owner_id VARCHAR NOT NULL, owner_id VARCHAR NOT NULL,
PRIMARY KEY (collection_id) 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment