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,
|
||||
"Project" uuid NOT NULL,
|
||||
"ProfileData" xml,
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Profile" uuid
|
||||
);
|
||||
|
||||
|
@ -80,6 +83,9 @@ COMMENT ON COLUMN "DMPOrganisation"."Role" IS 'Enumerator of roles';
|
|||
CREATE TABLE "DMPProfile" (
|
||||
"ID" uuid DEFAULT uuid_generate_v4() NOT NULL,
|
||||
"Label" character varying(250) NOT NULL,
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
@ -109,6 +115,9 @@ CREATE TABLE "Dataset" (
|
|||
"Uri" character varying(250),
|
||||
"Properties" xml,
|
||||
"Reference" xml,
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Profile" uuid
|
||||
);
|
||||
|
||||
|
@ -127,6 +136,9 @@ CREATE TABLE "DatasetProfile" (
|
|||
"Label" character varying(250) NOT NULL,
|
||||
"Ruleset" uuid,
|
||||
"Viewstyle" uuid,
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml NOT NULL
|
||||
);
|
||||
|
||||
|
@ -168,6 +180,9 @@ CREATE TABLE "Organisation" (
|
|||
"Abbreviation" character varying(50),
|
||||
"Reference" xml,
|
||||
"Uri" character varying(250),
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
@ -196,6 +211,11 @@ CREATE TABLE "Project" (
|
|||
"Abbreviation" character varying(50),
|
||||
"Reference" xml,
|
||||
"Uri" character varying(250),
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"StartDate" date,
|
||||
"EndDate" date,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
@ -234,6 +254,9 @@ CREATE TABLE "Researcher" (
|
|||
"Uri" character varying(250),
|
||||
"PrimaryEmail" character varying(250),
|
||||
"Definition" xml,
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Reference" xml
|
||||
);
|
||||
|
||||
|
@ -355,6 +378,9 @@ CREATE TABLE "Service" (
|
|||
"Abbreviation" character varying(50),
|
||||
"Reference" xml,
|
||||
"Uri" character varying(250),
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
@ -370,6 +396,9 @@ CREATE TABLE "DataRepository" (
|
|||
"Abbreviation" character varying(50),
|
||||
"Reference" xml,
|
||||
"Uri" character varying(250),
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
@ -386,6 +415,9 @@ CREATE TABLE "Registry" (
|
|||
"Abbreviation" character varying(50),
|
||||
"Reference" xml,
|
||||
"Uri" character varying(250),
|
||||
"Status" smallint,
|
||||
"Created" timestamp with time zone,
|
||||
"Modified" timestamp with time zone,
|
||||
"Definition" xml
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue