-- 人读实例号 INS-(运营中心 · 活动区,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);