Master data: how to create a tree data structure from one main data input

I am struggling with model development coreDatawhere I have only one type of recording called "To-Do". Each To-Do entry has a relationship of 0, 1, 2, ... or n to other (auxiliary) entries, just like To-Do. Thus, the relationships between To-Do articles create a tree structure with the number of undefined children nodes. The following figure should illustrate the case (E = kernel data entry):

            E                            
           /|\                        
          / | \                       
         E  E  E                     
        / \               
       /   \         
      E     E               
     /|\                   
    E E E          

My assumption was to model such data as shown in the following graph. I did not choose the feedback, because Xcode made many, many relationships out of it that do not match the design of the tree.

enter image description here

data model inspector -, " ". , , , "To-Do-Child" . , ...

:

  • ? ?

  • To-Do node?. , To-Do , .

+5
1

, parent ( - ), .

nil .

, childToDos, . , .

+3

All Articles