init: 项目初始提交 - NeoZQYY Monorepo 完整代码
This commit is contained in:
14
db/etl_feiqiu/migrations/20260213_align_ods_with_api.sql
Normal file
14
db/etl_feiqiu/migrations/20260213_align_ods_with_api.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- ============================================================
|
||||
-- ODS 表与 API JSON 字段对齐迁移
|
||||
-- 自动生成于 2026-02-13
|
||||
-- 基于: docs/api-reference/ 文档 vs billiards_ods 实际表结构
|
||||
-- 比对逻辑: camelCase → snake_case 归一化后再比较
|
||||
-- ============================================================
|
||||
--
|
||||
-- 结论: 22 张 ODS 表全部与 API JSON 字段对齐,无需任何 ALTER 操作。
|
||||
--
|
||||
-- stock_goods_category_tree 的 goodsCategoryList/total 为响应包装层字段,
|
||||
-- ODS 表已正确展开存储数组内的记录级字段(id, category_name, pid 等),
|
||||
-- 不需要将包装层字段作为列添加。
|
||||
--
|
||||
-- 无需执行此文件。
|
||||
Reference in New Issue
Block a user