diff --git a/00-tables.sql b/00-tables.sql index baa1957dc8b7f65adc35e7b10fc98f73f3eea79b..f7b9820b8d5c7f28a35863db8712cf36c0e6a55d 100644 --- a/00-tables.sql +++ b/00-tables.sql @@ -53,20 +53,16 @@ CREATE TABLE node ( 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) */ + quota BIGINT default NULL, + -- total container quota (in bytes) content_type VARCHAR default NULL, content_encoding VARCHAR default NULL, content_length BIGINT default NULL, content_md5 TEXT default NULL, created_on TIMESTAMP default CURRENT_TIMESTAMP, 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, PRIMARY KEY (node_id), FOREIGN KEY (location_id) REFERENCES location (location_id) @@ -94,20 +90,16 @@ CREATE TABLE deleted_node ( 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) */ + quota BIGINT default NULL, + -- total container quota (in bytes) 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,