-- 范式退役(2026-07-29 用户定:活动不再分 flow 和 loop,内部实现都是 Loop)。 -- -- `paradigm` 列从此没有意义:活动只有一种,业务模型只有案例模型一形。 -- 在途任务不受影响 —— 它们读的是定义与运行时状态,从不读这一列做分派 -- (分派早已换成「唯一的引擎」,见 wiring/engines.ts)。 alter table sys.activity_package drop column if exists paradigm; alter table sys.task drop column if exists paradigm; -- 分类索引跟着改:活动库只剩业务分类一维 drop index if exists sys.activity_package_category_idx; create index activity_package_category_idx on sys.activity_package (category); -- 审批模板(审批活动)—— 审批点可复用的那一半:看什么 / 怎么催 / 说什么。 -- 谁来审不在这里:与活动点同一口径,运营时按组轮值。 -- 驳回回哪个节点也不在这里:那是每张图自己的事,留在节点上。 create table sys.approval_template ( id text primary key, name text not null, -- [{ field, label }] —— 空数组即旧行为:审批卡把载荷全摊开 basis jsonb not null default '[]'::jsonb, nudge jsonb, message text, updated_at timestamptz not null default now() );