feat(data): 新增历史数据归属订正脚本(默认 dry-run,--apply 写库)
- companions.user_id:按昵称唯一匹配用户回填(避免重复占用) - finance_records.user_id:按充值/提现/订单/对手方规则回填,无法唯一确定则保留不填 - 默认仅预览,幂等可重复执行;新增 npm 脚本 backfill:ownership 与回归护栏 - 文档补充订正说明(79 套件/611 用例全绿)
这个提交包含在:
@@ -8,7 +8,8 @@
|
||||
"test": "jest --verbose",
|
||||
"test:watch": "jest --watch",
|
||||
"build": "tsc",
|
||||
"start": "node dist/src/index.js"
|
||||
"start": "node dist/src/index.js",
|
||||
"backfill:ownership": "tsx scripts/backfill-ownership.ts"
|
||||
},
|
||||
"keywords": [
|
||||
"peiwan",
|
||||
|
||||
在新工单中引用
屏蔽一个用户