Added {create/updated} timestamps, status codes (to aid soft deletes), plus project's start-end dates
This commit is contained in:
parent
56253849d2
commit
abf91162a1
|
@ -50,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Profile" uuid
|
"Profile" uuid
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -80,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -109,6 +115,9 @@ CREATE TABLE "Dataset" (
|
||||||
"Uri" character varying(250),
|
"Uri" character varying(250),
|
||||||
"Properties" xml,
|
"Properties" xml,
|
||||||
"Reference" xml,
|
"Reference" xml,
|
||||||
|
"Status" smallint,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Profile" uuid
|
"Profile" uuid
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -127,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml NOT NULL
|
"Definition" xml NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -168,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -196,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
|
"StartDate" date,
|
||||||
|
"EndDate" date,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -234,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Reference" xml
|
"Reference" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -355,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -370,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -386,6 +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,
|
||||||
|
"Created" timestamp with time zone,
|
||||||
|
"Modified" timestamp with time zone,
|
||||||
"Definition" xml
|
"Definition" xml
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue