Commit 0ed52020 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Added structured NodeType and list_of_files table

parent ef926594
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@

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 TABLE node (

07-list-of-files.sql

0 → 100644
+10 −0
Original line number Diff line number Diff line

-- 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)
);