docs(18): create phase plan — schema + CRUD API for document templates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user