Bug Description
If you add explicit mappings from a primary key to multiple tables the Entity Relationship Diagram will only show one of the relationships.
Repro steps
Create a DB with 3 tables.
product, product_bundles, product_reviews
product has columns id and itemid, product_bundles has id and hero_itemid and then product_reviews has id, rating, review_text, itemid.
If you draw explicit mapping between product.itemid -> product_bundles.hero_itemid, product.itemid -> product_reviews.itemid then it will only show one of the relationships in the diagram.
Expected Behavior
Multiple relationships should be able to be drawn between a primary key and that should show on the ERD.
Actual Behavior
Only one relationship is shown.
Environment
Version: 3.2.21 (Universal)
VSCode Version: 1.105.1
Commit: 806df57ed3b6f1ee0175140d38039a38574ec720
Date: 2026-05-03T01:46:14.413Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0
- DBCode version: 1.31.1
- VS Code (or fork) version: 1.105.1 (using Cursor)
- OS: MacOS
- Database: Postgres
- Connection: (direct/SSH/SSL): SSH
Error Mesages (if applicable)
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
If available, paste relevant logs from the Output panel (View > Output > DBCode).
Bug Description
If you add explicit mappings from a primary key to multiple tables the Entity Relationship Diagram will only show one of the relationships.
Repro steps
Create a DB with 3 tables.
product, product_bundles, product_reviews
product has columns id and itemid, product_bundles has id and hero_itemid and then product_reviews has id, rating, review_text, itemid.
If you draw explicit mapping between product.itemid -> product_bundles.hero_itemid, product.itemid -> product_reviews.itemid then it will only show one of the relationships in the diagram.
Expected Behavior
Multiple relationships should be able to be drawn between a primary key and that should show on the ERD.
Actual Behavior
Only one relationship is shown.
Environment
Version: 3.2.21 (Universal)
VSCode Version: 1.105.1
Commit: 806df57ed3b6f1ee0175140d38039a38574ec720
Date: 2026-05-03T01:46:14.413Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.4.0
Error Mesages (if applicable)
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
If available, paste relevant logs from the Output panel (View > Output > DBCode).