Skip to content

pg-schemataPostgreSQL-first ORM for Node.js

Define your schema once. Get CRUD, migrations, validation, and multi-tenancy — all built on pg-promise.

Why pg-schemata

pg-schemata is designed for Node.js applications that use PostgreSQL directly and want structured table access without a heavy ORM. You define your schema as a JavaScript object, extend TableModel, and get a fully featured repository with validation, audit trails, and safe query building — all backed by pg-promise.

Documentation map

A lightweight Postgres-first ORM layer.