For example, a user likes a video. The video has tags for example: United States, war, Syria.
MySQL has a table of labels
id | tag 1 | USA 2 | Siria 3 | war
After the user likes the video, it’s necessary that the tags stick to the user and then add to it, if the user likes another video with the same tags. That is, he liked the video tagged with the United States. And in the database you need to put a user with id 1 fell in love with usa tag 1 time, if he likes it again, then he has fallen in love with this tag 2 times.
How to implement it, what tables need to be done?