feat: add note_type, status, parent_note_id, position columns to notes table #60
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
plan-2026-03-01-note-decomposition— Phase 2 (Schema)Repo
pal-e-docs— ForgejoUser Story
As an AI agent managing plans, I need notes to have structured type, status, parent, and position columns so I can query phases across plans, update statuses without rewriting content, and compose parent-child note hierarchies.
Acceptance Criteria
note_type,status,parent_note_id(FK, RESTRICT),position(parent_note_id, position)note_typevalidated against 11-value Literal enumstatusvalidated per note_typeparent_note_id != id){"phase": ["plan"]}list_notesacceptsnote_type,status,parent_slugquery paramscreate_note/update_noteaccept and validate new fieldsAdditional Information
Core schema change for note decomposition. All columns nullable for backward compatibility. No data backfill — existing notes stay NULL. See
note-conventionsfor the enum values and status-per-type spec. Seedoc-pal-e-docs-schemafor the ERD.Checklist
Related
plan-2026-03-01-note-decomposition— Phase 2issue-pal-e-docs-note-decomposition-schema— pal-e-docs issue notenote-conventions— the specdoc-pal-e-docs-schema— the ERD