This has now been implemented: https://www.prisma.io/blog/organize-your-prisma-schema-with-multi-file-support
node.js - Prisma split schema into multiple file - Stack Overflow
Prisma adds support for multiple schemas and table views!!
Is it possible to use prisma schema with multiple files?
Support for splitting Prisma schema into multiple files
I was reading through Prisma release notes for versions 4.8.0 and 4.9.0 (as you do), and I saw that they have released support for both views and multiple schemas! This has long been an issue for those of us who have wanted to use Prisma with Supabase, but we've always had to to do hacky things to make it work around Supabase's `auth`, `storage`, and other schemas.
These features are behind preview flags for now, but I'm super excited to see this support coming to the library! Leave a comment if you've been able to test this out at all - I might hack on it a bit this weekend, myself.
https://www.prisma.io/docs/guides/database/multi-schema
https://www.prisma.io/docs/concepts/components/prisma-schema/views
https://github.com/prisma/prisma/releases
There is an open discussion on the prisma repo regarding this but it doesn't look like it will be implemented any time soon, is there a workaround for the meantime? I saw people using a utility function to cat everything into one file but I will lose editor formatting and autocompletion from the prisma extension