Reputation: 2122
I have tables: user, comment and post, say:
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
Upvotes: 0
Views: 97
Reputation: 28762
I think your approach is good, but you should also establish a tbl_user: 1..n Comment
relationship (assuming not only the owner of a post can make a comment) to identify the relationship between the comment and its owner.
Upvotes: 2