What would be your suggestion/better alternatives?...
# orm-help
r
What would be your suggestion/better alternatives? Especially considering further migration to Prisma2. I would be much appreciated 🙏
a
with prisma 2 you can change schema.prisma path so you can define one file for two services ??
r
the services are located in separated repositories, I am not sure if this would work
would you recommend to extract Prisma-related stuff into a separate library and import the client into each of the services?
r
Hey @RoMay 👋 Yes one approach you could take as you have separate repos is to create a library specific for the Prisma models and generate and then import that into respective repos. Another approach that you could be interested in would be workspaces (if you want to add it in a single repo).
🙏 1
👍 2
r
thanks @Ryan, I'll migrate the prisma schema and generated files into a separate library
👍 2
and come back with first results
👍 2