How drenbuqa/debtloanrecovery works
DLR is a debt-recovery management application: staff work cases and collection activities, record payments, manage related documents and agreements, and review reports. The tree shows a Next.js dashboard and a NestJS API, with Prisma persistence. Backend controller-to-service and service-to-database links are supported by excerpts or the source index; the README is empty, and frontend request wiring was not shown, so those links are marked unverified rather than asserted.
Main entry points: prisma.service.ts Application database · audit.service.ts Audit logging · cases.service.ts Case management · auth.service.ts Authentication
Components 21
Staff dashboard
- Dashboard
web/src/app/(dashboard)/dashboard/page.tsx - Case workspace
web/src/app/(dashboard)/cases/[id]/page.tsx - Import workspace
web/src/app/(dashboard)/import/page.tsx - Payments screen
web/src/app/(dashboard)/payments/page.tsx - Reports screen
web/src/app/(dashboard)/reports/page.tsx
Casework
- Case management
api/src/cases/cases.service.ts - Collection activities
api/src/activities/activities.service.ts - Agreements
api/src/agreements/agreements.service.ts - Case documents
api/src/documents/documents.service.ts
Collections and finance
- Payment records
api/src/payments/payments.service.ts - Performance tracking
api/src/performance/performance.service.ts - Exports and reports
api/src/reports/reports.service.ts
Operations
- Bulk data import
api/src/import/import.service.ts - Leave management
api/src/leave/leave.service.ts - Legal records
api/src/legal/legal.service.ts
Access and persistence
- User administration
api/src/users/users.service.ts - Authentication
api/src/auth/auth.service.ts - Role authorization
api/src/auth/roles.guard.ts - Audit logging
api/src/audit/audit.service.ts - Application database
api/src/prisma/prisma.service.ts
Other components
- Staff user
Connections 29
- Staff user → Dashboard: opens
- Staff user → Case workspace: works cases
- Staff user → Import workspace: starts imports
- Staff user → Payments screen: records payments
- Staff user → Reports screen: views reports
- Case workspace → Case management: requests data
- Import workspace → Bulk data import: uploads data
- Payments screen → Payment records: requests data
- Reports screen → Exports and reports: requests exports
- Case management → Application database: reads and writes
api/src/cases/cases.service.ts - Collection activities → Application database: reads and writes
api/src/activities/activities.service.ts - Agreements → Application database: reads and writes
api/src/agreements/agreements.service.ts - Case documents → Application database: reads and writes
api/src/documents/documents.service.ts - Payment records → Application database: reads and writes
api/src/payments/payments.service.ts - Performance tracking → Application database: reads and writes
api/src/performance/performance.service.ts - Exports and reports → Application database: reads and writes
api/src/reports/reports.service.ts - Bulk data import → Application database: reads and writes
api/src/import/import.service.ts - Leave management → Application database: reads and writes
api/src/leave/leave.service.ts - Legal records → Application database: reads and writes
api/src/legal/legal.service.ts - User administration → Application database: reads and writes
api/src/users/users.service.ts - Authentication → User administration: uses user service
api/src/auth/auth.service.ts - Authentication → Application database: checks credentials
api/src/auth/auth.service.ts - Authentication → Audit logging: records login events
api/src/auth/auth.service.ts - Audit logging → Application database: writes audit entries
api/src/audit/audit.service.ts - Case management → Audit logging: logs case changes
api/src/cases/cases.controller.ts - Collection activities → Audit logging: logs activity changes
api/src/activities/activities.controller.ts - Payment records → Audit logging: logs payment changes
api/src/payments/payments.controller.ts - User administration → Audit logging: logs user changes
api/src/users/users.controller.ts - Role authorization → Case management: guards requests