Files
social-media/docs/TASKS/platform-scaffold/002-contain-backend-feature-mapping.md
Jonathan Bourdon 20f8a14bfb
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
refactor: contain backend feature mappings
2026-04-25 01:14:01 -04:00

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.cs
  • backend/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.
  • AppDbContext delegates feature configuration to modules.
  • Backend build passes.

Validation Commands

dotnet build backend/Socialize.slnx
dotnet test backend/Socialize.slnx