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

Implicit m-n relationships

Open UltraMarco opened this issue 9 months ago • 0 comments

This extension is great and I feel sorry to report something that is not working as expected. I have some implicit m-n relationships in my prisma.schema for a MySql database, but the generated diagram doesn't reflect them. It shows the tables alone, without any link. E.g. many people having/sharing multiple contact information (phone, address, email, ...).

model Person {
  // ...
  contacts Contact[]
}

model Contact {
  // ...
  people Person[]
}

The generated diagram should show m-n relationship between Person and Contact either as a simple link, or displaying the underlying join table.

UltraMarco avatar Mar 07 '25 12:03 UltraMarco