Hey, I had a question around best practice. So we ...
# orm-help
a
Hey, I had a question around best practice. So we have a few different services that interact with our DB using prisma. We haven't yet started using
prisma migrate
and currently we use sequelize migrations to make changes to our DB. So whenever we need to make a change to our DB our process is: • Run sequelize migrate • run prisma introspect manually on all our services that use prisma & commit I am just wondering if there's a better way to do this? (eg: Should we be generating our prisma schemas on build time?)
j
Build time would be to late, as you want to write the queries with proper auto completion and type safety of course.
You could think of extracting the Prisma schema and generated CLient into an internal Npm package or something like that, which is used across many projects.
a
Yup, the internal npm package approach sounds really good, thank you! 🙂