db-schema-visualizer icon indicating copy to clipboard operation
db-schema-visualizer copied to clipboard

Add support for multiple-file prisma schema

Open phyrasaur opened this issue 1 year ago • 3 comments

Issue: My models are in separate files from schema.prisma I am using Prisma's new feature where we can separate models to different files for better organisation. When I open the visualizer on prisma.schema I got an empty view. When I open the visualizer on a specific model.prisma, I get just the table for that model

Request: View all tables on prisma.schema I want to view all models from all files in schema folder when I open the visualizer from prisma.schema

References Multi-file Schema | Prisma Docs

phyrasaur avatar Jan 24 '25 05:01 phyrasaur

I tried adding this feature and submitted a Pull Request.

https://github.com/BOCOVO/db-schema-visualizer/pull/76

togo01 avatar Feb 07 '25 05:02 togo01

Thank you, @togo01, for the PR. I'll check it out during the week.

BOCOVO avatar Feb 11 '25 22:02 BOCOVO

Any updates on this? I've migrated my code to multi file schema.

kennarddh avatar Jun 08 '25 07:06 kennarddh