Update DataManagementPlanDB.sql

This commit is contained in:
Nikolaos Laskaris 2017-11-02 17:06:37 +01:00
parent abf91162a1
commit c1ca2af9f9
1 changed files with 33 additions and 33 deletions

View File

@ -50,9 +50,9 @@ CREATE TABLE "DMP" (
"Version" integer NOT NULL, "Version" integer NOT NULL,
"Project" uuid NOT NULL, "Project" uuid NOT NULL,
"ProfileData" xml, "ProfileData" xml,
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Profile" uuid "Profile" uuid
); );
@ -83,9 +83,9 @@ COMMENT ON COLUMN "DMPOrganisation"."Role" IS 'Enumerator of roles';
CREATE TABLE "DMPProfile" ( CREATE TABLE "DMPProfile" (
"ID" uuid DEFAULT uuid_generate_v4() NOT NULL, "ID" uuid DEFAULT uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL, "Label" character varying(250) NOT NULL,
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml "Definition" xml
); );
@ -115,9 +115,9 @@ CREATE TABLE "Dataset" (
"Uri" character varying(250), "Uri" character varying(250),
"Properties" xml, "Properties" xml,
"Reference" xml, "Reference" xml,
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Profile" uuid "Profile" uuid
); );
@ -136,9 +136,9 @@ CREATE TABLE "DatasetProfile" (
"Label" character varying(250) NOT NULL, "Label" character varying(250) NOT NULL,
"Ruleset" uuid, "Ruleset" uuid,
"Viewstyle" uuid, "Viewstyle" uuid,
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml NOT NULL "Definition" xml NOT NULL
); );
@ -180,9 +180,9 @@ CREATE TABLE "Organisation" (
"Abbreviation" character varying(50), "Abbreviation" character varying(50),
"Reference" xml, "Reference" xml,
"Uri" character varying(250), "Uri" character varying(250),
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml "Definition" xml
); );
@ -211,11 +211,11 @@ CREATE TABLE "Project" (
"Abbreviation" character varying(50), "Abbreviation" character varying(50),
"Reference" xml, "Reference" xml,
"Uri" character varying(250), "Uri" character varying(250),
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"StartDate" date, "StartDate" timestamp,
"EndDate" date, "EndDate" timestamp,
"Definition" xml "Definition" xml
); );
@ -254,9 +254,9 @@ CREATE TABLE "Researcher" (
"Uri" character varying(250), "Uri" character varying(250),
"PrimaryEmail" character varying(250), "PrimaryEmail" character varying(250),
"Definition" xml, "Definition" xml,
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Reference" xml "Reference" xml
); );
@ -378,9 +378,9 @@ CREATE TABLE "Service" (
"Abbreviation" character varying(50), "Abbreviation" character varying(50),
"Reference" xml, "Reference" xml,
"Uri" character varying(250), "Uri" character varying(250),
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml "Definition" xml
); );
@ -396,9 +396,9 @@ CREATE TABLE "DataRepository" (
"Abbreviation" character varying(50), "Abbreviation" character varying(50),
"Reference" xml, "Reference" xml,
"Uri" character varying(250), "Uri" character varying(250),
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml "Definition" xml
); );
@ -415,9 +415,9 @@ CREATE TABLE "Registry" (
"Abbreviation" character varying(50), "Abbreviation" character varying(50),
"Reference" xml, "Reference" xml,
"Uri" character varying(250), "Uri" character varying(250),
"Status" smallint, "Status" smallint not null default 0,
"Created" timestamp with time zone, "Created" timestamp not null default NOW(),
"Modified" timestamp with time zone, "Modified" timestamp not null default NOW(),
"Definition" xml "Definition" xml
); );
@ -495,7 +495,7 @@ CREATE TABLE "UserInfo" (
"authentication" uuid, "authentication" uuid,
"verified_email" boolean, "verified_email" boolean,
"name" character varying(250), "name" character varying(250),
"created" timestamp, "created" timestamp not null,
"lastloggedin" timestamp, "lastloggedin" timestamp,
"additionalinfo" xml, "additionalinfo" xml,
PRIMARY KEY (id) PRIMARY KEY (id)