Files
baiyue-firstleg/warehouse/scripts/README.md
T
2026-08-30 17:02:19 +08:00

10 lines
796 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Warehouse 服务局部脚本
本目录只放 Warehouse 服务自身的离线分析或数据合同,不放仓库级 HTTP 验收、部署脚本或共享工具。
| 脚本 | 用途 | 副作用 | 运行方式 |
|---|---|---|---|
| `warehouse-public-master-data-contract.test.mjs` | 校验公共 FBA 仓 CSV、四个固定平台仓和 `warehouse-public-master-data.sql` 的数量、唯一性、字段完整性及 SQL 安全边界 | 只读 Warehouse 源码中的 CSV/SQL;不连接数据库、不执行 SQL、不写文件 | 从后端根执行 `node --test warehouse/scripts/warehouse-public-master-data-contract.test.mjs` |
新增 Warehouse 局部 Node 脚本时应放在本目录,并同步本表。跨服务或仓库级脚本仍放根 `scripts/`,Java/JUnit 测试仍放 `src/test/java/`。