I have a User model which can have many child accounts. I have set up the model as below
User
class User < Appli