© 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
•
16mo ago
•
1 reply
Tristan
Composite Primary Key?
In the latest versions
, what would be the correct third argument of a pgTable for composite primary key
?
'
'
'
(t
)
=
>
[
primaryKey
(
"ContactToCompany
_contactId
_companyId
"
)
.on
(
t
.contactId
,
t
.companyId
,
)
,
]
,
'
'
'
gets underlined unfortunately
.
.
.
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
reference composite primary key
DT
Drizzle Team / help
3y ago
Composite primary key, multiple primary keys
DT
Drizzle Team / help
2y ago
Compostie primary key of a composite primary key
DT
Drizzle Team / help
2y ago
composite primary key migration fail
DT
Drizzle Team / help
12mo ago