I have tables: user, comment and post, say:
- A user can have many posts and comments
- A post can have many comments
- A comment can only be written by one user, and can only be in one post
So, how can I make the relations between those tables, in way that results in no closed relation.
this is what I did :
tbl_user 1 ------ n Post
tbl_post 1--------n Comments
I think your approach is good, but you should also establish a
tbl_user: 1..n Commentrelationship (assuming not only the owner of a post can make a comment) to identify the relationship between the comment and its owner.