Task: Leave relates to its company and employees
Description
Leave requests, balances and the ledger, types, policies, settings, runs, allocations, encashments, compensatory credits, closures and their opt-outs, planning limits and deadlines, restricted periods, sickness reports, calendar tokens and penalty bookings relate to their company and employees, and the database deletes them with them.
Impact
The migration adds the foreign keys; a database with leave records of companies or employees that no longer exist is set up anew.