Skip to content
Snippets Groups Projects
Commit 0ed52020 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added structured NodeType and list_of_files table

parent ef926594
No related branches found
No related tags found
No related merge requests found
Pipeline #889 passed
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
CREATE EXTENSION IF NOT EXISTS ltree; CREATE EXTENSION IF NOT EXISTS ltree;
CREATE TYPE NodeType AS ENUM ('container', 'data', 'link'); CREATE TYPE NodeType AS ENUM ('container', 'data', 'link', 'structured');
CREATE TYPE LocationType AS ENUM ('virtual', 'tape', 'user', 'LBT'); CREATE TYPE LocationType AS ENUM ('virtual', 'tape', 'user', 'LBT');
CREATE TABLE node ( CREATE TABLE node (
......
-- Stores the content of StructuredDataNodes representing a list of files.
CREATE TABLE list_of_files (
list_node_id BIGSERIAL NOT NULL,
node_id BIGSERIAL NOT NULL,
PRIMARY KEY (list_node_id, node_id),
FOREIGN KEY (list_node_id) REFERENCES node (node_id),
FOREIGN KEY (node_id) REFERENCES node (node_id)
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment