A project-1 deletion-policy tree shows task 10 blocking, file 20 removed, and history 30 retaining a NULL reference. These are policy outcomes, not simultaneous effects of the blocked deletion.

Foreign keys keep references honest

A foreign key makes a relationship enforceable during ordinary database writes. A task can reference an existing project, and the database can reject an unknown project identifier even when an import or a new application code path forgets to check it. The constraint defines referential integrity; it does not decide whether the selected project is the correct one for the business operation. ...

May 25, 2027 · 5 min · XB Field Notes