微信小程序页面迁移校验之前 P5任务处理之前

This commit is contained in:
Neo
2026-03-09 01:19:21 +08:00
parent 263bf96035
commit 6e20987d2f
1112 changed files with 153824 additions and 219694 deletions

View File

@@ -130,6 +130,14 @@
"column_default": null,
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】member_profiles - 无DWD慢变元数据。 【JSON字段】无 - DWD慢变元数据 - 无。",
"ordinal_position": 16
},
{
"name": "birthday",
"data_type": "date",
"is_nullable": true,
"column_default": null,
"comment": "会员生日来源ODS member_profiles payload 中的 birthday 字段",
"ordinal_position": 17
}
]
}

View File

@@ -250,6 +250,38 @@
"column_default": null,
"comment": "【说明】批次库存数量区别于当前库存stock和主表的 batch_stock_qty。 【ODS来源】store_goods_master - batch_stock_quantity。 【JSON字段】store_goods_master.json - data.orderGoodsList - batchStockQuantity。",
"ordinal_position": 31
},
{
"name": "time_slot_sale",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】分时段销售标记(当前观测全部为 2。 【ODS来源】store_goods_master - time_slot_sale。 【JSON字段】store_goods_master.json - data.orderGoodsList - time_slot_sale。",
"ordinal_position": 32
},
{
"name": "warning_sales_day",
"data_type": "numeric",
"is_nullable": true,
"column_default": null,
"comment": "库存预警参考的日均销量。来源goodsStockWarningInfo.sales_day",
"ordinal_position": 33
},
{
"name": "warning_day_max",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "库存预警天数上限。来源goodsStockWarningInfo.warning_day_max",
"ordinal_position": 34
},
{
"name": "warning_day_min",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "库存预警天数下限。来源goodsStockWarningInfo.warning_day_min",
"ordinal_position": 35
}
]
}

View File

@@ -53,10 +53,10 @@
},
{
"name": "commodity_code_list",
"data_type": "character varying",
"data_type": "ARRAY",
"is_nullable": true,
"column_default": null,
"comment": "【说明】维度字段,用于补充维度属性。 【示例】10000028维度字段用于补充维度属性。 【ODS来源】tenant_goods_master - commodity_code。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodity_code。",
"comment": "【说明】商品编码数组(合并自 ODS commodityCode 数组字段)。单值时为单元素数组。 【ODS来源】tenant_goods_master - commodityCodeJSON 数组格式,如 [\"10000028\"]。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodityCode。",
"ordinal_position": 7
},
{

View File

@@ -1,95 +0,0 @@
{
"schema": "dwd",
"table": "dwd_assistant_trash_event",
"ods_source": "assistant_cancellation_records",
"columns": [
{
"name": "assistant_trash_event_id",
"data_type": "bigint",
"is_nullable": false,
"column_default": null,
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957675849518789标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_cancellation_records - id。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - id。",
"ordinal_position": 1
},
{
"name": "site_id",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_cancellation_records - siteId。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - siteId。",
"ordinal_position": 2
},
{
"name": "table_id",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793016660660357标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_cancellation_records - tableId。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableId。",
"ordinal_position": 3
},
{
"name": "table_area_id",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791963816579205标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_cancellation_records - tableAreaId。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableAreaId。",
"ordinal_position": 4
},
{
"name": "assistant_no",
"data_type": "character varying",
"is_nullable": true,
"column_default": null,
"comment": "【说明】明细字段,用于记录事实取值。 【示例】泡芙(明细字段,用于记录事实取值)。 【ODS来源】assistant_cancellation_records - assistantName。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantName。",
"ordinal_position": 5
},
{
"name": "assistant_name",
"data_type": "character varying",
"is_nullable": true,
"column_default": null,
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】泡芙(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_cancellation_records - assistantName。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantName。",
"ordinal_position": 6
},
{
"name": "charge_minutes_raw",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】明细字段,用于记录事实取值。 【示例】214明细字段用于记录事实取值。 【ODS来源】assistant_cancellation_records - pdChargeMinutes。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - pdChargeMinutes。",
"ordinal_position": 7
},
{
"name": "abolish_amount",
"data_type": "numeric",
"is_nullable": true,
"column_default": null,
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】5.83(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_cancellation_records - assistantAbolishAmount。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantAbolishAmount。",
"ordinal_position": 8
},
{
"name": "trash_reason",
"data_type": "character varying",
"is_nullable": true,
"column_default": null,
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL明细字段用于记录事实取值。 【ODS来源】assistant_cancellation_records - trashReason。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - trashReason。",
"ordinal_position": 9
},
{
"name": "create_time",
"data_type": "timestamp with time zone",
"is_nullable": true,
"column_default": null,
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 19:23:29时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_cancellation_records - createTime。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - createTime。",
"ordinal_position": 10
},
{
"name": "tenant_id",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": null,
"ordinal_position": 11
}
]
}

View File

@@ -1,39 +0,0 @@
{
"schema": "dwd",
"table": "dwd_assistant_trash_event_ex",
"ods_source": "assistant_cancellation_records",
"columns": [
{
"name": "assistant_trash_event_id",
"data_type": "bigint",
"is_nullable": false,
"column_default": null,
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957675849518789标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_cancellation_records - id。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - id。",
"ordinal_position": 1
},
{
"name": "table_name",
"data_type": "character varying",
"is_nullable": true,
"column_default": null,
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】C1名称字段用于展示与辅助识别。 【ODS来源】assistant_cancellation_records - tableName。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableName。",
"ordinal_position": 2
},
{
"name": "table_area_name",
"data_type": "character varying",
"is_nullable": true,
"column_default": null,
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】C区名称字段用于展示与辅助识别。 【ODS来源】assistant_cancellation_records - tableArea。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableArea。",
"ordinal_position": 3
},
{
"name": "assistant_no_int",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】助教编号(整数形式),与主表 assistant_noVARCHAR同源但类型不同便于数值比较和关联。 【示例】6。 【ODS来源】assistant_cancellation_records - assistanton。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantOn。",
"ordinal_position": 4
}
]
}

View File

@@ -1,158 +0,0 @@
{
"schema": "ods",
"table": "assistant_cancellation_records",
"columns": [
{
"name": "id",
"data_type": "bigint",
"is_nullable": false,
"column_default": null,
"comment": "【说明】本表主键 ID用于唯一标识一条记录。 【示例】2957675849518789本表主键 ID用于唯一标识一条记录。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - id。",
"ordinal_position": 1
},
{
"name": "siteid",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】门店 ID即该废除记录所在门店。 【示例】2790685415443269用于门店 ID即该废除记录所在门店。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - siteId。",
"ordinal_position": 2
},
{
"name": "siteprofile",
"data_type": "jsonb",
"is_nullable": true,
"column_default": null,
"comment": "【说明】门店信息快照。 【示例】{\"id\": 2790685415443269, \"org_id\": 2790684179467077, \"shop_name\": \"朗朗桌球\", \"avatar\": \"https://oss.ficoo.vip/admin/hXcE4E…用于门店信息快照。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - siteProfile。",
"ordinal_position": 3
},
{
"name": "assistantname",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】助教姓名/对外展示名称。 【示例】泡芙(用于助教姓名/对外展示名称)。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantName。",
"ordinal_position": 4
},
{
"name": "assistantabolishamount",
"data_type": "numeric",
"is_nullable": true,
"column_default": null,
"comment": "【说明】与“助教废除”关联的金额字段。 【示例】5.83(用于与“助教废除”关联的金额字段)。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantAbolishAmount。",
"ordinal_position": 5
},
{
"name": "assistanton",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】助教编号(工号/序号)。 【示例】27用于助教编号工号/序号))。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantOn。",
"ordinal_position": 6
},
{
"name": "pdchargeminutes",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】“已发生的计费时长(分钟)”,即这次助教服务在被废除前已经累计了多少分钟。 【示例】214用于“已发生的计费时长分钟即这次助教服务在被废除前已经累计了多少分钟。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - pdChargeMinutes。",
"ordinal_position": 7
},
{
"name": "tableareaid",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】台桌所在区域 ID。 【示例】2791963816579205用于台桌所在区域 ID。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableAreaId。",
"ordinal_position": 8
},
{
"name": "tablearea",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】台桌所属区域名称。 【示例】C区用于台桌所属区域名称。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableArea。",
"ordinal_position": 9
},
{
"name": "tableid",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": "【说明】球台/桌子的 ID。 【示例】2793016660660357用于球台/桌子的 ID。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableId。",
"ordinal_position": 10
},
{
"name": "tablename",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】台桌名称/编号,供人阅读。 【示例】C1用于台桌名称/编号,供人阅读)。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - tableName。",
"ordinal_position": 11
},
{
"name": "trashreason",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】用于记录“废除原因”的文本描述,例如“顾客临时有事取消”“录入错误”“更换助教”等。 【示例】NULL用于记录“废除原因”的文本描述例如“顾客临时有事取消”“录入错误”“更换助教”等。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - trashReason。",
"ordinal_position": 12
},
{
"name": "createtime",
"data_type": "timestamp without time zone",
"is_nullable": true,
"column_default": null,
"comment": "【说明】这条“助教废除记录”被创建的时间,即系统正式记录“废除”操作的时刻。 【示例】2025-11-09 19:23:29用于这条“助教废除记录”被创建的时间即系统正式记录“废除”操作的时刻。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - createTime。",
"ordinal_position": 13
},
{
"name": "tenant_id",
"data_type": "bigint",
"is_nullable": true,
"column_default": null,
"comment": null,
"ordinal_position": 14
},
{
"name": "content_hash",
"data_type": "text",
"is_nullable": false,
"column_default": null,
"comment": null,
"ordinal_position": 15
},
{
"name": "source_file",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】assistant_cancellation_records.jsonETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】assistant_cancellation_records.json - ETL元数据 - 无。",
"ordinal_position": 16
},
{
"name": "source_endpoint",
"data_type": "text",
"is_nullable": true,
"column_default": null,
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/assistant_cancellation_records.jsonETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】assistant_cancellation_records.json - ETL元数据 - 无。",
"ordinal_position": 17
},
{
"name": "fetched_at",
"data_type": "timestamp with time zone",
"is_nullable": true,
"column_default": "now()",
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】assistant_cancellation_records.json - ETL元数据 - 无。",
"ordinal_position": 18
},
{
"name": "payload",
"data_type": "jsonb",
"is_nullable": false,
"column_default": null,
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - $。",
"ordinal_position": 19
}
]
}

View File

@@ -201,6 +201,14 @@
"column_default": null,
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - $。",
"ordinal_position": 25
},
{
"name": "birthday",
"data_type": "date",
"is_nullable": true,
"column_default": null,
"comment": "会员生日,来源:上游 API payload 中的 birthday 字段",
"ordinal_position": 26
}
]
}

View File

@@ -417,6 +417,38 @@
"column_default": "now()",
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】store_goods_master.json - ETL元数据 - 无。",
"ordinal_position": 52
},
{
"name": "time_slot_sale",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "【说明】分时段销售标记API 返回值,当前观测全部为 2。 【示例】2。 【JSON字段】store_goods_master.json - data.orderGoodsList - time_slot_sale。",
"ordinal_position": 53
},
{
"name": "warning_sales_day",
"data_type": "numeric",
"is_nullable": true,
"column_default": null,
"comment": "库存预警参考的日均销量。来源goodsStockWarningInfo.sales_day",
"ordinal_position": 54
},
{
"name": "warning_day_max",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "库存预警天数上限。来源goodsStockWarningInfo.warning_day_max",
"ordinal_position": 55
},
{
"name": "warning_day_min",
"data_type": "integer",
"is_nullable": true,
"column_default": null,
"comment": "库存预警天数下限。来源goodsStockWarningInfo.warning_day_min",
"ordinal_position": 56
}
]
}