amitsolanki24_'s avatar

Tabel structure for hashtags belongs to posts

Hey, I'm facing a problem should I create separate table for storing hashtags belongs to post and hashtags belongs to comment or should I create single for both like this

post_comment_hashtags {
 post_id, // primary key 
comment_id, // primary key 
hashtag_id, // primary key
}

And what is the best way to store both? Please guide me.

0 likes
1 reply

Please or to participate in this conversation.