© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
johtso

Monorepo and schemas, how to structure

I was wondering if anyone had any advice/thoughts on how best to structure a monorepo project when it comes to schemas. I currently have a single "database" package that has all my schemas and migrations.

Is there a "better" way to do it?

It seems wrong to have the schemas separate form the package that it relates to, but at the same time it seems simpler than trying to figure out a way to manage schemas and migrations across multiple packages..
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

How do you structure your schemas?
Drizzle TeamDTDrizzle Team / help
3y ago
How to put Drizzle schemas in shared folder (monorepo) and have api's drizzle.config recognize them
Drizzle TeamDTDrizzle Team / help
2y ago
visualizing schemas and relationships
Drizzle TeamDTDrizzle Team / help
13mo ago
Separate schemas and migrations
Drizzle TeamDTDrizzle Team / help
2y ago