oskar-anderson / HedgehogDBD

ERD modeling tool for visualizing database diagrams
https://hedgehog-dbd.vercel.app/
MIT License
11 stars 1 forks source link

[feature request] Add relatsionship creation to draw view #21

Closed oskar-anderson closed 11 months ago

oskar-anderson commented 11 months ago

Creating relationships between tables should be possible from the main draw page without having to go to table page. Creating a relation should create a new row named ${targetTableName}_id or ${targetTableName}_id# where # is a number starting from 2 if the previous name was already in use. Relationship creation should show a preview of the relation. Creation begins by dragging from the FK row to the PK table. For now let the relation be many (drag start - source) to one (drag end - target).

oskar-anderson commented 11 months ago

The options for starting node connections are:

I would like to have a context menu on node click, but this requires the right click to be disabled on the draw view, which makes debugging difficult. Might go with a "more actions" button.

oskar-anderson commented 11 months ago

Solved in #24