mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
Additive Prisma model mirroring a `pg-boss` `apple-health-import` job's lifecycle. The polling endpoint reads `progress` and `result` live from this row rather than the one-shot terminal `output` column on `pg_boss.job` (pg-boss v12 only populates `output` on completion). Carries `pgBossJobId` for the worker's reverse lookup, an upload sha-256 for content-hash idempotency on re-upload, and per-phase status (`queued | unpacking | parsing | upserting | done | failed`).