language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Visualization of database models

Open ruheni opened this issue 4 years ago • 4 comments

Problem

It's challenging visualizing what your schema would look like when modeling your data in your schema.prisma file. One would have to use an external tool to create ERD diagrams and make reference to it when modifying their schema.

Suggested solution

Offer a user an ERD or tree diagram representing the different database entities and their relationships alongside their schema.prisma file on VS Code.

ruheni avatar Feb 10 '21 08:02 ruheni

We're probably going to tackle this on the Cloud, so we're parking this for now.

martzoukos avatar Feb 10 '21 16:02 martzoukos

https://prisma-erd.simonknott.de/

There is also a generator, @do4gr thinks

tomhoule avatar Sep 23 '21 10:09 tomhoule

Yep: https://github.com/keonik/prisma-erd-generator

janpio avatar Sep 23 '21 19:09 janpio

@ruheni @janpio I have built a solution for this, check it out Prisma editor is a powerful tool to visualize and edit Prisma Schema.

mohammed-bahumaish avatar Mar 23 '23 18:03 mohammed-bahumaish