feat(F-002): database foundation with migrations and dev compose

- node-pg-migrate + pg: baseline migration (extensions, app_meta) with working down
- src/infrastructure/db fail-fast pool and typed query helper
- docker-compose: postgres:16-alpine + redis:7-alpine with one-command up
- table naming convention <module>_<table> documented in README
- integration tests (6) against real PostgreSQL; strict identifier validation
  for test DDL after security-gate hardening round
- deps justified in spec/tech.md; all gates approved; verify.sh green
This commit is contained in:
rikrdo
2026-08-14 22:00:16 +02:00
parent 1d4eebca54
commit 425fedd13e
30 changed files with 1197 additions and 14 deletions

View File

@@ -1,14 +1,16 @@
# Sesión actual
- Feature en curso: _ninguna_ (F-001 cerrada DONE el 2026-08-14)
- Feature en curso: _ninguna_ (F-002 cerrada DONE el 2026-08-14)
- Inicio: —
- Orquestador: —
## Plan
- Próxima feature según dependencias: F-002 (Database foundation) o F-003 (HTTP foundation) o F-004 (config/flags) — todas dependen solo de F-001.
- Features ahora desbloqueadas: F-003 (HTTP foundation), F-004 (config/flags) — dependen solo de F-001. F-005 (identity) tiene sus dos dependencias (F-002, F-003): falta F-003.
- Sugerencia de orden: F-003 → F-004 → F-005.
## Bitácora
- 2026-08-14: F-001 completada con todos los gates APPROVED y verify.sh verde.
- 2026-08-14: F-001 DONE y F-002 DONE, todos los gates APPROVED, verify.sh verde.
- Dev PostgreSQL + Redis siguen corriendo (mdv-dev-postgres, mdv-dev-redis) para los próximos tickets.
## Próximo paso
- intake de la siguiente feature (sugerida: F-002).
- intake de F-003 (HTTP foundation and request context).