Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with ref & sql generation #542

Open
xerosanyam opened this issue Mar 22, 2024 · 1 comment
Open

problem with ref & sql generation #542

xerosanyam opened this issue Mar 22, 2024 · 1 comment

Comments

@xerosanyam
Copy link

xerosanyam commented Mar 22, 2024

Hi team, I found some issues:

1. sql generation:

the following markup

ref: remfo.cards.user_id - auth.users.id

generates following sql:

ALTER TABLE "auth"."users" ADD FOREIGN KEY ("id") REFERENCES "remfo"."cards" ("user_id");

This is confusing.
I feel the table we are altering should come first as it will resemble the sql query more.

2. dbdiagram should show an arrow

for syntax:

ref: remfo.cards.user_id - auth.users.id

I find following more informative:
image

than:
image
(look at the arrow)

@huyphung1602
Copy link
Collaborator

Hi @xerosanyam,

I am Huy Phung from the dbdiagram team.

Thank you for sharing your concerns and suggestions. We're discussing it.
We'll be back when there's an update.

Have an enjoyable weekend!

Best regards
Huy Phung

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants