Development database helpers
pkg/development/database supplies service migration orchestration, dedicated local test/development target validation, catalog fixtures, account seeds, and managed-table cleanup for the operational CLI. Service-owned embedded migrations remain the source of schema changes. Each service has its own migration history; application order follows service dependencies and reset reverses that order.
Use the database operations guide for commands, target restrictions, seeded accounts, and recovery. Doctor catalog seeds preserve stable identifiers and administrator edits. Doctor account seeds select one speciality and preserve existing professional selections when repeated. Populated Doctor databases may require the explicit speciality reconciliation procedure before migration finalization.
Tests use dedicated local PostgreSQL databases. Short tests run without external services; migration and fixture integration tests require the documented test connection settings. See development and testing.
Code reference
See the database package.