ALTER TABLE [STOR].[T_PAYMENT_TYPE] ADD [EhrRusMdr308] int NULL
GO
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])
GO

ALTER TABLE [STOR].[T_STORAGE] ADD [EhrRusMdr308] int NULL
GO
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])
GO

ALTER TABLE [STOR].[T_SUPPLIER_CONTRACT_ABR] ADD [EhrRusMdr308] int NULL
GO
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])
GO

ALTER TABLE [STOR].[T_ACCOUNTING_SYSTEM] ADD [EhrRusMdr308] int NULL
GO
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])
GO

ALTER TABLE [STOR].[T_WRITE_OFF_REGISTRATORS_DICTIONARY] ADD [EhrRusMdr308] int NULL
GO
ALTER TABLE [STOR].[T_WRITE_OFF_REGISTRATORS_DICTIONARY] ADD CONSTRAINT [FK_T_EHR_RUS_MDR308_T_WRITE_OFF_REGISTRATORS_DICTIONARY_EhrRusMdr308]
FOREIGN KEY([EhrRusMdr308]) REFERENCES [EHR].[T_EHR_RUS_MDR308] ([EhrRusID])
GO