How to share Drizzle schema in multiple projects?
Hi,
I have an Express.js application running with Drizzle ORM. The schemas are defined and migration are generated in this repository, no problem.
and now I'm going to have another application written in Next.js and it is going to access the same database. How can I share the Drizzle schema in multiple projects?
Currently, I'm duplicating the Drizzle's schema from the previous Express.js application repository and make sure I don't run the migration. Do you have a better suggestion?
I have an Express.js application running with Drizzle ORM. The schemas are defined and migration are generated in this repository, no problem.
and now I'm going to have another application written in Next.js and it is going to access the same database. How can I share the Drizzle schema in multiple projects?
Currently, I'm duplicating the Drizzle's schema from the previous Express.js application repository and make sure I don't run the migration. Do you have a better suggestion?