Skip to content

Persistence and migrations

Persistence in FullStackHero is handled by the Persistence building block plus module-specific DbContexts.

  • Centralized DatabaseOptions configure providers, connection strings, and behaviors.
  • The platform supports PostgreSQL by default, with room for other providers.
  • Shared interceptors handle auditing, soft deletes, and multi-tenant scoping.
  • Module DbContexts are registered with appropriate lifetimes and tenant settings.
  • Migrations live under Playground.Migrations.* projects.
  • Per-tenant migrations allow each tenant database or schema to evolve independently.
  • You can extend migrations with module-specific tables and seed data.