Hey! guys is there a way to convert an sql table t...
# sql
r
Hey! guys is there a way to convert an sql table to the supabase ways of doing it?
s
I mean what you have should already work with postgres
I'm not sure what your question is because you only posted a SQL for creating a table
r
It is about creating policies around those tables
s
But a table like that wouldn't be used unless you aren't making use of Supabase Auth
r
I am making use of supabase auth as well
s
Maybe if you state what you are trying to accomplish it will be easier to assist you
r
I was thinking to just use Prisma to get things started but then I will be missing out on the Supabase auth
Well, I wanna create a Wattpad-like site and want to use Supabase to help with that.
s
I meant what are you trying to accomplish with the table schema you posted?
r
I want to implement a role base ACL and also wanna use Supabase Auth as my auth method
Are you there?
s
You can just create a roles table then and another table with users_roles, then you can use RLS to check against that table to know if a user has certain access rights to certain data
r
Thanks