db script changes
This commit is contained in:
parent
871c3bc166
commit
906cee7621
|
@ -14,13 +14,7 @@ CREATE TABLE IF NOT EXISTS public."ntf_UserContactInfo"
|
|||
"created_at" timestamp without time zone NOT NULL,
|
||||
"updated_at" timestamp without time zone NOT NULL,
|
||||
"is_active" smallint NOT NULL DEFAULT 1,
|
||||
"tenant" uuid,
|
||||
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")
|
||||
REFERENCES public."ntf_User" (id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
|
|
|
@ -13,14 +13,8 @@ CREATE TABLE IF NOT EXISTS public."ant_UserContactInfo"
|
|||
"value" character varying(512) COLLATE pg_catalog."default" NOT NULL,
|
||||
"created_at" timestamp without time zone NOT NULL,
|
||||
"updated_at" timestamp without time zone NOT NULL,
|
||||
"is_active" smallint NOT NULL DEFAULT 1,
|
||||
"tenant" uuid,
|
||||
"is_active" smallint NOT NULL DEFAULT 1
|
||||
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")
|
||||
REFERENCES public."ant_User" (id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
|
|
Loading…
Reference in New Issue