Jenaro Calvino
06/10/2022, 11:03 PMNeedle
06/10/2022, 11:03 PMgaryaustin
06/10/2022, 11:16 PMselect using (
is_public = true OR auth.uid() in (
select user_id from plans_on_users
where plan_id = id
)
)
If you are really using capital letters then all the names in double quotes like "isPublic". Unless you are being forced to by something like Prisma, it is a bad idea to use caps in Postgres.Jenaro Calvino
06/10/2022, 11:17 PMJenaro Calvino
06/10/2022, 11:19 PMgaryaustin
06/10/2022, 11:24 PMJenaro Calvino
06/10/2022, 11:42 PM