I have the following code which shows a self referencing many to many relationship. A survey can have a dependency on another survey. We have some dependency types (Manual, OnCo