docs(18): create phase plan — schema + CRUD API for document templates

This commit is contained in:
Chandler Copeland
2026-04-06 12:11:45 -06:00
parent 1afac9df1c
commit 421688f7f7
3 changed files with 525 additions and 1 deletions

View File

@@ -396,7 +396,11 @@ Plans:
2. Agent can rename a template and the new name is persisted and reflected immediately in the template list
3. Agent can delete a template — the row is soft-deleted (`archivedAt` set, not removed from DB) and disappears from the active list; no `ON DELETE CASCADE` touches any documents created from it
4. Agent can retrieve a list of all active templates showing form name and field count — archived templates are filtered out
**Plans**: TBD
**Plans**: 2 plans
Plans:
- [ ] 18-01-PLAN.md — Drizzle schema: documentTemplates table definition + 0012 migration
- [ ] 18-02-PLAN.md — CRUD API routes: GET/POST /api/templates, PATCH/DELETE /api/templates/[id]
**UI hint**: no
### Phase 19: Template Editor UI