Archived
human-tool / ledger / loop-engine / release / task / interaction 六模块与 app 层(desk 路由、engines、consumers、 data-order-landing、case-stamp、reset-runs、seed-activities、容器与 server 装配),web 的 desk-task (ViewRegion / chat-bubbles / review-face)与 app.css、ui-kit 图标;契约 card / manifest; 迁移 0034_task_seq 与迁移日志;api-report 快照;CLAUDE.md 快照、debt、活动开发规范、HTML 报告规范同步。 逐条口径见 CLAUDE.md 快照(2026-08-27 下午至晚)。另一会话做的,一直留在工作树没入库;与同批另两条提交互相依赖。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0167qWjeyBwvfdGovd7FWbCu
7 lines
614 B
SQL
7 lines
614 B
SQL
-- 人读实例号 INS-<seq>(运营中心 · 活动区,2026-08-27):id 仍是寻址键,seq 只给人看与模糊搜。
|
|
-- identity 列对存量行自动补号;Drizzle 的 taskTable 不声明它(与 land_master / advancing_until 同款:只在迁移与 raw SQL 里存在)。
|
|
alter table sys.task add column if not exists seq bigint generated by default as identity;
|
|
create unique index if not exists task_seq_key on sys.task (seq);
|
|
-- L2 实例清单按活动取、L1 按活动数实例 —— 从前只有按负责人的索引
|
|
create index if not exists task_activity_idx on sys.task (activity_id, started_at desc);
|