Friend Relation

For friend relations, would it be best to have a one-to-many relationship (between Users to Users) or a separate table containing fromUser and toUser (either id or one-to-one)?

Hi Dorper,

I would keep things as simple as you can (but nor simpler, of course…)) ), that is between Users to Users.

Regards,
Mark

Hi @Mark Piller,

Could you give us sample how to build friend relation between user ?
What I need is like :
User --> friend relation --> User
In friend relation, there are columns like :
SendTo
RequestFrom
Status
I’m using ionic2 and using REST api.
Could you give us guide how to do that ?
Thanks in advance.

Regards,
Sun Ciu