[SOLVED] Need help with RLS/SQL
I have 4 tables:
What whould be the best approach to achieve this?
- userprofile
- blog (part of a user)
- posts (part of a blog)
- likes (part of a post)
- I am following a blog of the user: Now I want to see this blog appear on their profile
- I am not following a blog: now I do not see any blogs, this should be private.
What whould be the best approach to achieve this?