Skip to content

Entity Relationship Diagrams only support single relationships to a primary key. #1100

@Mills-2

Description

@Mills-2

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)

No Error associated

Screenshots

If applicable, add screenshots to help explain your problem.

Image

Logs

If available, paste relevant logs from the Output panel (View > Output > DBCode).


Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions