SQL scripts for new "Funder" entity. (Issue #145)
This commit is contained in:
parent
875150f7a8
commit
f08e2e47b7
|
@ -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")
|
||||||
|
)
|
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE "Grant"
|
||||||
|
ADD COLUMN "Funder" uuid
|
Loading…
Reference in New Issue