Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
how to define field w/ postgres IDENTITY? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
2 replies
firxworx
how to define field w/ postgres IDENTITY?
I am trying Drizzle out for the first time
. I thought to flex the quick start with realistic production user table schema
.
I can
't find anywhere
(including searching GitHub for examples
) how to define the following field
?
?
id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY
id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY
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
Similar Threads
Where to define Postgres Triggers?
DT
Drizzle Team / help
2y ago
how to define array relations ?
DT
Drizzle Team / help
3y ago
how to define postgres schema (other than 'public') while setting up with drizzle-orm/node-postgres
DT
Drizzle Team / help
3y ago
how to define relations for friendship?
DT
Drizzle Team / help
2y ago