Done when
- The diagram shows 7 tables:
users,posts,comments,tags,post_tags,likes,follows. followshas two lines going tousers.- Your schema makes it impossible for a user to like the same post twice. Say which line does that.
- You can answer: why not store tags as a
tags textcolumn onpostsholding'sql, beginner'? Think about how you'd find every post taggedsql, or rename a tag.