© 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
A_Dev
reference composite primary key
I have a table with a composite primary key
. I
’m using the return object to make it by passing in the columns to primaryKey
. How do I then use that as a foreign key in a child table
? I tried referencing the return object but that doesn
’t work
.
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
Composite Primary Key?
DT
Drizzle Team / help
16mo ago
How to reference to composite primary key
DT
Drizzle Team / help
9mo 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