API with NestJS #174. Multiple PostgreSQL schemas with Drizzle ORM
Briefly

Using multiple schemas in PostgreSQL provides a powerful way to organize database objects, enhancing clarity and maintainability of complex systems while improving access control.
By default, PostgreSQL uses the current user's name as the schema name, allowing for easy organization of database objects according to user roles and responsibilities.
The Drizzle ORM streamlines the usage of schemas by automatically appending schema names to table names in migrations, simplifying the process of managing multiple tables in various schemas.
When using the Drizzle ORM with PostgreSQL, turning on the logger can provide insights into how schema names are prefixed to SQL queries, enhancing debugging capabilities.
Read at Marcin Wanago Blog - JavaScript, both frontend and backend
[
|
]