Hi,
I completely understand the requirement by having a look at your provide wire frame, and surprisingly I have already implemented such functionality in one of my projects.
This is parent child relation which we need to implement and display as treeview.
super parent cannot have any parent while it would have null value, but once a node would have a parent then it would have its reference id.
I would completely implement this and provide you a complete project.
now hoping from you to value my time in understanding and describing you the requirement and business flow by awarding this project from you.
with best regards
Abubakar