Workflow Database Source Map
Summary
This map links database concerns to authoritative source inspected for Epic 17.4.
Source inventory
| Concern | Verified source |
|---|---|
| DbSets, fluent mappings, filters and outbox mapping | microservices/src/workflow-service/Infrastructure/WorkflowDbContext.cs |
| Repositories, writers, outbox store, tenant and design-time factory | microservices/src/workflow-service/Infrastructure/Persistence.cs |
| Definition/version/step/condition fields and lifecycle | microservices/src/workflow-service/Domain/Workflow/WorkflowDefinition.cs |
| Instance/task/action fields and lifecycle | microservices/src/workflow-service/Domain/Workflow/WorkflowInstance.cs |
| Initial schema change | microservices/src/workflow-service/Infrastructure/Migrations/20260706165438_InitialWorkflowSchema.cs |
| Generated migration model | microservices/src/workflow-service/Infrastructure/Migrations/20260706165438_InitialWorkflowSchema.Designer.cs |
| Current model snapshot | microservices/src/workflow-service/Infrastructure/Migrations/WorkflowDbContextModelSnapshot.cs |
| Development seed | microservices/src/workflow-service/Infrastructure/DevelopmentSeeder.cs |
| Runtime migration composition | microservices/src/workflow-service/Program.cs |
| Query patterns | microservices/src/workflow-service/Application/Queries/WorkflowQueries.cs |
| Command save boundaries | microservices/src/workflow-service/Application/Commands/WorkflowDefinitionCommands.cs, Application/Commands/WorkflowInstanceCommands.cs |
| Integrated smoke evidence | microservices/scripts/smoke-workflow.ps1, microservices/scripts/run-v1-regression.ps1 |
Evidence boundary
Static source and migration artifacts were read. No database, migration, seeder, API or runtime configuration was executed.
Classification
Canonical persistence is implemented. Concurrency, retention, processed-event use, database test depth and production governance are Foundation, Partial, Not implemented or Requires confirmation.
Requires Confirmation
Production schema state, migration history, grants, volume, performance, backups, recovery, retention and operational ownership require confirmation.
Source References
microservices/src/workflow-service/Infrastructure/WorkflowDbContext.csmicroservices/src/workflow-service/Infrastructure/Persistence.csmicroservices/src/workflow-service/Infrastructure/Migrations/20260706165438_InitialWorkflowSchema.csmicroservices/src/workflow-service/Infrastructure/Migrations/WorkflowDbContextModelSnapshot.csmicroservices/src/workflow-service/Infrastructure/DevelopmentSeeder.cs
Related Articles
See Also
Keywords
Workflow database, EF Core, Workflow schema.
Revision Information
- Status: Draft
- Last reviewed: 2026-07-20
- Next review: 2026-10-20