Currently I have a huge SQL script that I copy&paste and run in SB SQL Editor to (re)create our entire DB schema, including tables, FKs, indexes etc.
I want to replace this hardcoded SQL script (as much as possible) with something more dynamic, so I can:
1) (Re)create the schema programmatically (e.g. by generating SQL from JSON and executing via
pg
pg
)
2) Extend it with some access control rules (RBAC) for checking on the server-side code (e.g. which user role can insert/update which tables and columns) We tried Postgresql RLS, but it doesn't work for us
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.