This is a tricky design issue for the application I'm working on. I have two different elements in the application that will use comments. What, but I canβt decide how to create my database.
There are two possibilities. The first is a different comment table for each table that requires comments (normalized path):
movies -> movie_comments
articles -> article_comments
The second way I was thinking about is using a common comment table, and then you have a lot of two relationships for comments and relationships with movies. For instance,
comments
comments_movies (movie_id, comment_id)
comments_articles (article_id, comment_id)
What is your opinion that the best method will be and you can give a good reason that I can decide.
Rjd22