3 ms·
The PostgREST documentation makes it pretty clear that for decoupling and security reasons the data schema should be separated from the API schema. You should o
by taffer 6y ago
The PostgREST documentation makes it pretty clear that for decoupling and security reasons the data schema should be separated from the API schema. You should only provide the client with views and functions and keep all data in a separate schema. This also solves the versioning problem, because if your API schema is separate from your data, you can simply drop and re-create the entire schema for deployment without needing migrations.