I have a two variants of DB structure.
First:
Here is one comments table, and two special table 'news_comments' and 'photos_comments' which connect comment with material.
Second variants:
Here only 3 tables, without connector tables, but table comments have a special field 'type', which will be used with query.
For example: SELECT * FROM comments WHERE type = 'news';
Question: I don't know which variant is better. I think second, but is it correct?