Displaying 1 result from an estimated 1 matches for "b669a64".
Did you mean:
b669a64e
2006 May 28
3
Association of table to itself
I''m curious what would be the best way to represent people and whether the
person has someone marked as their friend. Here are my thoughts so far:
People table
- id
- name
Relationships table
- person_id
- friend_id
Now my problem is I don''t know how to set up these associations (if this is
even correct). Friend_id would be an id to someone else from the people
table.