Since Prisma hasn't introduced any solution for this matter yet, used this awesome package Prismix and solved the issue. Thanks, everyone!

Answer from Farhaan Mahbub on Stack Overflow
🌐
Prisma
prisma.io › home › multi-schema › multi-schema › multi-schema › multi-schema
How to use Prisma ORM with multiple database schemas | Prisma Documentation
To use multiple database schemas in your Prisma schema file, add the names of your database schemas to an array in the schemas field, in the datasource block.
🌐
Prisma
prisma.io › blog › organize-your-prisma-schema-with-multi-file-support
Organize Your Prisma Schema into Multiple Files
June 4, 2024 - Prisma ORM lets you organize your Prisma Schema into multiple files. You split your models across as many .prisma files as you like, relations work across files without any imports, and Prisma combines everything when you run prisma generate ...
Discussions

Multiple Prisma connections and schemas
Question Good morning, I have a project that I am developing that needs to deal with multiple databases, initially two, both Sql Server: Database 1: Server=database1;Database=tesla1;User Id=sa;Pass... More on github.com
🌐 github.com
2
1
May 21, 2024
I would like to use multiple schema files
Problem I have a very large project with many models(100+). It is a very big disadvantage finding that I can't be able to view models very well because they are very many. Suggested solution I ... More on github.com
🌐 github.com
4
4
July 8, 2024
Prisma adds support for multiple schemas and table views!!
I've had this setup for a few weeks and it works well. The only thing I wish I could change is that the Auth/Storage schemas have so many tables that aren't needed for the work we would do with them. I really only need the `users` table from the auth schema. It clutters up the codebase. More on reddit.com
🌐 r/Supabase
9
8
February 3, 2023
node.js - Prisma: Query across multiple schemas in a database - Stack Overflow
Does prisma support the ability to fetch data from multiple schemas from within a single database? More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › prisma › prisma › discussions › 24247
Multiple Prisma connections and schemas · prisma/prisma · Discussion #24247
May 21, 2024 - To work with multiple databases, you can create separate schema files for each database. In each schema file, you define the datasource with the respective database connection string.
Author   prisma
🌐
Medium
medium.com › @joydip007x › how-to-use-multiple-schema-in-prisma-40cc6b6f8d9c
How to Use Multiple Schema with Prisma Database | Medium
July 7, 2023 - How to use MultiSchema Databases in Prisma , connect Multiple Databases using PrismaSplit in Subschemas or model, use Multiple Schemas Models Databases.
🌐
Prisma
prisma.io › home › overview of prisma schema › overview of prisma schema › overview of prisma schema
Prisma schema | Prisma Documentation
It is typically a single file called schema.prisma (or multiple files with .prisma file extension) that is stored in a defined but customizable location.
Find elsewhere
🌐
DEV Community
dev.to › 0xtanzim › splitting-prisma-schema-into-multiple-files-a-simple-guide-ni1
Splitting Prisma Schema into Multiple Files: A Simple Guide - DEV Community
March 3, 2025 - Today, I want to share a solution I found for a common problem with Prisma. By default, Prisma uses just one file called schema.prisma to store all your database models. This can get messy when your project grows. I figured out how to split it into multiple files, and I'll show you how to do it step by step.
🌐
GitHub
github.com › joydip007x › Prisma-MultiSchema
GitHub - joydip007x/Prisma-MultiSchema: Organized Multi-Schema support for Prisma · GitHub
Prisma normally limits your schema to one file, but with prisma-multischema, you can write multiple prisma schema files in an organized manner without any restrictions.
Starred by 91 users
Forked by 4 users
Languages   TypeScript 93.5% | JavaScript 6.5%
🌐
Reddit
reddit.com › r/supabase › prisma adds support for multiple schemas and table views!!
r/Supabase on Reddit: Prisma adds support for multiple schemas and table views!!
February 3, 2023 -

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

🌐
Atomic Spin
spin.atomicobject.com › multiple-prisma-schemas
How and When to Use Multiple Prisma Schemas - Atomic Spin
March 6, 2023 - This command will correctly error if the actual database doesn’t match the more restrictive read schema. Use Prisma to compare two schema files and generate a script that migrates a database from one to the other.
🌐
YouTube
youtube.com › watch
Using Multiple Prisma Schema Files - YouTube
Starting at Prisma 5.15, we can now split our schemas up into multiple files. This is useful for scenarios where different team members are working on differ...
Published   January 8, 2025
🌐
DevGenius
blog.devgenius.io › splitting-prisma-schema-into-multiple-files-a-simple-guide-0e28da7c5cd7
Splitting Prisma Schema into Multiple Files: A Simple Guide | by Tanzim Hossain | Dev Genius
October 10, 2025 - Today, I want to share a solution I found for a common problem with Prisma. By default, Prisma uses just one file called schema.prisma to store all your database models. This can get messy when your project grows. I figured out how to split it into multiple files, and I'll show you how to do it step by step.
🌐
YouTube
youtube.com › watch
Using Multiple Prisma Schema Files in Prisma 7 - YouTube
Prisma 7 is here! This is how you can use multiple schema files in your codebase.To learn more about everything included in this major release of *Prisma ORM...
Published   January 28, 2026
🌐
JetBrains
youtrack.jetbrains.com › projects › WEB › issues › WEB-58857 › Prisma-multiple-database-schemas-support
Prisma: multiple database schemas support : WEB-58857
generator client { provider = "prisma-client-js" previewFeatures = ["multiSchema"] } datasource db { provider = "postgresql" url = env("DATABASE_URL") schemas = ["base", "transactional"] } model User { id Int @id orders Order[] @@schema("base") } model Order { id Int @id user User @relation(fields: [id], references: [id]) user_id Int @@schema("transactional") }
🌐
Prisma
prisma.io › home › multiple databases › multiple databases › multiple databases
How to use Prisma ORM with multiple databases in a single app | Prisma Documentation
In this guide, you learned how to use multiple databases using Prisma ORM in a single Next.js app by: Setting up separate Prisma schemas for user and post databases.
🌐
GitHub
github.com › prisma › prisma › issues › 24491
Prisma Multiple Schema Migrations · Issue #24491 · prisma/prisma
June 11, 2024 - I splitted my existing scheme with already applied migrations, I decided to check what would happen if I called the command npx prisma migrate dev --create-only --skip-generate --schema prisma There are no changes to the models. As a res...
Author   prisma
🌐
GitHub
github.com › prisma › prisma › discussions › 24413
Preview feature feedback: `prismaSchemaFolder`, Multi-file Prisma Schema · prisma/prisma · Discussion #24413
... @batusekerci If you use several different schemas inside the same folder, you should run your migrate/generate command multiple times, pointing them to corresponding folder each time, for example:
Author   prisma