Reseller business model

while exploring the features of ERPNext
I want to create a hierarchical model in accounting module
As there is a reseller under him there are various golf coaches who will convince their players to take our package and the participant will make the payment in retun.

This is a hierarchical tree model

I am able to create the reseller and the respective commission & I want to add various coaches and their details under that reseller.
Because once the product is sold by the reseller to the coach and coach sells it to their players we will be able to calculate commissions for resellers and coaches based on the % we decide and roll out the commissions in their banks

Please suggest how can I achieve this requirement.
It’s urgent!