db-schema-visualizer
db-schema-visualizer copied to clipboard
Implicit m-n relationships
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.