© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
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 Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Schema not ingested with drizzle-orm/node-postgres
DT
Drizzle Team / help
3y ago
Migrations not being applied (drizzle-orm/node-postgres/migrator)
DT
Drizzle Team / help
3y ago
Postgres replication using drizzle orm
DT
Drizzle Team / help
12mo ago
Convert PostgreSQL to Drizzle ORM
DT
Drizzle Team / help
2y ago