这是indexloc提供的服务,不要输入任何密码
Skip to content

infer relationship type using uniqueness constraint of foreign-key #969

@rikinsk-zz

Description

@rikinsk-zz

If a foreign-key column also has a unique constraint, suggest an object relationship rather than an array relationship in console

Example:
user (id pkey, name)
user_passport_info (id pkey, passport_number, user_id uniq reference user.id)

user_id uniq ensures there is only 1 passport info for every user

In this case passport_info -> user will be object rel and user -> passport_info will also be object rel

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolek/enhancementNew feature or improve an existing featurep/highcandidate for being included in the upcoming sprints/wipStatus: This issue is a work in progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions