I am trying to preserve the family tree. Here is the platform I'm using, Zend framework, Mysql, Ajax I was looking for stackoverflow. I came across this post, which is very useful when processing data in terms of objects.
Family Tree Data Structure
I will briefly illustrate my use case. The user can create family members or friends based on several relationships defined in the database. I also have a model for relationships. The user can create family members, such as a divorced spouse, friezes. Max Tree may be deep, that we accept max for children of grandchildren, but it can also expand in width. Brother / sister and their family.
I am looking for an efficient database design for less query time. If I need to use the data structures described above, where should I store them, since they should be a model.
For the presentation, I plan to use visualization: an organization chart from
http://code.google.com/apis/chart/interactive/docs/gallery/orgchart.html#Example
I will summarize what I need
- Database design
- Location of controllers (ajax) and models
- People created by the user will not be other users. just some other data
Yes it is! I will lay out a complete solution on this topic when I complete the project, of course, with the help of expertise u guys
Thanks in advance
EDIT I will do my best to clarify my situation.
, /
Family
ID userid relation id Name
1 34 3
2 34 4
3 34 3
4 34 3
5 34 3
6 34 3
, , - .
, , , , , .. - -.
. .
, , .