Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Do I need a foreign key? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
2 replies
oxmaster
Do I need a foreign key?
I read that the foreign key is needed at the database level
, and the relations at the application level
. That
's the question
. When designing
, is it necessary to write a foreign key
, or is it enough that at the application level
?
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
How do I define a composite foreign key?
DT
Drizzle Team / help
3y ago
foreign key
DT
Drizzle Team / help
3y ago
How to do a foreign key with cascades
DT
Drizzle Team / help
2y ago
foreign key mismatch
DT
Drizzle Team / help
2y ago