Skip to content

[FEATURE] Explicit Foreign Key Visualization & Validation #1008

@one-centavo

Description

@one-centavo

Is your feature request related to a problem? Please describe.
Currently, the application does not explicitly indicate which field acts as the foreign key. Instead, it relies entirely on the order in which tables are connected. This can lead to a poor user experience, especially for beginners, as creating relationships in the wrong direction (parent → child instead of child → parent) results in incorrect SQL being generated when exporting the schema.

Describe the solution you'd like
I propose adding an explicit step when creating relationships between tables. When a user connects two fields, the interface should prompt them to select which of the connected fields will act as the foreign key. This would remove ambiguity, prevent incorrect relationship definitions, and ensure that the generated SQL is accurate regardless of the connection order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions