-- 1.1.7 Power.TechnologicalConnection
-- Расширение модели SealAccounts
alter table SealAccounts add WitnessId int
alter table SealAccounts add AttachId int
GO
ALTER TABLE SealAccounts
	ADD FOREIGN KEY (AttachId) 
		REFERENCES StoreDocuments (DocumentID)
		ON DELETE CASCADE

