Declare FOREIGN KEY constraints so the database enforces valid references between tables.
Why This Matters
Without FK constraints, orphaned rows and dangling references accumulate undetected.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.