ALTER TABLE TCApplicationAttachments
	ADD FOREIGN KEY (TCApplicationID) 
	REFERENCES TCApplications (TCApplicationID)
	ON DELETE CASCADE

ALTER TABLE TCApplicationAttachments
	ADD FOREIGN KEY (AttachmentTypeID)
	REFERENCES TCApplicationAttachmentTypes (TCApplicationAttachmentTypeID)
