Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Enforcing DB level foreign keys - Drizzle Team
DT
Drizzle Team
•
2y ago
•
1 reply
Wiznet
Enforcing DB level foreign keys
Hey guys
, I
've read the docs on the relation key word and the docs note that the relations are only on the application level
. How can we create foreign key relations via the schema that are enforced on the DB 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
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
circular foreign keys
DT
Drizzle Team / help
3y ago
Handling self referencing foreign keys
DT
Drizzle Team / help
3y ago
Composite Primary Key from Foreign Keys
DT
Drizzle Team / help
3y ago
Default non-clustered index for foreign keys.
DT
Drizzle Team / help
3y ago