Lukas May
940b0f8ed2
feat: Add errands persistence layer — repository port, Drizzle adapter, migration, and tests
- Add errand-repository.ts port with ErrandRepository, ErrandWithAlias, ErrandStatus types
- Add DrizzleErrandRepository adapter with create, findById (left-joins agents for alias),
findAll (optional projectId/status filters, desc by createdAt), update, delete
- Wire exports into repositories/index.ts and repositories/drizzle/index.ts
- Add migration 0035_faulty_human_fly.sql (CREATE TABLE errands) and drizzle snapshot
- Add 13 tests covering CRUD, filtering, ordering, agentAlias join, cascade/set-null FK behaviour
- Update docs/database.md to document the errands table and ErrandRepository
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 12:35:06 +01:00
..
2026-03-06 12:35:06 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-05 16:36:39 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 13:42:37 +01:00
2026-03-04 10:14:28 +01:00
2026-03-05 11:45:09 +01:00
2026-03-05 11:45:09 +01:00
2026-03-05 17:02:17 +01:00
2026-03-05 17:09:48 +01:00
2026-03-05 22:05:28 +01:00
2026-03-06 10:36:07 +01:00
2026-03-06 11:20:05 +01:00
2026-03-06 12:19:59 +01:00
2026-03-06 12:35:06 +01:00
2026-03-03 11:55:12 +01:00
2026-03-03 11:55:12 +01:00