1.0 KiB
1.0 KiB
Task: Contain backend feature mapping
Feature
docs/FEATURES/platform-scaffold.md
Goal
Move backend feature-specific persistence mapping out of the shared AppDbContext body and into the owning Modules/<Feature>/Data folders.
Context
Architecture docs state that current backend feature code stays under Modules/<Feature>. AppDbContext remains the shared EF Core composition point, but feature-owned model configuration should live with the feature entities.
Files Likely To Change
backend/src/Socialize.Api/Data/AppDbContext.csbackend/src/Socialize.Api/Modules/*/Data/*
Constraints
- Do not change API contracts.
- Do not change table names, indexes, or column constraints.
- Do not introduce a broader persistence refactor.
Done When
- Feature entity mappings live under the owning module folders.
AppDbContextdelegates feature configuration to modules.- Backend build passes.
Validation Commands
dotnet build backend/Socialize.slnx
dotnet test backend/Socialize.slnx