N to N relation in items in same table

Viewed 443

I am working with Grocery CRUD (PHP library that creates a full functional CRUD) and I have very basic table of users.

id | first_name | last_name

Some of this users are relatives. So I want to have separate relation table that looks like

id | first_users_id | second_user_id | relation_type

How can I add this relation to Grocery CRUD so while I'll be editing user's profile I would select other users that are relatives providing relation type for each of them?

1 Answers
Related