Database Source Map
Audience
Developers, QA and support engineers, data reviewers, implementation partners, solution architects, privacy reviewers and security reviewers.
Reference Content
Summary
This source map identifies the evidence used for the database section. Paths are repository-relative to the backend source repository and expose no environment or connection details.
Runtime contexts and mappings
| Area | Primary evidence |
|---|---|
| Recruitment model, filters, mappings and outbox save | microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.cs |
| Recruitment repository query behavior | microservices/src/recruitment-service/Infrastructure/Persistence.cs |
| Recruitment completion transaction sequence | microservices/src/recruitment-service/Application/Commands/OnboardingCommands.cs |
| Employee model, filters and outbox save | microservices/src/employee-service/Infrastructure/EmployeeDbContext.cs |
| Employee aggregate/status | microservices/src/employee-service/Domain/Employees/Employee.cs |
| Compatibility context and filters | Data/AppDbContext.cs |
| Compatibility schema mechanism | Data/DatabaseSchemaInitializer.cs |
| Compatibility onboarding behavior | Controllers/RecruitmentController.cs |
| Exit saves and audit behavior | Controllers/HrOperationsController.cs |
| Payroll model and projection consumer | microservices/src/payroll-service/Infrastructure/PayrollDbContext.cs; microservices/src/payroll-service/Messaging/PayrollReadModelConsumer.cs |
| Attendance model and employee-profile service | microservices/src/attendance-service/Infrastructure/AttendanceDbContext.cs; microservices/src/attendance-service/Application/Services/EmployeeProfileService.cs |
| Leave model and profile consumer | microservices/src/leave-service/Infrastructure/LeaveDbContext.cs; microservices/src/leave-service/Messaging/EmployeeProfileConsumer.cs |
| Asset model and clearance query | microservices/src/asset-service/Infrastructure/AssetDbContext.cs; microservices/src/asset-service/Application/Queries/AssetQueries.cs |
| Notification model and event resolver | microservices/src/notification-service/Infrastructure/NotificationDbContext.cs; microservices/src/notification-service/Application/EventNotificationResolver.cs |
| Gateway persistence absence/route boundary | microservices/src/gateway-api/Program.cs |
Migration and snapshot evidence
Current snapshots are under each extracted context's Infrastructure/Migrations area. Authored migration files in those same areas establish the 19-migration inventory. The compatibility source has no equivalent migration area or snapshot.
Seeder and test evidence
Development seeder files exist in Recruitment, Employee, Payroll, Leave and Asset infrastructure. Notification uses microservices/src/notification-service/Seed/DefaultTemplateSeeder.cs. Recruitment and Employee smoke evidence is in microservices/scripts/smoke-recruitment.ps1 and microservices/scripts/smoke-employee.ps1.
Review method
Evidence was gathered through static source inspection only. No service, database, migration, initializer, seeder, smoke script or external API was executed.
Requires confirmation
Unless explicitly confirmed above, production migration governance, rollback, reconciliation, retention, privacy, performance, concurrency and operational ownership require confirmation.
Source References
microservices/src/recruitment-service/Infrastructure/RecruitmentDbContext.csmicroservices/src/employee-service/Infrastructure/EmployeeDbContext.csData/AppDbContext.cs
Related Articles
See Also
Keywords
- Onboarding database
- Offboarding database
- Lifecycle persistence
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Review cycle: Quarterly