Schema-driven
Define tables, columns, constraints, and behavior in a single JavaScript object. pg-schemata generates DDL, ColumnSets, and Zod validators from it.
Define your schema once. Get CRUD, migrations, validation, and multi-tenancy — all built on pg-promise.
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.