SQL scripts for new "Funder" entity. (Issue #145)

This commit is contained in:
gkolokythas 2019-08-02 10:25:54 +03:00
parent 875150f7a8
commit f08e2e47b7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
CREATE TABLE public."Funder"
(
"ID" uuid NOT NULL DEFAULT uuid_generate_v4(),
"Label" character varying(250) COLLATE pg_catalog."default" NOT NULL,
"Reference" character varying COLLATE pg_catalog."default",
"Definition" character varying COLLATE pg_catalog."default",
"Status" smallint NOT NULL DEFAULT 0,
"Created" timestamp(4) with time zone NOT NULL DEFAULT now(),
"Modified" timestamp(4) with time zone NOT NULL DEFAULT now(),
"Type" numeric NOT NULL DEFAULT 0,
CONSTRAINT "Funder_pkey" PRIMARY KEY ("ID")
)

View File

@ -0,0 +1,2 @@
ALTER TABLE "Grant"
ADD COLUMN "Funder" uuid