models/lib/personalDataInventory.js lists all 185 MongoDB collections WeKan
defines - categories of personal data, the field that links a row to a
person, purpose, a legal-basis hint for the controller, retention and where
it is enforced, and what erasure should do and which file does it today.
Health data (workload absences of type sick, GDPR Art. 9) and financial data
(billing, time entries, shop orders, cloud invoices) are marked.
tests/personalDataInventory.test.cjs scans models/, server/ and packages/ for
every collection definition and fails on one that is not classified, on an
entry for a collection that no longer exists, on unknown categories or
missing paths, and on a new erasure gap: the collections nothing erases yet
are one explicit list for WP-4 that can only shrink.
docs/Compliance/Data-Inventory.md is generated by
releases/compliance/data-inventory.mjs, and the test checks it is current.
Thanks to xet7 !