docs(architecture): update todos.product_id to not null with cascade delete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-04-25 18:42:47 +02:00
parent 6c7459c61f
commit bed13c2d04

View file

@ -214,7 +214,7 @@ Scrum4Me is een desktop-first Next.js 16 webapplicatie die server-side wordt ger
|---|---|---|---|
| id | String (cuid) | PK | |
| user_id | String | FK → users, not null | |
| product_id | String | FK → products, nullable | Verplicht in UI en API; nullable voor backward compatibility |
| product_id | String | FK → products, not null | Verplicht in UI en API; cascade delete wanneer product wordt verwijderd |
| title | String | not null | |
| done | Boolean | default false | |
| archived | Boolean | default false | |