db script changes

This commit is contained in:
Efstratios Giannopoulos 2024-04-10 16:48:12 +03:00
parent 871c3bc166
commit 906cee7621
2 changed files with 1 additions and 13 deletions

View File

@ -14,13 +14,7 @@ CREATE TABLE IF NOT EXISTS public."ntf_UserContactInfo"
"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 DEFAULT 1, "is_active" smallint NOT NULL DEFAULT 1,
"tenant" uuid,
CONSTRAINT "ntf_UserContactInfo_pkey" PRIMARY KEY (id), CONSTRAINT "ntf_UserContactInfo_pkey" PRIMARY KEY (id),
CONSTRAINT "ntf_UserContactInfo_tenant_fkey" FOREIGN KEY ("tenant")
REFERENCES public."ntf_Tenant" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
NOT VALID,
CONSTRAINT "ntf_UserContactInfo_user_fkey" FOREIGN KEY ("user") CONSTRAINT "ntf_UserContactInfo_user_fkey" FOREIGN KEY ("user")
REFERENCES public."ntf_User" (id) MATCH SIMPLE REFERENCES public."ntf_User" (id) MATCH SIMPLE
ON UPDATE NO ACTION ON UPDATE NO ACTION

View File

@ -13,14 +13,8 @@ CREATE TABLE IF NOT EXISTS public."ant_UserContactInfo"
"value" character varying(512) COLLATE pg_catalog."default" NOT NULL, "value" character varying(512) COLLATE pg_catalog."default" 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 DEFAULT 1, "is_active" smallint NOT NULL DEFAULT 1
"tenant" uuid,
CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id), CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id),
CONSTRAINT "ant_UserContactInfo_tenant_fkey" FOREIGN KEY ("tenant")
REFERENCES public."ant_Tenant" (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
NOT VALID,
CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user") CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user")
REFERENCES public."ant_User" (id) MATCH SIMPLE REFERENCES public."ant_User" (id) MATCH SIMPLE
ON UPDATE NO ACTION ON UPDATE NO ACTION