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

Prepared deleted_node table for deleteNode method implementation in NodeDAO

parent e8991e22
No related branches found
No related tags found
No related merge requests found
Pipeline #916 passed
......@@ -72,9 +72,40 @@ CREATE TABLE node (
CREATE TABLE deleted_node (
node_id BIGSERIAL NOT NULL,
parent_path LTREE default NULL,
parent_relative_path LTREE default NULL,
name VARCHAR NOT NULL,
owner_id VARCHAR NOT NULL,
last_modified TIMESTAMP default CURRENT_TIMESTAMP,
os_name VARCHAR default NULL,
tstamp_wrapper_dir VARCHAR default NULL,
type NodeType NOT NULL,
location_type LocationType default NULL,
format VARCHAR default NULL,
-- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
async_trans BOOLEAN default NULL,
-- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
busy_state BOOLEAN default NULL,
owner_id VARCHAR default NULL,
creator_id VARCHAR default NULL,
group_read VARCHAR[] default NULL,
group_write VARCHAR[] default NULL,
is_public BOOLEAN default NULL,
delta BIGINT default NULL,
/* it may be a delta of data which is transferred through an asynchronous transfer.
It should stay on the transfer service (e.g. Redis) */
content_type VARCHAR default NULL,
content_encoding VARCHAR default NULL,
content_length BIGINT default NULL,
content_md5 TEXT default NULL,
created_on TIMESTAMP default NULL,
last_modified TIMESTAMP default NULL,
-- link TEXT default NULL,
accept_views TEXT[] default NULL,
provide_views TEXT[] default NULL,
-- storage service mapping used to access the content of this node
-- storage_id VARCHAR,
protocols TEXT[] default NULL,
-- add a deleted_on timestamp to keep track
deleted_on TIMESTAMP default CURRENT_TIMESTAMP,
PRIMARY KEY (node_id)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment