I'm building a website that contains articles, these articles won't be shown until the user is logged in, I'm planning to add two buttons, the first one is called "follow this article", the second is meant to make the article as a favourite. My question is how can I structure that in my database?
Should I just add a table that contains id_article
, id_user
, followed(1 or 0)
and favourite (1 or 0)
, or is there another solution that would let me economize more memory space?
NOTE: My website will have lots of articles that will be visited by a lot of users.