I was wondering if i should create a separate table for likes counter and storing post id and user id for likes.
Ex table: ID, post_id, User_id
or should if put it in users table to keep database clean and small like this:
Ex already existing users_meta table(Wordpress)
User_id, post_likes(meta_value), post_ids(array(2,3,4,5,6))
So whenever user likes a post, just push the post id to specific user's table.
The idea of putting id's in user meta table is. It will keep the database system small and easy for finding if user has liked any post.
Please correct me if i'm wrong!