ADD COLUMN contract_po_or_req VARCHAR(36); -- Assuming the primary key in Contract_PO_or_Req is an integer. Adjust the data type if it's different. ALTER TABLE public."Contract" ADD CONSTRAINT ...