alter table "LabMainDetail"
add column "ModulesMasterId" int,
add CONSTRAINT "LabMainDetail_ModulesMasterId_fkey" FOREIGN KEY ("ModulesMasterId")
        REFERENCES public."ModulesMaster" ("ModulesMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION ;
        
---------------------------------------------------------------------------
alter table "ScanTestMaster"
add column "ModulesMasterId" int,
add CONSTRAINT "ScanTestMaster_ModulesMasterId_fkey" FOREIGN KEY ("ModulesMasterId")
        REFERENCES public."ModulesMaster" ("ModulesMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION ;
----------------------------------------------------------------------------
alter table "Surgery"
add column "ModulesMasterId" int,
add CONSTRAINT "Surgery_ModulesMasterId_fkey" FOREIGN KEY ("ModulesMasterId")
        REFERENCES public."ModulesMaster" ("ModulesMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION ;
----------------------------------------------------------------------------
alter table "Room"
add column "ModulesMasterId" int,
add CONSTRAINT "Room_ModulesMasterId_fkey" FOREIGN KEY ("ModulesMasterId")
        REFERENCES public."ModulesMaster" ("ModulesMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION ;
------------------------------------------------------------------------------