feat: sequential task IDs (HQ-1, HQ-2, etc.)

- Add serial task_number column to tasks table
- Display HQ-{number} on cards and detail panel
- API resolveTask() supports UUID, number, or HQ-N prefix
- GET /api/tasks/:id endpoint for single task lookup
- All PATCH/POST/DELETE endpoints resolve by number or UUID
This commit is contained in:
2026-01-29 00:07:04 +00:00
parent 186a565bee
commit 8131dda10d
5 changed files with 81 additions and 52 deletions

View File

@@ -3,6 +3,7 @@ import {
uuid,
text,
integer,
serial,
timestamp,
jsonb,
pgEnum,
@@ -40,6 +41,7 @@ export interface ProgressNote {
export const tasks = pgTable("tasks", {
id: uuid("id").defaultRandom().primaryKey(),
taskNumber: serial("task_number").notNull(),
title: text("title").notNull(),
description: text("description"),
source: taskSourceEnum("source").notNull().default("donovan"),