There are 2 structures. I draw a tree on the client, but I do not know the whole structure in advance, it can constantly change. The idea is that the client himself creates