Task: Directory entries and synchronisation runs relate to their records
Description
A directory entry linked to an employee relates to the employee record, and a synchronisation run to its company; the database deletes them with it.
Impact
The migration adds the foreign keys; a database with entries of employees that no longer exist is set up anew.