Added delete cascade constraints for resources