© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
7 replies
ashishansurkar

how to define postgres schema (other than 'public') while setting up with drizzle-orm/node-postgres

I have this code :
import { integer, serial, text, pgTable } from 'drizzle-orm/pg-core';

export const users = pgTable('prod.users', {
id: serial('id').primaryKey(),
email: text('email'),
});

But getting error : relation "prod.users" does not exist
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Schema not ingested with drizzle-orm/node-postgres
Drizzle TeamDTDrizzle Team / help
3y ago
Migrations not being applied (drizzle-orm/node-postgres/migrator)
Drizzle TeamDTDrizzle Team / help
3y ago
Postgres replication using drizzle orm
Drizzle TeamDTDrizzle Team / help
12mo ago
Convert PostgreSQL to Drizzle ORM
Drizzle TeamDTDrizzle Team / help
2y ago