script changes
This commit is contained in:
parent
c1a3ac89d6
commit
3fe87a024a
|
@ -11,10 +11,15 @@ CREATE TABLE IF NOT EXISTS public."ant_Annotation"
|
||||||
"entity_type" character varying(512) COLLATE pg_catalog."default" NOT NULL,
|
"entity_type" character varying(512) COLLATE pg_catalog."default" NOT NULL,
|
||||||
"anchor" character varying(512) COLLATE pg_catalog."default",
|
"anchor" character varying(512) COLLATE pg_catalog."default",
|
||||||
"payload" text COLLATE pg_catalog."default",
|
"payload" text COLLATE pg_catalog."default",
|
||||||
|
"tenant" uuid NOT NULL,
|
||||||
"created_at" timestamp without time zone NOT NULL,
|
"created_at" timestamp without time zone NOT NULL,
|
||||||
"updated_at" timestamp without time zone NOT NULL,
|
"updated_at" timestamp without time zone NOT NULL,
|
||||||
"is_active" smallint NOT NULL,
|
"is_active" smallint NOT NULL,
|
||||||
CONSTRAINT "ant_Annotation_pkey" PRIMARY KEY (id)
|
CONSTRAINT "ant_Annotation_pkey" PRIMARY KEY (id),
|
||||||
|
CONSTRAINT "ant_Annotation_tenant_fkey" FOREIGN KEY ("tenant")
|
||||||
|
REFERENCES public."ant_Tenant" (id) MATCH SIMPLE
|
||||||
|
ON UPDATE NO ACTION
|
||||||
|
ON DELETE NO ACTION
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.055', '2024-02-20 12:00:00.000000+02', now(), 'Add table ant_Annotation.');
|
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.055', '2024-02-20 12:00:00.000000+02', now(), 'Add table ant_Annotation.');
|
||||||
|
|
|
@ -9,10 +9,15 @@ CREATE TABLE IF NOT EXISTS public."ant_EntityUser"
|
||||||
"id" uuid NOT NULL,
|
"id" uuid NOT NULL,
|
||||||
"entity_id" uuid NOT NULL,
|
"entity_id" uuid NOT NULL,
|
||||||
"user_id" uuid NOT NULL,
|
"user_id" uuid NOT NULL,
|
||||||
|
"tenant" uuid NOT NULL,
|
||||||
"created_at" timestamp without time zone NOT NULL,
|
"created_at" timestamp without time zone NOT NULL,
|
||||||
"updated_at" timestamp without time zone NOT NULL,
|
"updated_at" timestamp without time zone NOT NULL,
|
||||||
"is_active" smallint NOT NULL,
|
"is_active" smallint NOT NULL,
|
||||||
CONSTRAINT "ant_EntityUser_pkey" PRIMARY KEY (id),
|
CONSTRAINT "ant_EntityUser_pkey" PRIMARY KEY (id),
|
||||||
|
CONSTRAINT "ant_EntityUser_tenant_fkey" FOREIGN KEY ("tenant")
|
||||||
|
REFERENCES public."ant_Tenant" (id) MATCH SIMPLE
|
||||||
|
ON UPDATE NO ACTION
|
||||||
|
ON DELETE NO ACTION,
|
||||||
CONSTRAINT "ant_EntityUser_user_fkey" FOREIGN KEY ("user_id")
|
CONSTRAINT "ant_EntityUser_user_fkey" FOREIGN KEY ("user_id")
|
||||||
REFERENCES public."ant_User" (id) MATCH SIMPLE
|
REFERENCES public."ant_User" (id) MATCH SIMPLE
|
||||||
ON UPDATE NO ACTION
|
ON UPDATE NO ACTION
|
||||||
|
|
Loading…
Reference in New Issue