Notification Database Source Map
Summary
One authoritative traceability table from database documentation topic to verified source file. Every file listed exists in the reviewed repository.
Audience
Engineers, architects, QA, support and security reviewers.
Reference Content
The verified reference material for this topic is set out in the sections below.
Persistence model
| Topic | Source file |
|---|---|
| Context, DbSets, default schema, all fluent mappings, all 14 indexes, absence of query filters and conversions | microservices/src/notification-service/Infrastructure/NotificationDbContext.cs |
| Design-time factory | microservices/src/notification-service/Infrastructure/NotificationDbContext.cs |
| All seven entity shapes and the six string-constant sets | microservices/src/notification-service/Domain/NotificationEntities.cs |
Schema lifecycle
| Topic | Source file |
|---|---|
| Table and index creation, absence of foreign keys and check constraints | microservices/src/notification-service/Infrastructure/Migrations/20260705113059_InitialNotificationSchema.cs |
| Migration model snapshot at generation time | microservices/src/notification-service/Infrastructure/Migrations/20260705113059_InitialNotificationSchema.Designer.cs |
| Current model snapshot | microservices/src/notification-service/Infrastructure/Migrations/NotificationDbContextModelSnapshot.cs |
| Startup migration, seeding invocation and the skip guard | microservices/src/notification-service/Program.cs |
| Default global template seeding and its idempotency check | microservices/src/notification-service/Seed/DefaultTemplateSeeder.cs |
| Seeding toggle and staleness window | microservices/src/notification-service/Application/NotificationOptions.cs |
Runtime persistence behavior
| Topic | Source file |
|---|---|
| Idempotency check, recipient upsert, message insert, attempt recording, audit writes, ledger write, save boundaries | microservices/src/notification-service/Application/NotificationDispatcher.cs |
| Retry bounds applied during persisted delivery attempts | microservices/src/notification-service/Application/RetryPolicy.cs |
| Template resolution query and tenant-then-global fallback | microservices/src/notification-service/Application/TemplateEngine.cs |
| Preference query and in-memory exact-versus-wildcard resolution | microservices/src/notification-service/Application/PreferenceEvaluator.cs |
| Inbox, template, administration and statistics queries; tracking discipline; page-size clamping | microservices/src/notification-service/Api/NotificationEndpoints.cs |
| Consumer acknowledgement behavior on persistence failure | microservices/src/notification-service/Messaging/NotificationEventConsumer.cs |
Legacy persistence
| Topic | Source file |
|---|---|
| Legacy DbSets, notification query filters with super-admin bypass, length and index configuration | Data/AppDbContext.cs |
| Legacy notification entity | Models/Notification.cs |
| Legacy user-notification entity | Models/UserNotification.cs |
| Legacy template entity | Models/NotificationTemplate.cs |
Verification
| Topic | Source file |
|---|---|
| Indirect persistence assertions through end-to-end API exercise | microservices/scripts/smoke-notification.ps1 |
Classification
Verified source map.
Requires confirmation
None — every entry was confirmed to exist in the reviewed repository.
Related Articles
See Also
Keywords
- Notification database
- Source Map
- Draft database documentation
Source References
microservices/src/notification-service/Infrastructure/NotificationDbContext.csmicroservices/src/notification-service/Domain/NotificationEntities.csmicroservices/src/notification-service/Infrastructure/Migrations/20260705113059_InitialNotificationSchema.csmicroservices/src/notification-service/Infrastructure/Migrations/NotificationDbContextModelSnapshot.csmicroservices/src/notification-service/Infrastructure/Migrations/20260705113059_InitialNotificationSchema.Designer.csmicroservices/src/notification-service/Program.csmicroservices/src/notification-service/Seed/DefaultTemplateSeeder.csmicroservices/src/notification-service/Application/NotificationDispatcher.csmicroservices/src/notification-service/Api/NotificationEndpoints.csData/AppDbContext.csmicroservices/scripts/smoke-notification.ps1
Revision Information
- Status: Draft
- Last reviewed: 2026-07-21
- Review cycle: Quarterly