hi, i started with prisma in a few day and i realized that all the prisma model is in a file.
Is there any way to support for splitting prisma model into multiple file?
Unfortunately, Prisma does not officially support this functionality
n
nguyễn thiện
09/09/2022, 3:45 AM
Does prisma not support for spiltting prisma model into multiple file?
r
Raphael Etim
09/09/2022, 5:13 AM
Hi @nguyễn thiện 👋
We currently have this feature on the roadmap as can be seen here. However, you could use third party tools like the one Jarupong shared or you could also use this other third party tool
n
nguyễn thiện
09/09/2022, 9:14 AM
@Jarupong
Thanks for your advise.
can you hint to me some way to use relationship into prismerge
Because i use model users in a file
and model roles in a file. But they got error and i can’t find anything to resolve them.
d
David Hancu
09/10/2022, 8:35 AM
Hi @nguyễn thiện!
For full transparency, I'm the maintainer of Prisma Util. Prisma Util (the tool recommended by @Raphael Etim) supports relations and helps you resolve name conflicts across files.
Let me know how it works for you!