docs(data-model): sync schema gaps — sprint dates, task verify_required/repo_url, product auto_pr, claude_jobs pr_url/retry_count, PBI notify trigger

This commit is contained in:
Janpeter Visser 2026-05-03 03:31:23 +02:00
parent 152ed44e84
commit fcff3fd0fa
2 changed files with 24 additions and 3 deletions

View file

@ -63,7 +63,8 @@ related: [auth-and-sessions.md](./auth-and-sessions.md)
| user_id | String | FK → users, not null | |
| name | String | not null, max 200 | Uniek per gebruiker |
| description | String | nullable, max 1000 | |
| repo_url | String | nullable | Gevalideerde URL |
| repo_url | String | nullable | Gevalideerde URL; default voor MCP-job branch/push |
| auto_pr | Boolean | default false | Wanneer true opent de agent automatisch een PR na push |
| definition_of_done | String | not null, max 500 | Vaste instelling per product |
| archived | Boolean | default false | |
| created_at | DateTime | default now() | |
@ -143,6 +144,8 @@ related: [auth-and-sessions.md](./auth-and-sessions.md)
| product_id | String | FK → products (cascade delete) | |
| sprint_goal | String | not null, max 500 | |
| status | Enum | ACTIVE \| COMPLETED | |
| start_date | Date | nullable | Geplande startdatum (UI-weergave, niet enforced) |
| end_date | Date | nullable | Geplande einddatum (UI-weergave, niet enforced) |
| created_at | DateTime | default now() | |
| completed_at | DateTime | nullable | |
@ -164,9 +167,19 @@ related: [auth-and-sessions.md](./auth-and-sessions.md)
| priority | Int | 14, not null | |
| sort_order | Float | not null | |
| status | Enum | TO_DO \| IN_PROGRESS \| REVIEW \| DONE | |
| verify_required | Enum | `VerifyRequired` — zie onder | Default `ALIGNED_OR_PARTIAL` |
| repo_url | String | nullable | Override van `product.repo_url` voor cross-repo MCP-jobs |
| created_at | DateTime | default now() | |
| updated_at | DateTime | auto-update | |
**`VerifyRequired` enum** — stuurt de drempel waaraan de agent-verify moet voldoen vóór DONE:
| Waarde | Betekenis |
|---|---|
| `ALIGNED` | Diff moet volledig overeenkomen met `plan_snapshot` |
| `ALIGNED_OR_PARTIAL` | Gedeeltelijke dekking is acceptabel (default) |
| `ANY` | Elke niet-lege diff volstaat |
**Indexes:** `(story_id, priority, sort_order)`, `(sprint_id, status)`
---