add requestitem table and seq table to schema

This commit is contained in:
Ivan Masár
2013-10-22 00:33:28 +02:00
parent a4cf2a2a67
commit a557e3b0de

View File

@@ -111,6 +111,7 @@ CREATE SEQUENCE harvested_item_seq;
CREATE SEQUENCE versionitem_seq;
CREATE SEQUENCE versionhistory_seq;
CREATE SEQUENCE webapp_seq;
CREATE SEQUENCE requestitem_seq;
-------------------------------------------------------
-- BitstreamFormatRegistry table
@@ -825,3 +826,20 @@ CREATE TABLE Webapp
Started TIMESTAMP,
isUI INTEGER
);
CREATE TABLE requestitem
(
requestitem_id int4 NOT NULL,
token varchar(48),
item_id int4,
bitstream_id int4,
allfiles bool,
request_email varchar(64),
request_name varchar(64),
request_date timestamp,
accept_request bool,
decision_date timestamp,
expires timestamp,
CONSTRAINT requestitem_pkey PRIMARY KEY (requestitem_id),
CONSTRAINT requestitem_token_key UNIQUE (token)
);