Problem
There is no automated process to detect and process
loan defaults. If a learner stops paying, the loan
stays Active indefinitely.
What To Build
- Create src/jobs/default-detection/ module
- BullMQ repeat job every 6 hours
- POST /loans/:id/check-default endpoint
- Supabase storage for results
Files To Touch
- src/jobs/default-detection/ (new module)
- src/modules/loans/loans.controller.ts
- src/modules/loans/loans.service.ts
- supabase/migrations/[ts]_default_detection.sql
Acceptance Criteria
Mandatory Checks Before PR
Problem
There is no automated process to detect and process
loan defaults. If a learner stops paying, the loan
stays Active indefinitely.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR