Tag, comment, rating, etc. database design

Posted by Efe Kaptan on Stack Overflow See other posts from Stack Overflow or by Efe Kaptan
Published on 2009-07-28T16:00:29Z Indexed on 2010/05/15 3:34 UTC
Read the original article Hit count: 319

Filed under:
|
|
|
|

I want to implement modules such as comment, rating, tag, etc. to my entities. What I thought was:

comments_table -> comment_id, comment_text

entity1 -> entitity1_id, entity1_text

entity2 -> entitity2_id, entity2_text

entity1_comments -> entity1_id, comment_id

entity2_comments -> entity2_id, comment_id

....

Is this approach correct?

© Stack Overflow or respective owner

Related posts about tag

Related posts about comment