PostgreSQL and Drizzle ORM Match database work to the project's installed API and deployment context. The user's explicit instructions take precedence over this skill's guidelines. Establish the database contract Use the relevant schema/query, migration history, and requested behavior as input. For Drizzle code, inspect installed / versions and the driver; for SQL, establish the PostgreSQL version when a version-specific feature matters. The references cover PostgreSQL 17/18 and distinguish Drizzle's 0.x API from the v1 API. Do not mix them or infer the installed API from an npm dist-tag. Whe…