ALTER TABLE SMRWorksExecutors
	ADD FOREIGN KEY (ExecutorID)
	REFERENCES Персонал (Код_работника)
	ON DELETE CASCADE
	
ALTER TABLE SMRWorksExecutors
	ADD FOREIGN KEY (ApplicationID)
	REFERENCES PIRAndSMRWorks (ApplicationID)
	ON DELETE CASCADE
