I'm working on a system of likes but things are very confusing, I have the Post table (The content to be tanned) with the following columns
|ID|TITLE|CONTENT|LIKES|
In the LIKES
column, whenever a user presses the enjoy button, +1 is added to the current number, but I need to save every post that the user liked, this is a table to know which posts each user liked, to change the style of the button and signaling that he already liked the Post and even so he can "undo" the post. At first I thought about creating a table with the one column for the user ID and one column for each Post and set false for unkempt and true for tanned, but of course this would be impractical as there are many posts, so what is the best way to do this!