I have a comment table on my blog.
comment
- id (PK)
- post_id (FK)
- user_id (FK)
- comment
Should I split into 3 tables and do it like this?
comment
- id (PK)
- comment
user_comment
- comment_id (PK, FK)
- user_id (PK, FK)
post_comment
- post_id (PK, FK)
- comment_id (PK, FK)
Would this be a better design? Any other suggestion is welcomed.
Your original design is perfect; it models what is actually going on.
Also, it’s good to avoid schema bloat.