CREATE TABLE public."IdProof"
(
    "IdProofId" bigserial NOT NULL,
    "IdProofName" character varying(255) ,
    
	"LocationId" integer,
    "Active" boolean DEFAULT true,
    "CreatedBy" bigint NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "ModifiedBy" bigint,
    "ModifiedDate" timestamp without time zone,
    CONSTRAINT "IdProof_pkey" PRIMARY KEY ("IdProofId"),
	CONSTRAINT "FK_IdProof_CreatedBy" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
        NOT VALID,
    CONSTRAINT "FK_IdProof_ModifiedBy" FOREIGN KEY ("ModifiedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
        NOT VALID,
	 CONSTRAINT "IdProof_LocationId_fkey" FOREIGN KEY ("LocationId")
        REFERENCES public."Location" ("LocationId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)
-------------------------------------
INSERT INTO "LogType" ("LogTypeId", "LogTypeName", "Active")
VALUES (51, 'IdProof',true);