Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Normal Form
Roughly speaking, likes are a many-to-many relationship between articles and users. If you need to store additional information (like the time the user liked), then an intermediate table is entered and linked to both users and articles.
remembering the last question of this user, I will say the following:
Yes, each article needs its own table with likes :D
All the best =)
article_likes
id | user_id | article_id
SELECT user_id FROM article_likes WHERE article_id=x
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question