seedproject-web/api/db/migrations
Carlos Arias 59019d2f32 Phase 0: admin console foundation
- cja_admin + cja_admin_log tables (dedicated single-admin tier + audit trail)
- AdminAuth controller: /api/adminauth login/logout/me, session-based,
  rate-limited, every attempt logged
- set-admin-password CLI (bcrypt, run manually so the password never enters
  an agent context)
- requireAdmin() guard for future privileged console endpoints
- agent env scaffold (git-ignored)

Foundation only — no agent runner or features yet. Preview/publish, media,
and the dashboard come in phases 1-3 per agents/console/PLAN.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DoFYZY9gkGPNDqZ7NuEa9a
2026-07-23 20:23:48 +00:00
..
001_create_metrics_placeholder.sql feat(api): Foundation — installer, migrations, two-tier auth, health round-trip 2026-07-04 23:23:51 +00:00
002_create_sp_plugins.sql fix: repair the fresh-clone flow — track api/public + app/public, fix installer schema 2026-07-05 00:15:55 +00:00
003_schema_snapshot.sql Baseline: full site build (brand, pages, DB, agent-editable) 2026-07-23 20:21:28 +00:00
004_create_cja_projects.sql Baseline: full site build (brand, pages, DB, agent-editable) 2026-07-23 20:21:28 +00:00
005_create_cja_contact.sql Baseline: full site build (brand, pages, DB, agent-editable) 2026-07-23 20:21:28 +00:00
006_projects_gallery_skills.sql Baseline: full site build (brand, pages, DB, agent-editable) 2026-07-23 20:21:28 +00:00
007_create_cja_changelog.sql Baseline: full site build (brand, pages, DB, agent-editable) 2026-07-23 20:21:28 +00:00
008_create_cja_admin.sql Phase 0: admin console foundation 2026-07-23 20:23:48 +00:00