J
J
Junior2018-09-26 14:55:39
Social media
Junior, 2018-09-26 14:55:39

What is the principle of adding friends on a social network?

What is the principle of adding friends on a social network?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danny Chase, 2018-09-26
@Dase23

if it’s very rough, then there is a table with a many to many relationship where a link of the user_id to user_id relationship is stored;
when adding to friends, an entry is simply added to this table.

V
Vladislav Lyskov, 2018-09-26
@Vlatqa

something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question