feat(coord): DB migration — project-scoped missions, multi-tenant RBAC #149

Merged
jason.woltje merged 1 commits from feat/p7-020-coord-db into main 2026-03-15 19:18:18 +00:00

1 Commits

Author SHA1 Message Date
fc305e8b72 feat(coord): DB migration — project-scoped missions, multi-tenant RBAC
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
Closes #131

- Add userId, phase, milestones, config columns to missions table
- Add new mission_tasks table for coord-managed task tracking
- Both tables enforce per-user RBAC via userId foreign key
- Generate Drizzle migration (0001_magical_rattler.sql)
- Add userId-scoped query methods to brain missions repo
- Add new mission-tasks repo to brain package
- Extend CoordService with DB-backed mission and task CRUD
- Extend CoordController with DB-backed REST endpoints
- Preserve file-based coord endpoints for backwards compatibility

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:17:27 -05:00