Skilirium

Recognises an undeclared foreign key

K-612 · Skill knobit · Activity: Design the physical data model · Competence: Data modelling

A logical relationship implemented as a column with no foreign key, usually "for load speed" or "the ETL checks it". Rows referencing nothing load, and so do deletions that leave them. A specific form of row 14.

Can AI do this?

Not tested yet

No AI benchmark covers this knobit yet. New results are announced in the Can AI Do the Job? newsletter.

What it looks like in practice

Expected result: The column and the foreign key to declare

How it is assessed: Flags the deficient case and passes the acceptable one. Deficient: payment.account_id with no foreign key; an account is purged and its payments point nowhere Acceptable: A foreign_keys entry for every logical relationship, citing it in logical_relationship; where the platform does not enforce it, see row 15 (PHY-007 checks the declared ones; a missing one is review only: compare each LR- with the foreign keys citing it)

Also known as: Undeclared foreign key (physical model)

Related knobits

Builds on

All 40 knobits of Design the physical data model.

Source: Review checklist 06-physical, row 12; Karwin, Keyless Entry; Codd 1979 §2.1; E&N 5.2, 6.2; S&W 11.6