CREATE EXTENSION IF NOT EXISTS pg_trgm;

CREATE INDEX IF NOT EXISTS idx_fulfillment_tasks_admin_search_text_trgm
  ON fulfillment_tasks USING GIN ((task_no || ' ' || platform_order_id) gin_trgm_ops);

COMMENT ON INDEX idx_fulfillment_tasks_admin_search_text_trgm IS
  '支持后台任务号和平台订单号综合模糊搜索';
