ALTER TABLE STOR.T_PAYMENT_TYPE ADD "ehrrusmdr308" integer NULL;
ALTER TABLE STOR.T_PAYMENT_TYPE ADD CONSTRAINT FK_T_EHR_RUS_MDR308_T_PAYMENT_TYPE_EhrRusMdr308
FOREIGN KEY("ehrrusmdr308") REFERENCES EHR.T_EHR_RUS_MDR308 (EhrRusID);

ALTER TABLE STOR.T_STORAGE ADD "ehrrusmdr308" integer NULL;
ALTER TABLE STOR.T_STORAGE ADD CONSTRAINT FK_T_EHR_RUS_MDR308_T_STORAGE_EhrRusMdr308
FOREIGN KEY("ehrrusmdr308") REFERENCES EHR.T_EHR_RUS_MDR308 (EhrRusID);

ALTER TABLE STOR.T_SUPPLIER_CONTRACT_ABR ADD "ehrrusmdr308" integer NULL;
ALTER TABLE STOR.T_SUPPLIER_CONTRACT_ABR ADD CONSTRAINT FK_T_EHR_RUS_MDR308_T_SUPPLIER_CONTRACT_ABR_EhrRusMdr308
FOREIGN KEY("ehrrusmdr308") REFERENCES EHR.T_EHR_RUS_MDR308 (EhrRusID);

ALTER TABLE STOR.T_ACCOUNTING_SYSTEM ADD "ehrrusmdr308" integer NULL;
ALTER TABLE STOR.T_ACCOUNTING_SYSTEM ADD CONSTRAINT FK_T_EHR_RUS_MDR308_T_ACCOUNTING_SYSTEM_EhrRusMdr308
FOREIGN KEY("ehrrusmdr308") REFERENCES EHR.T_EHR_RUS_MDR308 (EhrRusID);

ALTER TABLE STOR.T_WRITE_OFF_REGISTRATORS_DICTIONARY ADD "ehrrusmdr308" integer NULL;
ALTER TABLE STOR.T_WRITE_OFF_REGISTRATORS_DICTIONARY ADD CONSTRAINT FK_T_EHR_RUS_MDR308_T_WRITE_OFF_REGISTRATORS_DICTIONAR_9FCBA7A2
FOREIGN KEY("ehrrusmdr308") REFERENCES EHR.T_EHR_RUS_MDR308 (EhrRusID);