© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
1 reply
shultz🇮🇱

relations.ts alway include column name

Currently drizzle does not include the column name in the introspected relation name in
relations.ts
relations.ts
if only one column references a certain table
[tableName]
[tableName]
and not
[tableName]_[columnName]
[tableName]_[columnName]
. This makes the naming unstable as in the future when another column that relates to the same table is added, the first relation name stops making sense. Can I configure drizzle to alway include the column name in the relation name?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Relations include query
Drizzle TeamDTDrizzle Team / help
3y ago
Include count of relations
Drizzle TeamDTDrizzle Team / help
3y ago
Drizzle-zod Include Relations
Drizzle TeamDTDrizzle Team / help
3y ago
Relations mysql Name
Drizzle TeamDTDrizzle Team / help
13mo ago