在前后端开发联调前 的提交20260223
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_assistant",
|
||||
"ods_source": "assistant_accounts_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2947562271297029(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - staff_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - staff_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "assistant_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】31(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - assistant_no。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_no。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "real_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】张静然(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - real_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - real_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】小然(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - nickname。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - nickname。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】15119679931(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - mobile。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - mobile。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - tenant_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - tenant_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - site_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - site_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "team_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2792011585884037(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - team_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - team_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "team_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】1组(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - team_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - team_name。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "level",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】20(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - level。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - level。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "entry_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-02 08:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - entry_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_time。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "resign_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-03 08:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - resign_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - resign_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "leave_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - leave_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - leave_status。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "assistant_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - assistant_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_status。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 19
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_assistant_ex",
|
||||
"ods_source": "assistant_accounts_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2947562271297029(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "gender",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - gender。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - gender。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "birth_date",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】0001-01-01 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - birth_date。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - birth_date。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】https://oss.ficoo.vip/maUiImages/images/defaultAvatar.png(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - avatar。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - avatar。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "introduce",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - introduce。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - introduce。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "video_introduction_url",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】https://oss.ficoo.vip/cbb/userVideo/1753096246308/175309624630830.mp4(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - video_introduction_url。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - video_introduction_url。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - height。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - height。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - weight。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - weight。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - shop_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - shop_name。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "group_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - group_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - group_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "group_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - group_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - group_name。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "person_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2947562271215109(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - person_org_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - person_org_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "staff_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - staff_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - staff_id。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "staff_profile_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - staff_profile_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - staff_profile_id。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "assistant_grade",
|
||||
"data_type": "double precision",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - assistant_grade。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_grade。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "sum_grade",
|
||||
"data_type": "double precision",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - sum_grade。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - sum_grade。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "get_grade_times",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - get_grade_times。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - get_grade_times。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "charge_way",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - charge_way。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - charge_way。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "allow_cx",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - allow_cx。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - allow_cx。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "is_guaranteed",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_accounts_master - is_guaranteed。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_guaranteed。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "salary_grant_enabled",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - salary_grant_enabled。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - salary_grant_enabled。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "entry_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - entry_type。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_type。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "entry_sign_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】0(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - entry_sign_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_sign_status。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "resign_sign_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】0(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - resign_sign_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - resign_sign_status。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "work_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】2(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - work_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - work_status。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "show_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - show_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - show_status。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "show_sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】31(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - show_sort。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - show_sort。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "online_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - online_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - online_status。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_accounts_master - is_delete。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_delete。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "criticism_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - criticism_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - criticism_status。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-02 15:55:26(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - create_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - create_time。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-03 18:32:07(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - update_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - update_time。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-01 08:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - start_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - start_time。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-12-01 08:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_accounts_master - end_time。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - end_time。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "last_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - last_table_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_table_id。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "last_table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】TV(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - last_table_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_table_name。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "last_update_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】管理员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_accounts_master - last_update_name。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_update_name。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - order_trade_no。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - order_trade_no。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "ding_talk_synced",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】assistant_accounts_master - ding_talk_synced。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - ding_talk_synced。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "site_light_cfg_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - site_light_cfg_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - site_light_cfg_id。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "light_equipment_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_accounts_master - light_equipment_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - light_equipment_id。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "light_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】2(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_accounts_master - light_status。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - light_status。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "is_team_leader",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_accounts_master - is_team_leader。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_team_leader。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "serial_number",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】0(数量/时长字段,用于统计与计量)。 【ODS来源】assistant_accounts_master - serial_number。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - serial_number。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】assistant_accounts_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "system_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统角色 ID,标识助教在系统中的角色类型。 【ODS来源】assistant_accounts_master - system_role_id。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - system_role_id。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "job_num",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】工号,助教的内部编号标识。 【ODS来源】assistant_accounts_master - job_num。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - job_num。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "cx_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】促销单价(元),助教提供促销服务时的计费单价。 【ODS来源】assistant_accounts_master - cx_unit_price。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - cx_unit_price。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "pd_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】陪打单价(元),助教提供陪打服务时的计费单价。 【ODS来源】assistant_accounts_master - pd_unit_price。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - pd_unit_price。",
|
||||
"ordinal_position": 52
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_goods_category",
|
||||
"ods_source": "stock_goods_category_tree",
|
||||
"columns": [
|
||||
{
|
||||
"name": "category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528350533(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】stock_goods_category_tree - id。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】stock_goods_category_tree - tenant_id。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "category_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】槟榔(名称字段,用于展示与辅助识别)。 【ODS来源】stock_goods_category_tree - category_name。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - category_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "alias_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】stock_goods_category_tree - alias_name。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - alias_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "parent_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】stock_goods_category_tree - pid。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - pid。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "business_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】槟榔(名称字段,用于展示与辅助识别)。 【ODS来源】stock_goods_category_tree - business_name。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - business_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_business_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528317766(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】stock_goods_category_tree - tenant_goods_business_id。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - tenant_goods_business_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "category_level",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】stock_goods_category_tree - CASE WHEN pid = 0 THEN 1 ELSE 2 END。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - CASE WHEN pid = 0 THEN 1 ELSE 2 END。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "is_leaf",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】stock_goods_category_tree - CASE WHEN categoryboxes IS NULL OR jsonb_array_length(categoryboxes)=0 THEN 1 ELSE 0 END。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - CASE WHEN categoryboxes IS NULL OR jsonb_array_length(categoryboxes)=0 THEN 1 ELSE 0 END。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "open_salesman",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】stock_goods_category_tree - open_salesman。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - open_salesman。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "sort_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】stock_goods_category_tree - sort。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - sort。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】stock_goods_category_tree - is_warehousing。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - is_warehousing。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】stock_goods_category_tree - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】stock_goods_category_tree - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】stock_goods_category_tree - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】stock_goods_category_tree - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_groupbuy_package",
|
||||
"ods_source": "group_buy_packages",
|
||||
"columns": [
|
||||
{
|
||||
"name": "groupbuy_package_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2939215004469573(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - id。 【JSON字段】group_buy_packages.json - data.packageCouponList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - tenant_id。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - site_id。 【JSON字段】group_buy_packages.json - data.packageCouponList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "package_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】早场特惠一小时(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_packages - package_name。 【JSON字段】group_buy_packages.json - data.packageCouponList - package_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "package_template_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】1814707240811572(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - package_id。 【JSON字段】group_buy_packages.json - data.packageCouponList - package_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "selling_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_packages - selling_price。 【JSON字段】group_buy_packages.json - data.packageCouponList - selling_price。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "coupon_face_value",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - coupon_money。 【JSON字段】group_buy_packages.json - data.packageCouponList - coupon_money。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "duration_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】group_buy_packages - duration。 【JSON字段】group_buy_packages.json - data.packageCouponList - duration。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-10-27 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】group_buy_packages - start_time。 【JSON字段】group_buy_packages.json - data.packageCouponList - start_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2026-10-28 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】group_buy_packages - end_time。 【JSON字段】group_buy_packages.json - data.packageCouponList - end_time。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "table_area_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A区(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_packages - table_area_name。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_name。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "is_enabled",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】group_buy_packages - is_enabled。 【JSON字段】group_buy_packages.json - data.packageCouponList - is_enabled。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】group_buy_packages - is_delete。 【JSON字段】group_buy_packages.json - data.packageCouponList - is_delete。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-10-27 18:24:09(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】group_buy_packages - create_time。 【JSON字段】group_buy_packages.json - data.packageCouponList - create_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id_list",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2791960001957765(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - tenant_table_area_id_list。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_table_area_id_list。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "card_type_ids",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - card_type_ids。 【JSON字段】group_buy_packages.json - data.packageCouponList - card_type_ids。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "is_first_limit",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_groupbuy_package_ex",
|
||||
"ods_source": "group_buy_packages",
|
||||
"columns": [
|
||||
{
|
||||
"name": "groupbuy_package_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2939215004469573(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - id。 【JSON字段】group_buy_packages.json - data.packageCouponList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_packages - site_name。 【JSON字段】group_buy_packages.json - data.packageCouponList - site_name。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "usable_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】9999999(数量/时长字段,用于统计与计量)。 【ODS来源】group_buy_packages - usable_count。 【JSON字段】group_buy_packages.json - data.packageCouponList - usable_count。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "date_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - date_type。 【JSON字段】group_buy_packages.json - data.packageCouponList - date_type。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "usable_range",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - usable_range。 【JSON字段】group_buy_packages.json - data.packageCouponList - usable_range。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "date_info",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - date_info。 【JSON字段】group_buy_packages.json - data.packageCouponList - date_info。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "start_clock",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】00:00:00(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - start_clock。 【JSON字段】group_buy_packages.json - data.packageCouponList - start_clock。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "end_clock",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1.00:00:00(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - end_clock。 【JSON字段】group_buy_packages.json - data.packageCouponList - end_clock。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "add_start_clock",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】00:00:00(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - add_start_clock。 【JSON字段】group_buy_packages.json - data.packageCouponList - add_start_clock。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "add_end_clock",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1.00:00:00(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - add_end_clock。 【JSON字段】group_buy_packages.json - data.packageCouponList - add_end_clock。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "area_tag_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - area_tag_type。 【JSON字段】group_buy_packages.json - data.packageCouponList - area_tag_type。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - table_area_id。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_packages - tenant_table_area_id。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_table_area_id。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "table_area_id_list",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - table_area_id_list。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_id_list。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "group_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - group_type。 【JSON字段】group_buy_packages.json - data.packageCouponList - group_type。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "system_group_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - system_group_type。 【JSON字段】group_buy_packages.json - data.packageCouponList - system_group_type。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "package_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - type。 【JSON字段】group_buy_packages.json - data.packageCouponList - type。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "effective_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】group_buy_packages - effective_status。 【JSON字段】group_buy_packages.json - data.packageCouponList - effective_status。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "max_selectable_categories",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】group_buy_packages - max_selectable_categories。 【JSON字段】group_buy_packages.json - data.packageCouponList - max_selectable_categories。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "creator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】店长:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_packages - creator_name。 【JSON字段】group_buy_packages.json - data.packageCouponList - creator_name。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "tenant_coupon_sale_order_item_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】group_buy_packages - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 25
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_member",
|
||||
"ods_source": "member_profiles",
|
||||
"columns": [
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955204541320325(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955204540009605(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - system_member_id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - system_member_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - tenant_id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - tenant_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - register_site_id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - register_site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】18620043391(维度字段,用于补充维度属性)。 【ODS来源】member_profiles - mobile。 【JSON字段】member_profiles.json - data.tenantMemberInfos - mobile。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】胡先生(名称字段,用于展示与辅助识别)。 【ODS来源】member_profiles - nickname。 【JSON字段】member_profiles.json - data.tenantMemberInfos - nickname。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2790683528022853(维度字段,用于补充维度属性)。 【ODS来源】member_profiles - member_card_grade_code。 【JSON字段】member_profiles.json - data.tenantMemberInfos - member_card_grade_code。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】储值卡(名称字段,用于展示与辅助识别)。 【ODS来源】member_profiles - member_card_grade_name。 【JSON字段】member_profiles.json - data.tenantMemberInfos - member_card_grade_name。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-08 01:29:33(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_profiles - create_time。 【JSON字段】member_profiles.json - data.tenantMemberInfos - create_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_profiles - update_time。 【JSON字段】member_profiles.json - data.tenantMemberInfos - update_time。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "pay_money_sum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "recharge_money_sum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_member_card_account",
|
||||
"ods_source": "member_stored_value_cards",
|
||||
"columns": [
|
||||
{
|
||||
"name": "member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955206162843781(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - tenant_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - register_site_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - register_site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955204541320325(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - tenant_member_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenant_member_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955204540009605(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - system_member_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - system_member_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "card_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793266846533445(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - card_type_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_type_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2790683528022856(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - member_card_grade_code。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_grade_code。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】活动抵用券(名称字段,用于展示与辅助识别)。 【ODS来源】member_stored_value_cards - member_card_grade_code_name。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_grade_code_name。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "member_card_type_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】活动抵用券(名称字段,用于展示与辅助识别)。 【ODS来源】member_stored_value_cards - member_card_type_name。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_type_name。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "member_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】胡先生(名称字段,用于展示与辅助识别)。 【ODS来源】member_stored_value_cards - member_name。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_name。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "member_mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】18620043391(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - member_mobile。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_mobile。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - balance。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - balance。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-08 01:31:12(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - start_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - start_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2225-01-01 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - end_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - end_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "last_consume_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 07:48:23(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - last_consume_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - last_consume_time。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】member_stored_value_cards - status。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - status。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】member_stored_value_cards - is_delete。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_delete。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "principal_balance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "member_grade",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,495 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_member_card_account_ex",
|
||||
"ods_source": "member_stored_value_cards",
|
||||
"columns": [
|
||||
{
|
||||
"name": "member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955206162843781(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】member_stored_value_cards - site_name。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - site_name。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "tenant_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】member_stored_value_cards - tenantName。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenantName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "tenantavatar",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - tenantAvatar。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenantAvatar。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "effect_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_stored_value_cards - effect_site_id。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - effect_site_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "able_cross_site",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - able_cross_site。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - able_cross_site。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "card_physics_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - card_physics_type。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_physics_type。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "card_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - card_no。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_no。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "bind_password",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - bind_password。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - bind_password。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "use_scene",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - use_scene。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - use_scene。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "denomination",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - denomination。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - denomination。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-08 01:31:12(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - create_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - create_time。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "disable_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】0001-01-01 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - disable_start_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - disable_start_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "disable_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】0001-01-01 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_stored_value_cards - disable_end_time。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - disable_end_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "is_allow_give",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】member_stored_value_cards - is_allow_give。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_allow_give。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "is_allow_order_deduct",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - is_allow_order_deduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_allow_order_deduct。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - sort。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - sort。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "table_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - table_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_discount。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "goods_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - goods_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "assistant_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - assistant_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_discount。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - assistant_reward_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_discount。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "table_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - table_service_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_service_discount。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "goods_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - goods_service_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_service_discount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - assistant_service_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_service_discount。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "coupon_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - coupon_discount。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - coupon_discount。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "table_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - table_discount_sub_switch。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_discount_sub_switch。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "goods_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - goods_discount_sub_switch。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount_sub_switch。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "assistant_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - assistant_discount_sub_switch。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_discount_sub_switch。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - assistant_reward_discount_sub_switch。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_discount_sub_switch。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "goods_discount_range_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】member_stored_value_cards - goods_discount_range_type。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount_range_type。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "table_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - table_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_deduct_radio。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "goods_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - goods_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_deduct_radio。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "assistant_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistant_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_deduct_radio。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "table_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - table_service_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_service_deduct_radio。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "goods_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - goods_service_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_service_deduct_radio。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistant_service_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_service_deduct_radio。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistant_reward_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_deduct_radio。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】100.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - coupon_deduct_radio。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - coupon_deduct_radio。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "cardsettlededuct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - cardSettleDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - cardSettleDeduct。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "tablecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - tableCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableCardDeduct。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "tableservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - tableServiceCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableServiceCardDeduct。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "goodscardeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - goodsCarDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsCarDeduct。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "goodsservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - goodsServiceCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsServiceCardDeduct。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "assistantcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistantCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantCardDeduct。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "assistantservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistantServiceCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantServiceCardDeduct。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "assistantrewardcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - assistantRewardCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantRewardCardDeduct。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "couponcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - couponCardDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - couponCardDeduct。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "deliveryfeededuct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_stored_value_cards - deliveryFeeDeduct。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - deliveryFeeDeduct。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "tableareaid",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】[](维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - tableAreaId。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableAreaId。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "goodscategoryid",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】[](维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - goodsCategoryId。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsCategoryId。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "pdassisnatlevel",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】[](维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - pdAssisnatLevel。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - pdAssisnatLevel。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "cxassisnatlevel",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】[](维度字段,用于补充维度属性)。 【ODS来源】member_stored_value_cards - cxAssisnatLevel。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - cxAssisnatLevel。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "able_share_member_discount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "electricity_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "electricity_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "electricity_card_deduct",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "recharge_freeze_balance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】member_stored_value_cards - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 61
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_member_ex",
|
||||
"ods_source": "member_profiles",
|
||||
"columns": [
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955204541320325(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "referrer_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_profiles - referrer_member_id。 【JSON字段】member_profiles.json - data.tenantMemberInfos - referrer_member_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "point",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】member_profiles - point。 【JSON字段】member_profiles.json - data.tenantMemberInfos - point。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "register_site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】member_profiles - site_name。 【JSON字段】member_profiles.json - data.tenantMemberInfos - site_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "growth_value",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0.0(维度字段,用于补充维度属性)。 【ODS来源】member_profiles - growth_value。 【JSON字段】member_profiles.json - data.tenantMemberInfos - growth_value。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "user_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】member_profiles - user_status。 【JSON字段】member_profiles.json - data.tenantMemberInfos - user_status。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】member_profiles - status。 【JSON字段】member_profiles.json - data.tenantMemberInfos - status。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "person_tenant_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "person_tenant_org_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "register_source",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】member_profiles - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_site",
|
||||
"ods_source": "table_fee_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - site_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】组织/机构 ID,用于组织维度归属。 【示例】2790684179467077(组织/机构 ID,用于组织维度归属)。 【ODS来源】table_fee_transactions - siteProfile.org_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - org_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID,用于商户维度过滤与关联。 【示例】2790683160709957(租户/品牌 ID,用于商户维度过滤与关联)。 【ODS来源】table_fee_transactions - siteProfile.tenant_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - tenant_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称,用于展示与查询。 【示例】朗朗桌球(门店名称,用于展示与查询)。 【ODS来源】table_fee_transactions - siteProfile.shop_name。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - shop_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_label",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店标签(如 A/B 店),用于展示与分组。 【示例】A(门店标签(如 A/B 店),用于展示与分组)。 【ODS来源】table_fee_transactions - siteProfile.site_label。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - site_label。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "full_address",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店详细地址,用于展示与地理信息。 【示例】广东省广州市天河区丽阳街12号(门店详细地址,用于展示与地理信息)。 【ODS来源】table_fee_transactions - siteProfile.full_address。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - full_address。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店地址简称/快照,用于展示。 【示例】广东省广州市天河区天园街道朗朗桌球(门店地址简称/快照,用于展示)。 【ODS来源】table_fee_transactions - siteProfile.address。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - address。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "longitude",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】经度,用于定位与地图展示。 【示例】113.360321(经度,用于定位与地图展示)。 【ODS来源】table_fee_transactions - siteProfile.longitude。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - longitude(派生:CAST(longitude AS numeric))。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "latitude",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】纬度,用于定位与地图展示。 【示例】23.133629(纬度,用于定位与地图展示)。 【ODS来源】table_fee_transactions - siteProfile.latitude。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - latitude(派生:CAST(latitude AS numeric))。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "tenant_site_region_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户下门店区域 ID,用于区域维度分析。 【示例】156440100(租户下门店区域 ID,用于区域维度分析)。 【ODS来源】table_fee_transactions - siteProfile.tenant_site_region_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - tenant_site_region_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "business_tel",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店电话,用于联系信息展示。 【示例】13316068642(门店电话,用于联系信息展示)。 【ODS来源】table_fee_transactions - siteProfile.business_tel。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - business_tel。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "site_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店类型枚举,用于门店分类。 【示例】1(门店类型枚举,用于门店分类)。 【ODS来源】table_fee_transactions - siteProfile.site_type。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - site_type。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "shop_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店状态枚举,用于营业状态标识。 【示例】1(门店状态枚举,用于营业状态标识)。 【ODS来源】table_fee_transactions - siteProfile.shop_status。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - shop_status。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "'9999-12-31 00:00:00+08'::timestamp with time zone",
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 17
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_site_ex",
|
||||
"ods_source": "table_fee_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - site_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店头像/图片 URL,用于展示。 【示例】https://oss.ficoo.vip/admin/hXcE4E_1752495052016.jpg(门店头像/图片 URL,用于展示)。 【ODS来源】table_fee_transactions - siteProfile.avatar。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - avatar。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "address",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店地址简称/快照,用于展示。 【示例】广东省广州市天河区天园街道朗朗桌球(门店地址简称/快照,用于展示)。 【ODS来源】table_fee_transactions - siteProfile.address。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - address。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "longitude",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】经度,用于定位与地图展示。 【示例】113.360321(经度,用于定位与地图展示)。 【ODS来源】table_fee_transactions - siteProfile.longitude。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - longitude(派生:CAST(longitude AS numeric))。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "latitude",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】纬度,用于定位与地图展示。 【示例】23.133629(纬度,用于定位与地图展示)。 【ODS来源】table_fee_transactions - siteProfile.latitude。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - latitude(派生:CAST(latitude AS numeric))。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "tenant_site_region_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户下门店区域 ID,用于区域维度分析。 【示例】156440100(租户下门店区域 ID,用于区域维度分析)。 【ODS来源】table_fee_transactions - siteProfile.tenant_site_region_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - tenant_site_region_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "auto_light",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否启用自动灯控配置,用于门店设备策略。 【示例】1(是否启用自动灯控配置,用于门店设备策略)。 【ODS来源】table_fee_transactions - siteProfile.auto_light。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - auto_light。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "light_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】灯控状态/开关,用于灯控设备管理。 【示例】1(灯控状态/开关,用于灯控设备管理)。 【ODS来源】table_fee_transactions - siteProfile.light_status。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - light_status。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "light_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】灯控类型,用于设备类型区分。 【示例】0(灯控类型,用于设备类型区分)。 【ODS来源】table_fee_transactions - siteProfile.light_type。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - light_type。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "light_token",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】灯控控制令牌,用于对接灯控服务。 【示例】NULL(灯控控制令牌,用于对接灯控服务)。 【ODS来源】table_fee_transactions - siteProfile.light_token。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - light_token。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "site_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店类型枚举,用于门店分类。 【示例】1(门店类型枚举,用于门店分类)。 【ODS来源】table_fee_transactions - siteProfile.site_type。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - site_type。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "site_label",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店标签(如 A/B 店),用于展示与分组。 【示例】A(门店标签(如 A/B 店),用于展示与分组)。 【ODS来源】table_fee_transactions - siteProfile.site_label。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - site_label。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "attendance_enabled",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否启用考勤功能,用于门店考勤配置。 【示例】1(是否启用考勤功能,用于门店考勤配置)。 【ODS来源】table_fee_transactions - siteProfile.attendance_enabled。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - attendance_enabled。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "attendance_distance",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】考勤允许距离(米),用于考勤打卡限制。 【示例】0(考勤允许距离(米),用于考勤打卡限制)。 【ODS来源】table_fee_transactions - siteProfile.attendance_distance。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - attendance_distance。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "customer_service_qrcode",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】客服二维码 URL,用于引导联系。 【示例】NULL(客服二维码 URL,用于引导联系)。 【ODS来源】table_fee_transactions - siteProfile.customer_service_qrcode。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - customer_service_qrcode。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "customer_service_wechat",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】客服微信号,用于引导联系。 【示例】NULL(客服微信号,用于引导联系)。 【ODS来源】table_fee_transactions - siteProfile.customer_service_wechat。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - customer_service_wechat。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "fixed_pay_qrcode",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】固定收款码(二维码)URL,用于收款引导。 【示例】NULL(固定收款码(二维码)URL,用于收款引导)。 【ODS来源】table_fee_transactions - siteProfile.fixed_pay_qrCode。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - fixed_pay_qrCode。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "prod_env",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】环境标识(生产/测试),用于区分配置环境。 【示例】1(环境标识(生产/测试),用于区分配置环境)。 【ODS来源】table_fee_transactions - siteProfile.prod_env。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - prod_env。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "shop_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店状态枚举,用于营业状态标识。 【示例】1(门店状态枚举,用于营业状态标识)。 【ODS来源】table_fee_transactions - siteProfile.shop_status。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - shop_status。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店创建时间(快照字段)。 【示例】NULL(用于门店创建时间(快照字段))。 【ODS来源】table_fee_transactions - siteProfile.create_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - create_time(派生:CAST(create_time AS timestamptz))。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店更新时间(快照字段)。 【示例】NULL(用于门店更新时间(快照字段))。 【ODS来源】table_fee_transactions - siteProfile.update_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList.siteProfile - update_time(派生:CAST(update_time AS timestamptz))。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "'9999-12-31 00:00:00+08'::timestamp with time zone",
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】table_fee_transactions - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 25
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_store_goods",
|
||||
"ods_source": "store_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793025851560005(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - id。 【JSON字段】store_goods_master.json - data.orderGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - tenant_id。 【JSON字段】store_goods_master.json - data.orderGoodsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - site_id。 【JSON字段】store_goods_master.json - data.orderGoodsList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2792178593255301(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - tenant_goods_id。 【JSON字段】store_goods_master.json - data.orderGoodsList - tenant_goods_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】合味道泡面(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_master - goods_name。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_name。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791941988405125(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - goods_category_id。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_category_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goods_second_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793236829620037(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - goods_second_category_id。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_second_category_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "category_level1_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】零食(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_master - oneCategoryName。 【JSON字段】store_goods_master.json - data.orderGoodsList - oneCategoryName。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "category_level2_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】面(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_master - twoCategoryName。 【JSON字段】store_goods_master.json - data.orderGoodsList - twoCategoryName。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "batch_stock_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】批次库存数量,区别于当前库存(stock)。 【示例】18。 【ODS来源】store_goods_master - batch_stock_quantity。 【JSON字段】store_goods_master.json - data.orderGoodsList - batchStockQuantity。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "sale_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】104(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - sale_num。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_num。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "total_sales_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】104(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - total_sales。 【JSON字段】store_goods_master.json - data.orderGoodsList - total_sales。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "sale_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】12.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_master - sale_price。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_price。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "created_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2025-07-16 11:52:51(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - create_time。 【JSON字段】store_goods_master.json - data.orderGoodsList - create_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "updated_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2025-11-09 07:23:47(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - update_time。 【JSON字段】store_goods_master.json - data.orderGoodsList - update_time。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "avg_monthly_sales",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1.32(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - average_monthly_sales。 【JSON字段】store_goods_master.json - data.orderGoodsList - average_monthly_sales。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "goods_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - goods_state。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_state。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "enable_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】store_goods_master - enable_status。 【JSON字段】store_goods_master.json - data.orderGoodsList - enable_status。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "send_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - send_state。 【JSON字段】store_goods_master.json - data.orderGoodsList - send_state。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】store_goods_master - is_delete。 【JSON字段】store_goods_master.json - data.orderGoodsList - is_delete。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "commodity_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "not_sale",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 26
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,255 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_store_goods_ex",
|
||||
"ods_source": "store_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793025851560005(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_master - id。 【JSON字段】store_goods_master.json - data.orderGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_master - siteName。 【JSON字段】store_goods_master.json - data.orderGoodsList - siteName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】桶(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - unit。 【JSON字段】store_goods_master.json - data.orderGoodsList - unit。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "goods_barcode",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - goods_bar_code。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_bar_code。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_cover_url",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】https://oss.ficoo.vip/admin/8M1WM7_1753204221337.jpg(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - goods_cover。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_cover。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "pinyin_initial",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】HWDPM,GWDPM(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - pinyin_initial。 【JSON字段】store_goods_master.json - data.orderGoodsList - pinyin_initial。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "stock_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】18(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - stock。 【JSON字段】store_goods_master.json - data.orderGoodsList - stock。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "stock_secondary_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】0(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - stock_A。 【JSON字段】store_goods_master.json - data.orderGoodsList - stock_A。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "safety_stock_qty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】0(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - safe_stock。 【JSON字段】store_goods_master.json - data.orderGoodsList - safe_stock。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "cost_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_master - cost_price。 【JSON字段】store_goods_master.json - data.orderGoodsList - cost_price。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "cost_price_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】1(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_master - cost_price_type。 【JSON字段】store_goods_master.json - data.orderGoodsList - cost_price_type。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "provisional_total_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】暂估总成本,区别于实际采购成本(total_purchase_cost)。 【示例】0.0。 【ODS来源】store_goods_master - provisional_total_cost。 【JSON字段】store_goods_master.json - data.orderGoodsList - provisionalTotalCost。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "total_purchase_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_master - total_purchase_cost。 【JSON字段】store_goods_master.json - data.orderGoodsList - total_purchase_cost。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "min_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】7.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_master - min_discount_price。 【JSON字段】store_goods_master.json - data.orderGoodsList - min_discount_price。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "is_discountable",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_master - able_discount。 【JSON字段】store_goods_master.json - data.orderGoodsList - able_discount。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "days_on_shelf",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】13(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - days_available。 【JSON字段】store_goods_master.json - data.orderGoodsList - days_available。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "audit_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】2(状态枚举字段,用于标识业务状态)。 【ODS来源】store_goods_master - audit_status。 【JSON字段】store_goods_master.json - data.orderGoodsList - audit_status。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "sale_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - sale_channel。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_channel。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】store_goods_master - is_warehousing。 【JSON字段】store_goods_master.json - data.orderGoodsList - is_warehousing。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "freeze_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】0(状态枚举字段,用于标识业务状态)。 【ODS来源】store_goods_master - freeze。 【JSON字段】store_goods_master.json - data.orderGoodsList - freeze。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "forbid_sell_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】store_goods_master - forbid_sell_status。 【JSON字段】store_goods_master.json - data.orderGoodsList - forbid_sell_status。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "able_site_transfer",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - able_site_transfer。 【JSON字段】store_goods_master.json - data.orderGoodsList - able_site_transfer。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "custom_label_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - custom_label_type。 【JSON字段】store_goods_master.json - data.orderGoodsList - custom_label_type。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "option_required",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - option_required。 【JSON字段】store_goods_master.json - data.orderGoodsList - option_required。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - remark。 【JSON字段】store_goods_master.json - data.orderGoodsList - remark。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "sort_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】100(维度字段,用于补充维度属性)。 【ODS来源】store_goods_master - sort。 【JSON字段】store_goods_master.json - data.orderGoodsList - sort。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】store_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "batch_stock_quantity",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_table",
|
||||
"ods_source": "site_tables_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791964216463493(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】site_tables_master - id。 【JSON字段】site_tables_master.json - data.siteTables - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】site_tables_master - site_id。 【JSON字段】site_tables_master.json - data.siteTables - site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A1(名称字段,用于展示与辅助识别)。 【ODS来源】site_tables_master - table_name。 【JSON字段】site_tables_master.json - data.siteTables - table_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791963794329671(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】site_tables_master - site_table_area_id。 【JSON字段】site_tables_master.json - data.siteTables - site_table_area_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A区(名称字段,用于展示与辅助识别)。 【ODS来源】site_tables_master - areaName。 【JSON字段】site_tables_master.json - data.siteTables - areaName。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791963794329671(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】site_tables_master - site_table_area_id。 【JSON字段】site_tables_master.json - data.siteTables - site_table_area_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "table_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】site_tables_master - table_price。 【JSON字段】site_tables_master.json - data.siteTables - table_price。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "'9999-12-31 00:00:00+08'::timestamp with time zone",
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_table_ex",
|
||||
"ods_source": "site_tables_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791964216463493(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】site_tables_master - id。 【JSON字段】site_tables_master.json - data.siteTables - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "show_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】site_tables_master - show_status。 【JSON字段】site_tables_master.json - data.siteTables - show_status。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "is_online_reservation",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】2(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】site_tables_master - is_online_reservation。 【JSON字段】site_tables_master.json - data.siteTables - is_online_reservation。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "table_cloth_use_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】1863727(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】site_tables_master - table_cloth_use_time。 【JSON字段】site_tables_master.json - data.siteTables - table_cloth_use_time。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "table_cloth_use_cycle",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】site_tables_master - table_cloth_use_Cycle。 【JSON字段】site_tables_master.json - data.siteTables - table_cloth_use_Cycle。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "table_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】site_tables_master - table_status。 【JSON字段】site_tables_master.json - data.siteTables - table_status。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "'9999-12-31 00:00:00+08'::timestamp with time zone",
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": "1",
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】site_tables_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌配置的创建时间或最近一次创建/复制时间。 【示例】2025-07-15 17:52:54。 【ODS来源】site_tables_master - create_time。 【JSON字段】site_tables_master.json - data.siteTables - create_time。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "light_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台灯状态枚举(如 2=已开灯),用于标识台桌灯光当前状态。 【示例】2。 【ODS来源】site_tables_master - light_status。 【JSON字段】site_tables_master.json - data.siteTables - light_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "tablestatusname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌状态中文名称(如\"空闲中\"\"使用中\"),仅展示用途。 【示例】空闲中。 【ODS来源】site_tables_master - tablestatusname。 【JSON字段】site_tables_master.json - data.siteTables - tableStatusName。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称快照,冗余字段,配合 site_id 使用。 【示例】朗朗桌球。 【ODS来源】site_tables_master - sitename。 【JSON字段】site_tables_master.json - data.siteTables - siteName。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "applet_qr_code_url",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】小程序二维码 URL,用于扫码开台等场景。 【ODS来源】site_tables_master - appletQrCodeUrl。 【JSON字段】site_tables_master.json - data.siteTables - appletQrCodeUrl。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "audit_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】审核状态枚举(当前全部为 2,含义待确认)。 【示例】2。 【ODS来源】site_tables_master - audit_status。 【JSON字段】site_tables_master.json - data.siteTables - audit_status。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "charge_free",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否免费台(0=收费,1=免费),当前全部为 0。 【示例】0。 【ODS来源】site_tables_master - charge_free。 【JSON字段】site_tables_master.json - data.siteTables - charge_free。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "delay_lights_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台灯熄灭延迟时间(单位秒或分钟),结账后延时关灯。 【示例】0。 【ODS来源】site_tables_master - delay_lights_time。 【JSON字段】site_tables_master.json - data.siteTables - delay_lights_time。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "is_rest_area",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否休息区台桌(0=否,1=是),当前全部为 0。 【示例】0。 【ODS来源】site_tables_master - is_rest_area。 【JSON字段】site_tables_master.json - data.siteTables - is_rest_area。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "only_allow_groupon",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否仅允许团购开台(0/1/2 枚举)。 【示例】2。 【ODS来源】site_tables_master - only_allow_groupon。 【JSON字段】site_tables_master.json - data.siteTables - only_allow_groupon。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "order_delay_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单自动延时时长(到点后自动延长继续计费的时间)。 【示例】0。 【ODS来源】site_tables_master - order_delay_time。 【JSON字段】site_tables_master.json - data.siteTables - order_delay_time。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "self_table",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否自有台桌(1=自有),当前全部为 1。 【示例】1。 【ODS来源】site_tables_master - self_table。 【JSON字段】site_tables_master.json - data.siteTables - self_table。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "temporary_light_second",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】临时开灯秒数,用于短时照明场景。 【示例】0。 【ODS来源】site_tables_master - temporary_light_second。 【JSON字段】site_tables_master.json - data.siteTables - temporary_light_second。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "virtual_table",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否虚拟台桌(0=实体台,1=虚拟台)。 【示例】0。 【ODS来源】site_tables_master - virtual_table。 【JSON字段】site_tables_master.json - data.siteTables - virtual_table。",
|
||||
"ordinal_position": 24
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_tenant_goods",
|
||||
"ods_source": "tenant_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791925230096261(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - tenant_id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "supplier_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - supplier_id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - supplier_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "category_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】饮料(名称字段,用于展示与辅助识别)。 【ODS来源】tenant_goods_master - categoryName。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - categoryName。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528350539(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - goods_category_id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_category_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_second_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528350540(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - goods_second_category_id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_second_category_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】东方树叶(名称字段,用于展示与辅助识别)。 【ODS来源】tenant_goods_master - goods_name。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_name。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "goods_number",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】tenant_goods_master - goods_number。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_number。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】瓶(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - unit。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - unit。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "market_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】8.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】tenant_goods_master - market_price。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - market_price。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "goods_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - goods_state。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_state。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-07-15 17:13:15(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】tenant_goods_master - create_time。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - create_time。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-10-29 23:51:38(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】tenant_goods_master - update_time。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - update_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】tenant_goods_master - is_delete。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - is_delete。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "not_sale",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 19
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dim_tenant_goods_ex",
|
||||
"ods_source": "tenant_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791925230096261(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "remark_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】tenant_goods_master - remark_name。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - remark_name。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "pinyin_initial",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】DFSY,DFSX(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - pinyin_initial。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - pinyin_initial。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "goods_cover",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】https://oss.ficoo.vip/admin/ZwS8fj_1753175129443.jpg(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - goods_cover。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_cover。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_bar_code",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】NULL(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - goods_bar_code。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_bar_code。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "commodity_code",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】10000028(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - commodity_code。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodity_code。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "commodity_code_list",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】10000028(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - commodity_code。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodity_code。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "min_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】tenant_goods_master - min_discount_price。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - min_discount_price。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "cost_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】tenant_goods_master - cost_price。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - cost_price。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "cost_price_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】1(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】tenant_goods_master - cost_price_type。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - cost_price_type。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "able_discount",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】tenant_goods_master - able_discount。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - able_discount。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "sale_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】1(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - sale_channel。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - sale_channel。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】tenant_goods_master - is_warehousing。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - is_warehousing。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "is_in_site",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】false(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】tenant_goods_master - isInSite(派生:BOOLEAN(isInSite))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - isInSite(派生:BOOLEAN(isInSite))。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "able_site_transfer",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】2(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - able_site_transfer。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - able_site_transfer。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "common_sale_royalty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - common_sale_royalty。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - common_sale_royalty。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "point_sale_royalty",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】维度字段,用于补充维度属性。 【示例】0(维度字段,用于补充维度属性)。 【ODS来源】tenant_goods_master - point_sale_royalty。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - point_sale_royalty。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "out_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】tenant_goods_master - out_goods_id。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - out_goods_id。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "scd2_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 开始时间(版本生效起点),用于维度慢变追踪。 【示例】2025-11-10T00:00:00+08:00(SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "scd2_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪。 【示例】9999-12-31T00:00:00+00:00(SCD2 结束时间(默认 9999-12-31 表示当前版本),用于维度慢变追踪)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "scd2_is_current",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录。 【示例】1(SCD2 当前版本标记(1=当前,0=历史),用于筛选最新维度记录)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "scd2_version",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】SCD2 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1(SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】tenant_goods_master - 无(DWD慢变元数据)。 【JSON字段】无 - DWD慢变元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_assistant_service_log",
|
||||
"ods_source": "assistant_service_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "assistant_service_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913441292165(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2957784612605829(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - order_trade_no。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_trade_no。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913171693253(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - order_settle_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_settle_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - order_pay_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_pay_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "order_assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单中助教项目明细的内部 ID(订单级),与 site_assistant_id(档案级)不同。 【示例】2957788717240005。 【ODS来源】assistant_service_records - order_assistant_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_assistant_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "order_assistant_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - order_assistant_type。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_assistant_type。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - tenant_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tenant_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - site_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793020259897413(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - site_table_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_table_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - tenant_member_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tenant_member_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - system_member_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - system_member_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "assistant_no",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】27(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - assistantNo。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistantNo。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】泡芙(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - nickname。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - nickname。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "site_assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店维度的助教档案 ID,关联 assistant_accounts_master.id。 【示例】2946266869435205。 【ODS来源】assistant_service_records - site_assistant_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_assistant_id。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2946266868976453(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - user_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - user_id。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "assistant_team_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2792011585884037(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - assistant_team_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistant_team_id。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "person_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2946266869336901(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - person_org_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - person_org_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "assistant_level",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】10(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - assistant_level。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistant_level。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "level_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】初级(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - levelName。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - levelName。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "skill_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683529513797(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - skill_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skill_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "skill_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】基础课(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - skillName。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skillName。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】98.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - ledger_unit_price。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_unit_price。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】206.67(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - ledger_amount。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_amount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "projected_income",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】168.0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - projected_income。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - projected_income。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - coupon_deduct_money。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - coupon_deduct_money。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "income_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】7560(数量/时长字段,用于统计与计量)。 【ODS来源】assistant_service_records - income_seconds。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - income_seconds。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "real_use_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】7592(数量/时长字段,用于统计与计量)。 【ODS来源】assistant_service_records - real_use_seconds。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - real_use_seconds。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "add_clock",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - add_clock。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - add_clock。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:25:11(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - create_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - create_time。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "start_use_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 21:18:18(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - start_use_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - start_use_time。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "last_use_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:24:50(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - last_use_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - last_use_time。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_service_records - is_delete。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_delete。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "real_service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 33
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_assistant_service_log_ex",
|
||||
"ods_source": "assistant_service_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "assistant_service_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913441292165(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】S1(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - tableName。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tableName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "assistant_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】何海婷(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - assistantName。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistantName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】27-泡芙(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - ledger_name。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - ledger_group_name。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_group_name。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】7592(数量/时长字段,用于统计与计量)。 【ODS来源】assistant_service_records - ledger_count。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_count。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - member_discount_amount。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - member_discount_amount。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "manual_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - manual_discount_amount。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - manual_discount_amount。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】assistant_service_records - service_money。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - service_money。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "returns_clock",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - returns_clock。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - returns_clock。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "ledger_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 21:18:18(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - ledger_start_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_start_time。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "ledger_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:24:50(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - ledger_end_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_end_time。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_service_records - ledger_status。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_status。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "is_confirm",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】2(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_service_records - is_confirm。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_confirm。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_service_records - is_single_order。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_single_order。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "is_not_responding",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_service_records - is_not_responding。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_not_responding。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "is_trash",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】assistant_service_records - is_trash。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_trash。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "trash_applicant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - trash_applicant_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_applicant_id。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "trash_applicant_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - trash_applicant_name。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_applicant_name。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "trash_reason",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - trash_reason。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_reason。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - salesman_user_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_user_id。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】assistant_service_records - salesman_name。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_name。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】assistant_service_records - salesman_org_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_org_id。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "skill_grade",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - skill_grade。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skill_grade。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "service_grade",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - service_grade。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - service_grade。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "composite_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0.0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - composite_grade。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - composite_grade。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "sum_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0.0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - sum_grade。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - sum_grade。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "get_grade_times",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】assistant_service_records - get_grade_times。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - get_grade_times。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "grade_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】assistant_service_records - grade_status。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - grade_status。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "composite_grade_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】0001-01-01 00:00:00(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】assistant_service_records - composite_grade_time。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - composite_grade_time。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "assistant_team_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员 ID,录入/结算这条助教服务的员工。 【ODS来源】assistant_service_records - operator_id。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - operator_id。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名(带职位前缀),与 operator_id 一起使用,便于直接阅读。 【ODS来源】assistant_service_records - operator_name。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - operator_name。",
|
||||
"ordinal_position": 33
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"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_no(VARCHAR)同源但类型不同,便于数值比较和关联。 【示例】6。 【ODS来源】assistant_cancellation_records - assistanton。 【JSON字段】assistant_cancellation_records.json - data.abolitionAssistants - assistantOn。",
|
||||
"ordinal_position": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_goods_stock_movement",
|
||||
"ods_source": "goods_stock_movements",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_goods_stock_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goods_second_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "stock_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "change_num",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "start_num",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "end_num",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "change_num_a",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "start_num_a",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "end_num_a",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 20
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_goods_stock_summary",
|
||||
"ods_source": "goods_stock_summary",
|
||||
"columns": [
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "goods_unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_category_second_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "category_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "range_start_stock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "range_end_stock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "range_in",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "range_out",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "range_sale",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "range_sale_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "range_inventory",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "current_stock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 17
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_groupbuy_redemption",
|
||||
"ods_source": "group_buy_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "redemption_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029615941(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - tenant_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - site_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793003705192517(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - table_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791960001957765(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - tenant_table_area_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tenant_table_area_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "table_charge_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】group_buy_redemption_records - table_charge_seconds。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_charge_seconds。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2957858167230149(明细字段,用于记录事实取值)。 【ODS来源】group_buy_redemption_records - order_trade_no。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_trade_no。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957922914357125(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - order_settle_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_settle_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957858168229573(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - order_coupon_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_coupon_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "coupon_origin_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957858168229573(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - coupon_origin_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_origin_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "promotion_activity_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957858166460101(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - promotion_activity_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_activity_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "promotion_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2798727423528005(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - promotion_coupon_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_coupon_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】group_buy_redemption_records - order_coupon_channel。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_coupon_channel。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】29.9(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - ledger_unit_price。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_unit_price。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】group_buy_redemption_records - ledger_count。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_count。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - ledger_amount。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_amount。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "coupon_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - coupon_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_money。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "promotion_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】group_buy_redemption_records - promotion_seconds。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_seconds。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "coupon_code",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0107892475999(明细字段,用于记录事实取值)。 【ODS来源】group_buy_redemption_records - coupon_code。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_code。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】group_buy_redemption_records - is_single_order。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - is_single_order。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】group_buy_redemption_records - is_delete。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - is_delete。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】全天A区中八一小时(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - ledger_name。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_name。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】group_buy_redemption_records - create_time。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - create_time。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "member_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "coupon_sale_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 25
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_groupbuy_redemption_ex",
|
||||
"ods_source": "group_buy_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "redemption_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029615941(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - siteName。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - siteName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A17(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - tableName。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tableName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "table_area_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A区(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - tableAreaName。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tableAreaName。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - order_pay_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_pay_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_option_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - goodsOptionPrice。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - goodsOptionPrice。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goods_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - goods_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - goods_promotion_money。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "table_service_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - table_service_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_service_promotion_money。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "assistant_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - assistant_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - assistant_promotion_money。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - assistant_service_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - assistant_service_promotion_money。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "reward_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - reward_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - reward_promotion_money。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "recharge_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】group_buy_redemption_records - recharge_promotion_money。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - recharge_promotion_money。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "offer_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】group_buy_redemption_records - offer_type。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - offer_type。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】group_buy_redemption_records - ledger_status。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_status。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - operator_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - operator_id。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - operator_name。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - operator_name。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - salesman_user_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_user_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - salesman_name。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_name。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "salesman_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - salesman_role_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_role_id。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】group_buy_redemption_records - sales_man_org_id。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - sales_man_org_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】group_buy_redemption_records - ledger_group_name。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_group_name。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "table_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "table_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "goods_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "good_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "assistant_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "recharge_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 28
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_member_balance_change",
|
||||
"ods_source": "member_balance_changes",
|
||||
"columns": [
|
||||
{
|
||||
"name": "balance_change_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957881605869253(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - tenant_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - site_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - register_site_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - register_site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2799212845565701(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - tenant_member_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_member_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2799212844549893(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - system_member_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - system_member_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2799219999295237(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - tenant_member_card_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_member_card_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "card_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793249295533893(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - card_type_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - card_type_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "card_type_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】储值卡(名称字段,用于展示与辅助识别)。 【ODS来源】member_balance_changes - memberCardTypeName。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberCardTypeName。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "member_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】曾丹烨(名称字段,用于展示与辅助识别)。 【ODS来源】member_balance_changes - memberName。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberName。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "member_mobile",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】13922213242(明细字段,用于记录事实取值)。 【ODS来源】member_balance_changes - memberMobile。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberMobile。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "balance_before",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】816.3(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_balance_changes - before。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - before。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "change_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】-120.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_balance_changes - account_data。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - account_data。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "balance_after",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】696.3(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_balance_changes - after。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - after。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "from_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】member_balance_changes - from_type。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - from_type。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】member_balance_changes - payment_method。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - payment_method。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "change_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 22:52:48(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】member_balance_changes - create_time。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - create_time。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】member_balance_changes - is_delete。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - is_delete。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】充值退款(明细字段,用于记录事实取值)。 【ODS来源】member_balance_changes - remark。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - remark。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "principal_before",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段:本金变动前余额。 【ODS来源】member_balance_changes - principal_before。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - principal_before。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "principal_after",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段:本金变动后余额。 【ODS来源】member_balance_changes - principal_after。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - principal_after。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "principal_change_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段:本金变动金额(principal_after - principal_before),ETL 计算字段。",
|
||||
"ordinal_position": 22
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_member_balance_change_ex",
|
||||
"ods_source": "member_balance_changes",
|
||||
"columns": [
|
||||
{
|
||||
"name": "balance_change_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957881605869253(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "pay_site_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】member_balance_changes - paySiteName。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - paySiteName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "register_site_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】member_balance_changes - registerSiteName。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - registerSiteName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】member_balance_changes - refund_amount。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - refund_amount。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】member_balance_changes - operator_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - operator_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】member_balance_changes - operator_name。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - operator_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "principal_data",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联业务单据 ID,指向触发本次余额变动的业务记录(如充值单、订单、结算单等),按 from_type 不同指向不同表。 【示例】2957881518788421。 【ODS来源】member_balance_changes - relate_id。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - relate_id。",
|
||||
"ordinal_position": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_payment",
|
||||
"ods_source": "payment_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "payment_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924026486597(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】payment_transactions - id。 【JSON字段】payment_transactions.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】payment_transactions - site_id。 【JSON字段】payment_transactions.json - $ - site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "relate_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2(明细字段,用于记录事实取值)。 【ODS来源】payment_transactions - relate_type。 【JSON字段】payment_transactions.json - $ - relate_type。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957922914357125(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】payment_transactions - relate_id。 【JSON字段】payment_transactions.json - $ - relate_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】10.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】payment_transactions - pay_amount。 【JSON字段】payment_transactions.json - $ - pay_amount。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "pay_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】2(状态枚举字段,用于标识业务状态)。 【ODS来源】payment_transactions - pay_status。 【JSON字段】payment_transactions.json - $ - pay_status。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】4(明细字段,用于记录事实取值)。 【ODS来源】payment_transactions - payment_method。 【JSON字段】payment_transactions.json - $ - payment_method。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "online_pay_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】payment_transactions - online_pay_channel。 【JSON字段】payment_transactions.json - $ - online_pay_channel。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】payment_transactions - create_time。 【JSON字段】payment_transactions.json - $ - create_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】payment_transactions - pay_time。 【JSON字段】payment_transactions.json - $ - pay_time。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "pay_date",
|
||||
"data_type": "date",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】payment_transactions - pay_time(派生:DATE(pay_time))。 【JSON字段】payment_transactions.json - $ - pay_time(派生:DATE(pay_time))。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_platform_coupon_redemption",
|
||||
"ods_source": "platform_coupon_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "platform_coupon_redemption_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957929042218501(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - id。 【JSON字段】platform_coupon_redemption_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - tenant_id。 【JSON字段】platform_coupon_redemption_records.json - $ - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - site_id。 【JSON字段】platform_coupon_redemption_records.json - $ - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "coupon_code",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0102701209726(明细字段,用于记录事实取值)。 【ODS来源】platform_coupon_redemption_records - coupon_code。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_code。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "coupon_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】platform_coupon_redemption_records - coupon_channel。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_channel。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "coupon_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】【全天可用】中八桌球一小时(A区)(名称字段,用于展示与辅助识别)。 【ODS来源】platform_coupon_redemption_records - coupon_name。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "sale_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】29.9(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】platform_coupon_redemption_records - sale_price。 【JSON字段】platform_coupon_redemption_records.json - $ - sale_price。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "coupon_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】platform_coupon_redemption_records - coupon_money。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_money。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "coupon_free_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】0(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】platform_coupon_redemption_records - coupon_free_time。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_free_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "channel_deal_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】1128411555(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - channel_deal_id。 【JSON字段】platform_coupon_redemption_records.json - $ - channel_deal_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "deal_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】1345108507(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - deal_id。 【JSON字段】platform_coupon_redemption_records.json - $ - deal_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "group_package_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - group_package_id。 【JSON字段】platform_coupon_redemption_records.json - $ - group_package_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "site_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957929043037702(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - site_order_id。 【JSON字段】platform_coupon_redemption_records.json - $ - site_order_id。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793001904918661(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - table_id。 【JSON字段】platform_coupon_redemption_records.json - $ - table_id。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "certificate_id",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】5008024789379597447(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - certificate_id。 【JSON字段】platform_coupon_redemption_records.json - $ - certificate_id。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "verify_id",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】7570689090418149418(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - verify_id。 【JSON字段】platform_coupon_redemption_records.json - $ - verify_id。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "use_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】platform_coupon_redemption_records - use_status。 【JSON字段】platform_coupon_redemption_records.json - $ - use_status。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】platform_coupon_redemption_records - is_delete。 【JSON字段】platform_coupon_redemption_records.json - $ - is_delete。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:41:03(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】platform_coupon_redemption_records - create_time。 【JSON字段】platform_coupon_redemption_records.json - $ - create_time。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "consume_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:41:04(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】platform_coupon_redemption_records - consume_time。 【JSON字段】platform_coupon_redemption_records.json - $ - consume_time。",
|
||||
"ordinal_position": 20
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_platform_coupon_redemption_ex",
|
||||
"ods_source": "platform_coupon_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "platform_coupon_redemption_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957929042218501(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - id。 【JSON字段】platform_coupon_redemption_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "coupon_cover",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】platform_coupon_redemption_records - coupon_cover。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_cover。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "coupon_remark",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】617547ec-9697-4f58-a700-b30a49e88904||CgYIASAHKAESLgos9ZhHDryhHb0z3RpdBZ0dVoaQbkldBcx/XTXPV8Te+9SEqYOa7aDp8nbKOpsaAA==(明细字段,用于记录事实取值)。 【ODS来源】platform_coupon_redemption_records - coupon_remark。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_remark。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "groupon_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】platform_coupon_redemption_records - groupon_type。 【JSON字段】platform_coupon_redemption_records.json - $ - groupon_type。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】platform_coupon_redemption_records - operator_id。 【JSON字段】platform_coupon_redemption_records.json - $ - operator_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】platform_coupon_redemption_records - operator_name。 【JSON字段】platform_coupon_redemption_records.json - $ - operator_name。",
|
||||
"ordinal_position": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_recharge_order",
|
||||
"ods_source": "recharge_settlements",
|
||||
"columns": [
|
||||
{
|
||||
"name": "recharge_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - id。 【JSON字段】recharge_settlements.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - tenantid。 【JSON字段】recharge_settlements.json - $ - tenantid。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - siteid。 【JSON字段】recharge_settlements.json - $ - siteid。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - memberid。 【JSON字段】recharge_settlements.json - $ - memberid。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "member_name_snapshot",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - membername。 【JSON字段】recharge_settlements.json - $ - membername。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "member_phone_snapshot",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - memberphone。 【JSON字段】recharge_settlements.json - $ - memberphone。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - tenantmembercardid。 【JSON字段】recharge_settlements.json - $ - tenantmembercardid。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "member_card_type_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】recharge_settlements - membercardtypename。 【JSON字段】recharge_settlements.json - $ - membercardtypename。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "settle_relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - settlerelateid。 【JSON字段】recharge_settlements.json - $ - settlerelateid。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "settle_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - settletype。 【JSON字段】recharge_settlements.json - $ - settletype。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "settle_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】recharge_settlements - settlename。 【JSON字段】recharge_settlements.json - $ - settlename。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "is_first",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】recharge_settlements - isfirst。 【JSON字段】recharge_settlements.json - $ - isfirst。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - payamount。 【JSON字段】recharge_settlements.json - $ - payamount。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - refundamount。 【JSON字段】recharge_settlements.json - $ - refundamount。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "point_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - pointamount。 【JSON字段】recharge_settlements.json - $ - pointamount。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "cash_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - cashamount。 【JSON字段】recharge_settlements.json - $ - cashamount。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - paymentmethod。 【JSON字段】recharge_settlements.json - $ - paymentmethod。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】recharge_settlements - createtime。 【JSON字段】recharge_settlements.json - $ - createtime。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】recharge_settlements - paytime。 【JSON字段】recharge_settlements.json - $ - paytime。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "pl_coupon_sale_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【ODS来源】recharge_settlements - plcouponsaleamount。 【JSON字段】recharge_settlements.json - $ - plcouponsaleamount。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "mervou_sales_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【ODS来源】recharge_settlements - mervousalesamount。 【JSON字段】recharge_settlements.json - $ - mervousalesamount。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "electricity_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【ODS来源】recharge_settlements - electricitymoney。 【JSON字段】recharge_settlements.json - $ - electricitymoney。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "real_electricity_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【ODS来源】recharge_settlements - realelectricitymoney。 【JSON字段】recharge_settlements.json - $ - realelectricitymoney。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "electricity_adjust_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【ODS来源】recharge_settlements - electricityadjustmoney。 【JSON字段】recharge_settlements.json - $ - electricityadjustmoney。",
|
||||
"ordinal_position": 24
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_recharge_order_ex",
|
||||
"ods_source": "recharge_settlements",
|
||||
"columns": [
|
||||
{
|
||||
"name": "recharge_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - id。 【JSON字段】recharge_settlements.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_name_snapshot",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - sitename。 【JSON字段】recharge_settlements.json - $ - sitename。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "settle_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】NULL(状态枚举字段,用于标识业务状态)。 【ODS来源】recharge_settlements - settlestatus。 【JSON字段】recharge_settlements.json - $ - settlestatus。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "is_bind_member",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】recharge_settlements - isbindmember(派生:BOOLEAN(isbindmember))。 【JSON字段】recharge_settlements.json - $ - isbindmember(派生:BOOLEAN(isbindmember))。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "is_activity",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】recharge_settlements - isactivity(派生:BOOLEAN(isactivity))。 【JSON字段】recharge_settlements.json - $ - isactivity(派生:BOOLEAN(isactivity))。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "is_use_coupon",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】recharge_settlements - isusecoupon(派生:BOOLEAN(isusecoupon))。 【JSON字段】recharge_settlements.json - $ - isusecoupon(派生:BOOLEAN(isusecoupon))。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "is_use_discount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】recharge_settlements - isusediscount(派生:BOOLEAN(isusediscount))。 【JSON字段】recharge_settlements.json - $ - isusediscount(派生:BOOLEAN(isusediscount))。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "can_be_revoked",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】recharge_settlements - canberevoked(派生:BOOLEAN(canberevoked))。 【JSON字段】recharge_settlements.json - $ - canberevoked(派生:BOOLEAN(canberevoked))。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "online_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - onlineamount。 【JSON字段】recharge_settlements.json - $ - onlineamount。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "balance_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - balanceamount。 【JSON字段】recharge_settlements.json - $ - balanceamount。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - cardamount。 【JSON字段】recharge_settlements.json - $ - cardamount。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "coupon_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - couponamount。 【JSON字段】recharge_settlements.json - $ - couponamount。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "recharge_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - rechargecardamount。 【JSON字段】recharge_settlements.json - $ - rechargecardamount。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "gift_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - giftcardamount。 【JSON字段】recharge_settlements.json - $ - giftcardamount。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "prepay_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - prepaymoney。 【JSON字段】recharge_settlements.json - $ - prepaymoney。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "consume_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - consumemoney。 【JSON字段】recharge_settlements.json - $ - consumemoney。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - goodsmoney。 【JSON字段】recharge_settlements.json - $ - goodsmoney。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "real_goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - realgoodsmoney。 【JSON字段】recharge_settlements.json - $ - realgoodsmoney。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "table_charge_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - tablechargemoney。 【JSON字段】recharge_settlements.json - $ - tablechargemoney。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - servicemoney。 【JSON字段】recharge_settlements.json - $ - servicemoney。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "activity_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】recharge_settlements - activitydiscount。 【JSON字段】recharge_settlements.json - $ - activitydiscount。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "all_coupon_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】recharge_settlements - allcoupondiscount。 【JSON字段】recharge_settlements.json - $ - allcoupondiscount。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "goods_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - goodspromotionmoney。 【JSON字段】recharge_settlements.json - $ - goodspromotionmoney。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "assistant_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - assistantpromotionmoney。 【JSON字段】recharge_settlements.json - $ - assistantpromotionmoney。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "assistant_pd_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - assistantpdmoney。 【JSON字段】recharge_settlements.json - $ - assistantpdmoney。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "assistant_cx_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - assistantcxmoney。 【JSON字段】recharge_settlements.json - $ - assistantcxmoney。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "assistant_manual_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】recharge_settlements - assistantmanualdiscount。 【JSON字段】recharge_settlements.json - $ - assistantmanualdiscount。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "coupon_sale_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - couponsaleamount。 【JSON字段】recharge_settlements.json - $ - couponsaleamount。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - memberdiscountamount。 【JSON字段】recharge_settlements.json - $ - memberdiscountamount。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "point_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - pointdiscountprice。 【JSON字段】recharge_settlements.json - $ - pointdiscountprice。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "point_discount_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - pointdiscountcost。 【JSON字段】recharge_settlements.json - $ - pointdiscountcost。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "adjust_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - adjustamount。 【JSON字段】recharge_settlements.json - $ - adjustamount。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "rounding_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】recharge_settlements - roundingamount。 【JSON字段】recharge_settlements.json - $ - roundingamount。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - operatorid。 【JSON字段】recharge_settlements.json - $ - operatorid。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "operator_name_snapshot",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - operatorname。 【JSON字段】recharge_settlements.json - $ - operatorname。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - salesmanuserid。 【JSON字段】recharge_settlements.json - $ - salesmanuserid。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】recharge_settlements - salesmanname。 【JSON字段】recharge_settlements.json - $ - salesmanname。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "order_remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】recharge_settlements - orderremark。 【JSON字段】recharge_settlements.json - $ - orderremark。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - tableid。 【JSON字段】recharge_settlements.json - $ - tableid。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "serial_number",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】recharge_settlements - serialnumber。 【JSON字段】recharge_settlements.json - $ - serialnumber。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "revoke_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】recharge_settlements - revokeorderid。 【JSON字段】recharge_settlements.json - $ - revokeorderid。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "revoke_order_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】recharge_settlements - revokeordername。 【JSON字段】recharge_settlements.json - $ - revokeordername。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "revoke_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】recharge_settlements - revoketime。 【JSON字段】recharge_settlements.json - $ - revoketime。",
|
||||
"ordinal_position": 43
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_refund",
|
||||
"ods_source": "refund_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "refund_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955202296416389(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - id。 【JSON字段】refund_transactions.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - tenant_id。 【JSON字段】refund_transactions.json - $ - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - site_id。 【JSON字段】refund_transactions.json - $ - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "relate_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】5(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - relate_type。 【JSON字段】refund_transactions.json - $ - relate_type。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955078219057349(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - relate_id。 【JSON字段】refund_transactions.json - $ - relate_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】-5000.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - pay_amount。 【JSON字段】refund_transactions.json - $ - pay_amount。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "channel_fee",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - channel_fee。 【JSON字段】refund_transactions.json - $ - channel_fee。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-08 01:27:16(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】refund_transactions - pay_time。 【JSON字段】refund_transactions.json - $ - pay_time。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-08 01:27:16(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】refund_transactions - create_time。 【JSON字段】refund_transactions.json - $ - create_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】4(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - payment_method。 【JSON字段】refund_transactions.json - $ - payment_method。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - member_id。 【JSON字段】refund_transactions.json - $ - member_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - member_card_id。 【JSON字段】refund_transactions.json - $ - member_card_id。",
|
||||
"ordinal_position": 12
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_refund_ex",
|
||||
"ods_source": "refund_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "refund_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2955202296416389(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - id。 【JSON字段】refund_transactions.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】refund_transactions - tenantName。 【JSON字段】refund_transactions.json - $ - tenantName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "pay_sn",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - pay_sn。 【JSON字段】refund_transactions.json - $ - pay_sn。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - refund_amount。 【JSON字段】refund_transactions.json - $ - refund_amount。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "round_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - round_amount。 【JSON字段】refund_transactions.json - $ - round_amount。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "balance_frozen_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - balance_frozen_amount。 【JSON字段】refund_transactions.json - $ - balance_frozen_amount。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "card_frozen_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】refund_transactions - card_frozen_amount。 【JSON字段】refund_transactions.json - $ - card_frozen_amount。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "pay_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】2(状态枚举字段,用于标识业务状态)。 【ODS来源】refund_transactions - pay_status。 【JSON字段】refund_transactions.json - $ - pay_status。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "action_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - action_type。 【JSON字段】refund_transactions.json - $ - action_type。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "is_revoke",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】refund_transactions - is_revoke。 【JSON字段】refund_transactions.json - $ - is_revoke。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】refund_transactions - is_delete。 【JSON字段】refund_transactions.json - $ - is_delete。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "check_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】refund_transactions - check_status。 【JSON字段】refund_transactions.json - $ - check_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "online_pay_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - online_pay_channel。 【JSON字段】refund_transactions.json - $ - online_pay_channel。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "online_pay_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】0(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - online_pay_type。 【JSON字段】refund_transactions.json - $ - online_pay_type。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "pay_terminal",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - pay_terminal。 【JSON字段】refund_transactions.json - $ - pay_terminal。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "pay_config_id",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - pay_config_id。 【JSON字段】refund_transactions.json - $ - pay_config_id。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "cashier_point_id",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - cashier_point_id。 【JSON字段】refund_transactions.json - $ - cashier_point_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - operator_id。 【JSON字段】refund_transactions.json - $ - operator_id。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "channel_payer_id",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】refund_transactions - channel_payer_id。 【JSON字段】refund_transactions.json - $ - channel_payer_id。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "channel_pay_no",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】refund_transactions - channel_pay_no。 【JSON字段】refund_transactions.json - $ - channel_pay_no。",
|
||||
"ordinal_position": 20
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_settlement_head",
|
||||
"ods_source": "settlement_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - id。 【JSON字段】settlement_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - tenantid。 【JSON字段】settlement_records.json - $ - tenantid。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - siteid。 【JSON字段】settlement_records.json - $ - siteid。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - sitename。 【JSON字段】settlement_records.json - $ - sitename。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - tableid。 【JSON字段】settlement_records.json - $ - tableid。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "settle_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - settlename。 【JSON字段】settlement_records.json - $ - settlename。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】settlement_records - settlerelateid。 【JSON字段】settlement_records.json - $ - settlerelateid。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】settlement_records - createtime。 【JSON字段】settlement_records.json - $ - createtime。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】settlement_records - paytime。 【JSON字段】settlement_records.json - $ - paytime。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "settle_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】settlement_records - settletype。 【JSON字段】settlement_records.json - $ - settletype。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "revoke_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - revokeorderid。 【JSON字段】settlement_records.json - $ - revokeorderid。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - memberid。 【JSON字段】settlement_records.json - $ - memberid。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "member_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - membername。 【JSON字段】settlement_records.json - $ - membername。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "member_phone",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】settlement_records - memberphone。 【JSON字段】settlement_records.json - $ - memberphone。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "member_card_account_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - tenantmembercardid。 【JSON字段】settlement_records.json - $ - tenantmembercardid。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "member_card_type_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - membercardtypename。 【JSON字段】settlement_records.json - $ - membercardtypename。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "is_bind_member",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】settlement_records - isbindmember。 【JSON字段】settlement_records.json - $ - isbindmember。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - memberdiscountamount。 【JSON字段】settlement_records.json - $ - memberdiscountamount。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "consume_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - consumemoney。 【JSON字段】settlement_records.json - $ - consumemoney。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "table_charge_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - tablechargemoney。 【JSON字段】settlement_records.json - $ - tablechargemoney。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - goodsmoney。 【JSON字段】settlement_records.json - $ - goodsmoney。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "real_goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - realgoodsmoney。 【JSON字段】settlement_records.json - $ - realgoodsmoney。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "assistant_pd_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - assistantpdmoney。 【JSON字段】settlement_records.json - $ - assistantpdmoney。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "assistant_cx_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - assistantcxmoney。 【JSON字段】settlement_records.json - $ - assistantcxmoney。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "adjust_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - adjustamount。 【JSON字段】settlement_records.json - $ - adjustamount。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - payamount。 【JSON字段】settlement_records.json - $ - payamount。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "balance_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - balanceamount。 【JSON字段】settlement_records.json - $ - balanceamount。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "recharge_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - rechargecardamount。 【JSON字段】settlement_records.json - $ - rechargecardamount。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "gift_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - giftcardamount。 【JSON字段】settlement_records.json - $ - giftcardamount。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "coupon_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - couponamount。 【JSON字段】settlement_records.json - $ - couponamount。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "rounding_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - roundingamount。 【JSON字段】settlement_records.json - $ - roundingamount。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "point_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - pointamount。 【JSON字段】settlement_records.json - $ - pointamount。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "electricity_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "real_electricity_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "electricity_adjust_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "pl_coupon_sale_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "mervou_sales_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 37
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_settlement_head_ex",
|
||||
"ods_source": "settlement_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - id。 【JSON字段】settlement_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "serial_number",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】settlement_records - serialnumber。 【JSON字段】settlement_records.json - $ - serialnumber。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "settle_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】NULL(状态枚举字段,用于标识业务状态)。 【ODS来源】settlement_records - settlestatus。 【JSON字段】settlement_records.json - $ - settlestatus。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "can_be_revoked",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】settlement_records - canberevoked(派生:BOOLEAN(canberevoked))。 【JSON字段】settlement_records.json - $ - canberevoked(派生:BOOLEAN(canberevoked))。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "revoke_order_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - revokeordername。 【JSON字段】settlement_records.json - $ - revokeordername。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "revoke_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】NULL(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】settlement_records - revoketime。 【JSON字段】settlement_records.json - $ - revoketime。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "is_first_order",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】settlement_records - isfirst(派生:BOOLEAN(isfirst))。 【JSON字段】settlement_records.json - $ - isfirst(派生:BOOLEAN(isfirst))。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - servicemoney。 【JSON字段】settlement_records.json - $ - servicemoney。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "cash_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - cashamount。 【JSON字段】settlement_records.json - $ - cashamount。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - cardamount。 【JSON字段】settlement_records.json - $ - cardamount。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "online_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - onlineamount。 【JSON字段】settlement_records.json - $ - onlineamount。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - refundamount。 【JSON字段】settlement_records.json - $ - refundamount。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "prepay_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - prepaymoney。 【JSON字段】settlement_records.json - $ - prepaymoney。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】settlement_records - paymentmethod。 【JSON字段】settlement_records.json - $ - paymentmethod。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "coupon_sale_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - couponsaleamount。 【JSON字段】settlement_records.json - $ - couponsaleamount。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "all_coupon_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】settlement_records - allcoupondiscount。 【JSON字段】settlement_records.json - $ - allcoupondiscount。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "goods_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - goodspromotionmoney。 【JSON字段】settlement_records.json - $ - goodspromotionmoney。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "assistant_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - assistantpromotionmoney。 【JSON字段】settlement_records.json - $ - assistantpromotionmoney。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "activity_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】settlement_records - activitydiscount。 【JSON字段】settlement_records.json - $ - activitydiscount。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "assistant_manual_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】settlement_records - assistantmanualdiscount。 【JSON字段】settlement_records.json - $ - assistantmanualdiscount。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "point_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - pointdiscountprice。 【JSON字段】settlement_records.json - $ - pointdiscountprice。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "point_discount_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】NULL(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】settlement_records - pointdiscountcost。 【JSON字段】settlement_records.json - $ - pointdiscountcost。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "is_use_coupon",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】settlement_records - isusecoupon(派生:BOOLEAN(isusecoupon))。 【JSON字段】settlement_records.json - $ - isusecoupon(派生:BOOLEAN(isusecoupon))。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "is_use_discount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【ODS来源】settlement_records - isusediscount(派生:BOOLEAN(isusediscount))。 【JSON字段】settlement_records.json - $ - isusediscount(派生:BOOLEAN(isusediscount))。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "is_activity",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】NULL(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】settlement_records - isactivity(派生:BOOLEAN(isactivity))。 【JSON字段】settlement_records.json - $ - isactivity(派生:BOOLEAN(isactivity))。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - operatorname。 【JSON字段】settlement_records.json - $ - operatorname。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】settlement_records - salesmanname。 【JSON字段】settlement_records.json - $ - salesmanname。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "order_remark",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】NULL(明细字段,用于记录事实取值)。 【ODS来源】settlement_records - orderremark。 【JSON字段】settlement_records.json - $ - orderremark。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - operatorid。 【JSON字段】settlement_records.json - $ - operatorid。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】NULL(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】settlement_records - salesmanuserid。 【JSON字段】settlement_records.json - $ - salesmanuserid。",
|
||||
"ordinal_position": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_store_goods_sale",
|
||||
"ods_source": "store_goods_sales_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "store_goods_sale_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029550406(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2957858167230149(明细字段,用于记录事实取值)。 【ODS来源】store_goods_sales_records - order_trade_no。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_trade_no。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957922914357125(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - order_settle_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_settle_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - order_pay_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_pay_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "order_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957858456391557(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - order_goods_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_goods_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - site_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - tenant_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793026176012357(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - site_goods_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_goods_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2792115932417925(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - tenant_goods_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528350540(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - tenant_goods_category_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_category_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_business_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683528317768(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - tenant_goods_business_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_business_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793003705192517(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - site_table_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_table_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】哇哈哈矿泉水(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - ledger_name。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_name。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】酒水(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - ledger_group_name。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_group_name。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】5.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - ledger_unit_price。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_unit_price。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_sales_records - ledger_count。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_count。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】5.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - ledger_amount。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_amount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】折扣金额,即原价被减免的金额部分。 【示例】0.0。 【ODS来源】store_goods_sales_records - discount_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - discount_money。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "real_goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】5.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - real_goods_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - real_goods_money。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "cost_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.01(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - cost_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - cost_money。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】store_goods_sales_records - ledger_status。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_status。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】store_goods_sales_records - is_delete。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - is_delete。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】store_goods_sales_records - create_time。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - create_time。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "coupon_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】折后单价(元/单位),即应用折扣后的商品单价。 【示例】5.00。 【ODS来源】store_goods_sales_records - discount_price。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - discount_price。",
|
||||
"ordinal_position": 25
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_store_goods_sale_ex",
|
||||
"ods_source": "store_goods_sales_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "store_goods_sale_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029550406(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "legacy_order_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957858456391557(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - order_goods_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_goods_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】朗朗桌球(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - siteName。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - siteName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "legacy_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - site_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】哇哈哈矿泉水(明细字段,用于记录事实取值)。 【ODS来源】store_goods_sales_records - goods_remark。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - goods_remark。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "option_value_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - option_value_name。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_value_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - operator_name。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - operator_name。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "open_salesman_flag",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2(明细字段,用于记录事实取值)。 【ODS来源】store_goods_sales_records - openSalesman。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - openSalesman。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - salesman_user_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_user_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】store_goods_sales_records - salesman_name。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_name。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "salesman_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - salesman_role_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_role_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - sales_man_org_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - sales_man_org_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - discount_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - discount_money。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "returns_number",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】0(数量/时长字段,用于统计与计量)。 【ODS来源】store_goods_sales_records - returns_number。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - returns_number。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - coupon_deduct_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - coupon_deduct_money。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - member_discount_amount。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - member_discount_amount。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "point_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - point_discount_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - point_discount_money。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "point_discount_money_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - point_discount_money_cost。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - point_discount_money_cost。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "package_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - package_coupon_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - package_coupon_id。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - order_coupon_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_coupon_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "member_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - member_coupon_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - member_coupon_id。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "option_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - option_price。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_price。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "option_member_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - option_member_discount_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_member_discount_money。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "option_coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - option_coupon_deduct_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_coupon_deduct_money。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "push_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】store_goods_sales_records - push_money。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - push_money。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】store_goods_sales_records - is_single_order。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - is_single_order。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "sales_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】store_goods_sales_records - sales_type。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - sales_type。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】store_goods_sales_records - operator_id。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - operator_id。",
|
||||
"ordinal_position": 28
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_table_fee_adjust",
|
||||
"ods_source": "table_fee_discount_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_fee_adjust_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913441881989(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2957784612605829(明细字段,用于记录事实取值)。 【ODS来源】table_fee_discount_records - order_trade_no。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - order_trade_no。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913171693253(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - order_settle_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - order_settle_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - tenant_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tenant_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - site_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - site_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793020259897413(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - site_table_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - site_table_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791961347968901(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - tenant_table_area_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tenant_table_area_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "table_area_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_discount_records - tableprofile.table_area_name。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tableprofile.table_area_name。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791961347968901(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - tenant_table_area_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tenant_table_area_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】148.15(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_discount_records - ledger_amount。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_amount。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】table_fee_discount_records - ledger_status。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_status。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】table_fee_discount_records - is_delete。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - is_delete。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "adjust_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:25:11(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_discount_records - create_time。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - create_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "table_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "charge_free",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_table_fee_adjust_ex",
|
||||
"ods_source": "table_fee_discount_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_fee_adjust_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957913441881989(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "adjust_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】1(明细字段,用于记录事实取值)。 【ODS来源】table_fee_discount_records - adjust_type。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - adjust_type。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【ODS来源】table_fee_discount_records - ledger_count。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_count。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_discount_records - ledger_name。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "applicant_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_discount_records - applicant_name。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - applicant_name。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_discount_records - operator_name。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - operator_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "applicant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - applicant_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - applicant_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_discount_records - operator_id。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - operator_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "area_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "tenant_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 13
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_table_fee_log",
|
||||
"ods_source": "table_fee_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_fee_log_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029058885(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】明细字段,用于记录事实取值。 【示例】2957858167230149(明细字段,用于记录事实取值)。 【ODS来源】table_fee_transactions - order_trade_no。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_trade_no。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957922914357125(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - order_settle_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_settle_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - order_pay_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_pay_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790683160709957(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - tenant_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - tenant_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790685415443269(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - site_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2793003705192517(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - site_table_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791963794329671(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - site_table_area_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_area_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A区(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_transactions - site_table_area_name。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_area_name。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2791960001957765(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - tenant_table_area_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - tenant_table_area_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - member_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - member_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】A17(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_transactions - ledger_name。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_name。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - ledger_unit_price。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_unit_price。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】table_fee_transactions - ledger_count。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_count。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - ledger_amount。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_amount。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "real_table_charge_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - real_table_charge_money。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - real_table_charge_money。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "coupon_promotion_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】48.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - coupon_promotion_amount。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - coupon_promotion_amount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - member_discount_amount。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - member_discount_amount。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "adjust_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - adjust_amount。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - adjust_amount。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "real_table_use_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】3600(数量/时长字段,用于统计与计量)。 【ODS来源】table_fee_transactions - real_table_use_seconds。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - real_table_use_seconds。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "add_clock_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】0(数量/时长字段,用于统计与计量)。 【ODS来源】table_fee_transactions - add_clock_seconds。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - add_clock_seconds。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "start_use_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 22:28:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_transactions - start_use_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - start_use_time。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "ledger_end_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:28:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_transactions - ledger_end_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_end_time。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:35:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_transactions - create_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - create_time。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举字段,用于标识业务状态。 【示例】1(状态枚举字段,用于标识业务状态)。 【ODS来源】table_fee_transactions - ledger_status。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_status。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】1(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】table_fee_transactions - is_single_order。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - is_single_order。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示是否/可用性等业务开关。 【示例】0(布尔/开关字段,用于表示是否/可用性等业务开关)。 【ODS来源】table_fee_transactions - is_delete。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - is_delete。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "activity_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "real_service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 29
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"schema": "dwd",
|
||||
"table": "dwd_table_fee_log_ex",
|
||||
"ods_source": "table_fee_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "table_fee_log_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2957924029058885(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】收银员:郑丽珊(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_transactions - operator_name。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - operator_name。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "character varying",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【ODS来源】table_fee_transactions - salesman_name。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "used_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - used_card_amount。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - used_card_amount。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - service_money。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - service_money。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "mgmt_fee",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - mgmt_fee。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - mgmt_fee。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "fee_total",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/核算等金额计算。 【示例】0.0(金额字段,用于计费/结算/核算等金额计算)。 【ODS来源】table_fee_transactions - fee_total。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - fee_total。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "ledger_start_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 22:28:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_transactions - ledger_start_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_start_time。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "last_use_time",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间/日期字段,用于记录业务时间与统计口径对齐。 【示例】2025-11-09 23:28:57(时间/日期字段,用于记录业务时间与统计口径对齐)。 【ODS来源】table_fee_transactions - last_use_time。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - last_use_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】2790687322443013(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - operator_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - operator_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - salesman_user_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_user_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体)。 【ODS来源】table_fee_transactions - salesman_org_id。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_org_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "order_consumption_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 13
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,542 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "assistant_accounts_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教账号主键 ID,在“助教流水.json”中对应 site_assistant_id。 【示例】2947562271297029(用于助教账号主键 ID,在“助教流水.json”中对应 site_assistant_id)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】品牌/租户 ID,对应“非球科技”系统中该商户的唯一标识。 【示例】2790683160709957(用于品牌/租户 ID,对应“非球科技”系统中该商户的唯一标识)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID,对应本次数据的这家球房(朗朗桌球)。 【示例】2790685415443269(用于门店 ID,对应本次数据的这家球房(朗朗桌球))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "assistant_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教工号 / 编号,便于业务侧识别。 【示例】31(用于助教工号 / 编号,便于业务侧识别)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_no。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教在前台展示的昵称,如“佳怡”“周周”“球球”等。 【示例】小然(用于助教在前台展示的昵称,如“佳怡”“周周”“球球”等)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - nickname。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "real_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教真实姓名,如“何海婷”“梁婷婷”等。 【示例】张静然(用于助教真实姓名,如“何海婷”“梁婷婷”等)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - real_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教手机号,用于登录绑定、通知、钉钉同步等。 【示例】15119679931(助教手机号,用于登录绑定、通知、钉钉同步等)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - mobile。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "team_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教所属团队 ID。 【示例】2792011585884037(用于助教所属团队 ID)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - team_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "team_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团队名称,展示用,和 team_id 一一对应。 【示例】1组(用于团队名称,展示用,和 team_id 一一对应)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - team_name。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统级“用户账号 ID”,通常对应登录账号。 【示例】2947562270838277(用于系统级“用户账号 ID”,通常对应登录账号)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - user_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "level",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】10 × 24。 【示例】20(用于10 × 24)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - level。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "assistant_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1 × 48。 【示例】1(用于1 × 48)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "work_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当 leave_status = 0 时,work_status = 1。 【示例】2(用于当 leave_status = 0 时,work_status = 1)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - work_status。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "leave_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】0 × 21。 【示例】1(用于0 × 21)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - leave_status。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "entry_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】入职时间。 【示例】2025-11-02 08:00:00(用于入职时间)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_time。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "resign_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】离职日期。 【示例】2025-11-03 08:00:00(用于离职日期)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - resign_time。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前配置生效的开始日期。 【示例】2025-11-01 08:00:00(用于当前配置生效的开始日期)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - start_time。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前配置生效的结束日期(例如一个周期性的排班/合同周期)。 【示例】2025-12-01 08:00:00(用于当前配置生效的结束日期(例如一个周期性的排班/合同周期))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - end_time。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】账号创建时间。 【示例】2025-11-02 15:55:26(用于账号创建时间)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - create_time。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】账号最近一次被修改的时间(例如修改等级、昵称等)。 【示例】2025-11-03 18:32:07(用于账号最近一次被修改的时间(例如修改等级、昵称等))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - update_time。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该助教最近一次关联的订单号,用于快速跳转或回溯最近服务行为。 【示例】0(该助教最近一次关联的订单号,用于快速跳转或回溯最近服务行为)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - order_trade_no。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "staff_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】预留给“人事系统员工 ID”的字段,目前未接入或未启用。 【示例】0(用于预留给“人事系统员工 ID”的字段,目前未接入或未启用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - staff_id。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "staff_profile_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】人事档案 ID,与第三方 HR 系统或内部员工档案集成使用,当前未启用。 【示例】0(用于人事档案 ID,与第三方 HR 系统或内部员工档案集成使用,当前未启用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - staff_profile_id。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "system_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】10(标识类 ID 字段,用于关联/定位相关实体)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - system_role_id。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教头像地址。 【示例】https://oss.ficoo.vip/maUiImages/images/defaultAvatar.png(用于助教头像地址)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - avatar。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "birth_date",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教出生日期。 【示例】0001-01-01 00:00:00(用于助教出生日期)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - birth_date。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "gender",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】0 × 40。 【示例】0(用于0 × 40)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - gender。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "height",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】身高(单位:厘米)。 【示例】0.0(用于身高(单位:厘米))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - height。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "weight",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】体重(单位:公斤)。 【示例】0.0(用于体重(单位:公斤))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - weight。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "job_num",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】备用工号字段,目前未在该门店启用。 【示例】NULL(用于备用工号字段,目前未在该门店启用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - job_num。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "show_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - show_status。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "show_sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】前台展示排序权重,值越小/越大对应不同的排序策略(当前看起来与 assistant_no 有一定对应关系)。 【示例】31(用于前台展示排序权重,值越小/越大对应不同的排序策略(当前看起来与 assistant_no 有一定对应关系))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - show_sort。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "sum_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】评分总和,用于计算平均分(assistant_grade = sum_grade / get_grade_times),当前为 0。 【示例】0.0(评分总和,用于计算平均分(assistant_grade = sum_grade / get_grade_times),当前为 0)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - sum_grade。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "assistant_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教综合评分(员工维度的平均分 snapshot),当前尚未启用评分。 【示例】0.0(用于助教综合评分(员工维度的平均分 snapshot),当前尚未启用评分)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - assistant_grade。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "get_grade_times",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】累计被评分次数。 【示例】0(用于累计被评分次数)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - get_grade_times。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "introduce",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】个人简介文案,预留给助教自我介绍使用。 【示例】NULL(用于个人简介文案,预留给助教自我介绍使用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - introduce。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "video_introduction_url",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教个人视频介绍地址。 【示例】https://oss.ficoo.vip/cbb/userVideo/1753096246308/175309624630830.mp4(用于助教个人视频介绍地址)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - video_introduction_url。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "group_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】上层“分组 ID”预留字段(例如集团/事业部),本门店未使用。 【示例】0(用于上层“分组 ID”预留字段(例如集团/事业部),本门店未使用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - group_id。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "group_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】group_id 对应的名称,目前为空。 【示例】NULL(用于group_id 对应的名称,目前为空)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - group_name。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "shop_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称,冗余字段,用于展示。 【示例】朗朗桌球(门店名称,冗余字段,用于展示)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - shop_name。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "charge_way",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】2 代表当前门店为“计时收费”,其他值(1、3 等)可能对应按局、按课时等,当前未出现。 【示例】2(用于2 代表当前门店为“计时收费”,其他值(1、3 等)可能对应按局、按课时等,当前未出现)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - charge_way。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "entry_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_type。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "allow_cx",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - allow_cx。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "is_guaranteed",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】1(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_guaranteed。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "salary_grant_enabled",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】2(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - salary_grant_enabled。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "light_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】灯光控制状态,如 1=启用控制、2=不启用 或相反。 【示例】2(用于灯光控制状态,如 1=启用控制、2=不启用 或相反)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - light_status。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "online_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】在线状态。 【示例】1(用于在线状态)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - online_status。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标记(0=否,1=是)。 【示例】0(用于逻辑删除标记(0=否,1=是))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_delete。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "cx_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】促销时段的单价,本门店未在账号表层面设置。 【示例】0.0(用于促销时段的单价,本门店未在账号表层面设置)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - cx_unit_price。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "pd_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】某种标准单价(例如“普通时段单价”),这里未在账号上配置(实际单价在助教商品或套餐配置中)。 【示例】0.0(用于某种标准单价(例如“普通时段单价”),这里未在账号上配置(实际单价在助教商品或套餐配置中))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - pd_unit_price。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "last_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该助教最近一次服务的球台 ID。 【示例】0(用于该助教最近一次服务的球台 ID)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_table_id。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "last_table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最近服务球台名称(展示用)。 【示例】TV(用于最近服务球台名称(展示用))。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_table_name。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "person_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】人事组织 ID,通常表示“某某门店-助教部-某小组”等层级组织。 【示例】2947562271215109(用于人事组织 ID,通常表示“某某门店-助教部-某小组”等层级组织)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - person_org_id。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "serial_number",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统内部生成的序列号或排序标识,用于全局排序或迁移。 【示例】0(系统内部生成的序列号或排序标识,用于全局排序或迁移)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - serial_number。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "is_team_leader",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】0(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - is_team_leader。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "criticism_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1 × 49。 【示例】1(用于1 × 49)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - criticism_status。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "last_update_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最近修改该账号配置的管理员名称。 【示例】管理员:郑丽珊(用于最近修改该账号配置的管理员名称)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - last_update_name。",
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "ding_talk_synced",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - ding_talk_synced。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "site_light_cfg_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店灯控配置 ID,本门店未在助教账号维度启用。 【示例】0(用于门店灯控配置 ID,本门店未在助教账号维度启用)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - site_light_cfg_id。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "light_equipment_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】灯控设备 ID,如果开启“助教开台自动控制灯”,会通过该字段关联到灯控硬件。 【示例】NULL(用于灯控设备 ID,如果开启“助教开台自动控制灯”,会通过该字段关联到灯控硬件)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - light_equipment_id。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "entry_sign_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】0(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - entry_sign_status。",
|
||||
"ordinal_position": 61
|
||||
},
|
||||
{
|
||||
"name": "resign_sign_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】离职协议签署状态,类似上面。 【示例】0(用于离职协议签署状态,类似上面)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - resign_sign_status。",
|
||||
"ordinal_position": 62
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 63
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】assistant_accounts_master.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】assistant_accounts_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 64
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/assistant_accounts_master.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】assistant_accounts_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 65
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】assistant_accounts_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 66
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】assistant_accounts_master.json - data.assistantInfos - $。",
|
||||
"ordinal_position": 67
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"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.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【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.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【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:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,574 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "assistant_service_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条助教流水记录的主键 ID(流水唯一标识)。 【示例】2957913441292165(用于本条助教流水记录的主键 ID(流水唯一标识))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID,本数据中指“朗朗桌球”这一家门店。 【示例】2790685415443269(用于门店 ID,本数据中指“朗朗桌球”这一家门店)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "siteprofile",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店信息快照,包括 id、shop_name、address 等,和其他 JSON 里的 siteProfile 一致。 【示例】{\"id\": 2790685415443269, \"org_id\": 2790684179467077, \"shop_name\": \"朗朗桌球\", \"avatar\": \"https://oss.ficoo.vip/admin/hXcE4E…(用于门店信息快照,包括 id、shop_name、address 等,和其他 JSON 里的 siteProfile 一致)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - siteProfile。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】球台 ID。 【示例】2793020259897413(用于球台 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_table_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单结算 ID,相当于“结账单号”的内部主键。 【示例】2957913171693253(用于订单结算 ID,相当于“结账单号”的内部主键)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_settle_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单交易号,整个订单层面的编号。 【示例】2957784612605829(用于订单交易号,整个订单层面的编号)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_trade_no。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联到“支付记录”的主键 ID。 【示例】0(用于关联到“支付记录”的主键 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_pay_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "order_assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单中“助教项目明细”的内部 ID。 【示例】2957788717240005(用于订单中“助教项目明细”的内部 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_assistant_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "order_assistant_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - order_assistant_type。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "assistantname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教姓名,如“何海婷”“胡敏”等。 【示例】何海婷(用于助教姓名,如“何海婷”“胡敏”等)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistantName。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "assistantno",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教编号,例如 \"27\"。 【示例】27(用于助教编号,例如 \"27\")。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistantNo。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "assistant_level",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教等级名称,与 assistant_level 一一对应(初级/中级/高级/助教管理)。 【示例】10(用于助教等级名称,与 assistant_level 一一对应(初级/中级/高级/助教管理))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistant_level。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "levelname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - levelName。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "site_assistant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店维度的助教 ID。 【示例】2946266869435205(用于门店维度的助教 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - site_assistant_id。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "skill_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教服务“课程/技能”ID。 【示例】2790683529513797(用于助教服务“课程/技能”ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skill_id。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "skillname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skillName。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统级会员 ID(全集团统一 ID)。 【示例】0(用于系统级会员 ID(全集团统一 ID))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - system_member_id。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "tablename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tableName。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商户维度会员 ID(门店/品牌内的会员主键)。 【示例】0(用于商户维度会员 ID(门店/品牌内的会员主键))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - tenant_member_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教对应的“用户账号 ID”(系统级用户)。 【示例】2946266868976453(用于助教对应的“用户账号 ID”(系统级用户))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - user_id。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "assistant_team_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教所属团队 ID。 【示例】2792011585884037(用于助教所属团队 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - assistant_team_id。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教对外昵称,如“佳怡”“周周”“球球”等。 【示例】泡芙(用于助教对外昵称,如“佳怡”“周周”“球球”等)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - nickname。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】27-泡芙(名称字段,用于展示与辅助识别)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_name。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教项目所属的“计费分组/套餐分组名称”,例如某种助教套餐或业务组名称。 【示例】NULL(用于助教项目所属的“计费分组/套餐分组名称”,例如某种助教套餐或业务组名称)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_group_name。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】按标准单价计算出来的应收金额(近似 = ledger_unit_price × income_seconds / 3600)。 【示例】206.67(用于按标准单价计算出来的应收金额(近似 = ledger_unit_price × income_seconds / 3600))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_amount。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账记录的计时总秒数。 【示例】7592(用于台账记录的计时总秒数)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_count。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教服务 标准单价(通常是标价:每小时、每节课的单价)。 【示例】98.0(用于助教服务 标准单价(通常是标价:每小时、每节课的单价))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_unit_price。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_status。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "ledger_start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账层面记录的开始时间。 【示例】2025-11-09 21:18:18(用于台账层面记录的开始时间)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_start_time。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "ledger_end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账层面的结束时间。 【示例】2025-11-09 23:24:50(用于台账层面的结束时间)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - ledger_end_time。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "manual_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】收银员手动给予的减免金额(人工改价)。 【示例】0.0(用于收银员手动给予的减免金额(人工改价))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - manual_discount_amount。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由会员卡折扣产生的优惠金额。 【示例】0.0(用于由会员卡折扣产生的优惠金额)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - member_discount_amount。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由“优惠券/代金券/团购券”等 直接抵扣到这条助教服务上的金额。 【示例】0.0(用于由“优惠券/代金券/团购券”等 直接抵扣到这条助教服务上的金额)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - coupon_deduct_money。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】用于记录与助教结算的金额(平台预留的“成本/分成”字段)。 【示例】0.0(用于记录与助教结算的金额(平台预留的“成本/分成”字段))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - service_money。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "projected_income",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际结算计入门店的金额(已经考虑折扣、卡权益、券等后的结果)。 【示例】168.0(用于实际结算计入门店的金额(已经考虑折扣、卡权益、券等后的结果))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - projected_income。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "real_use_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际使用时长(秒)。 【示例】7592(用于实际使用时长(秒))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - real_use_seconds。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "income_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】计费秒数 / 应计收入对应的时间。 【示例】7560(用于计费秒数 / 应计收入对应的时间)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - income_seconds。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "start_use_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教实际开始服务时间。 【示例】2025-11-09 21:18:18(用于助教实际开始服务时间)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - start_use_time。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "last_use_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最后一次使用(实际服务)时间。 【示例】2025-11-09 23:24:50(用于最后一次使用(实际服务)时间)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - last_use_time。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这条助教流水记录创建时间(一般接近结算/下单时间)。 【示例】2025-11-09 23:25:11(用于这条助教流水记录创建时间(一般接近结算/下单时间))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - create_time。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】1(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_single_order。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_delete。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "is_trash",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】0(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_trash。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "trash_reason",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】废除原因(文本说明),例如“顾客取消”“录入错误”等。 【示例】NULL(用于废除原因(文本说明),例如“顾客取消”“录入错误”等)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_reason。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "trash_applicant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】提出废除申请的员工 ID(通常是操作员/管理员)。 【示例】0(用于提出废除申请的员工 ID(通常是操作员/管理员))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_applicant_id。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "trash_applicant_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】废除申请人姓名。 【示例】NULL(用于废除申请人姓名)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - trash_applicant_name。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员 ID(录入/结算这条助教服务的员工)。 【示例】2790687322443013(用于操作员 ID(录入/结算这条助教服务的员工))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - operator_id。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名,与 operator_id 一起使用,便于直接阅读。 【示例】收银员:郑丽珊(用于操作员姓名,与 operator_id 一起使用,便于直接阅读)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - operator_name。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联的“营业员/销售员姓名”,用于提成归属。 【示例】NULL(关联的“营业员/销售员姓名”,用于提成归属)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_name。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员所属组织/部门 ID。 【示例】0(用于营业员所属组织/部门 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_org_id。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员用户 ID。 【示例】0(用于营业员用户 ID)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - salesman_user_id。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "person_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教所属“人事组织/部门 ID”。 【示例】2946266869336901(用于助教所属“人事组织/部门 ID”)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - person_org_id。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "add_clock",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】加钟秒数,即在原有预约/服务基础上临时追加的时长。 【示例】0(用于加钟秒数,即在原有预约/服务基础上临时追加的时长)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - add_clock。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "returns_clock",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】退钟秒数(取消加钟或提前结束退回的时间)。 【示例】0(用于退钟秒数(取消加钟或提前结束退回的时间))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - returns_clock。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "composite_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】综合评分(例如技能+服务加权后的平均分),当前数据没有实际评分。 【示例】0.0(用于综合评分(例如技能+服务加权后的平均分),当前数据没有实际评分)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - composite_grade。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "composite_grade_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教服务所在的球台名称(如 \"A17\"、\"S1\")。 【示例】0001-01-01 00:00:00(用于助教服务所在的球台名称(如 \"A17\"、\"S1\"))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - composite_grade_time。",
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "skill_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】顾客对“技能表现”的评分(整数或打分等级)。 【示例】0(用于顾客对“技能表现”的评分(整数或打分等级))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - skill_grade。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "service_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】顾客对“服务态度”的评分。 【示例】0(用于顾客对“服务态度”的评分)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - service_grade。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "sum_grade",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】累计评分总和(可能用于计算平均分),当前为 0。 【示例】0.0(累计评分总和(可能用于计算平均分),当前为 0)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - sum_grade。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "grade_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1 = 未评价/正常。 【示例】1(用于1 = 未评价/正常)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - grade_status。",
|
||||
"ordinal_position": 61
|
||||
},
|
||||
{
|
||||
"name": "get_grade_times",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该条记录对应的评价次数(或该助教被评价次数快照)。 【示例】0(用于该条记录对应的评价次数(或该助教被评价次数快照))。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - get_grade_times。",
|
||||
"ordinal_position": 62
|
||||
},
|
||||
{
|
||||
"name": "is_not_responding",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】0(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_not_responding。",
|
||||
"ordinal_position": 63
|
||||
},
|
||||
{
|
||||
"name": "is_confirm",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】2(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - is_confirm。",
|
||||
"ordinal_position": 64
|
||||
},
|
||||
{
|
||||
"name": "assistantteamname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 65
|
||||
},
|
||||
{
|
||||
"name": "real_service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 66
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】assistant_service_records.json - data.orderAssistantDetails - $。",
|
||||
"ordinal_position": 67
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 68
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】assistant_service_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】assistant_service_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 69
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/assistant_service_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】assistant_service_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 70
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】assistant_service_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 71
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "goods_stock_movements",
|
||||
"columns": [
|
||||
{
|
||||
"name": "sitegoodsstockid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店某个“商品库存记录”的主键 ID。 【示例】2957911857581957(用于门店某个“商品库存记录”的主键 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - siteGoodsStockId。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenantid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - tenantId。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "siteid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - siteId。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "sitegoodsid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店维度的商品 ID。 【示例】2793026183532613(用于门店维度的商品 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - siteGoodsId。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goodsname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品名称。 【示例】阿萨姆(用于商品名称)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - goodsName。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goodscategoryid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品一级分类 ID。 【示例】2790683528350539(用于商品一级分类 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - goodsCategoryId。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goodssecondcategoryid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品二级分类 ID。 【示例】2790683528350540(用于商品二级分类 ID)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - goodsSecondCategoryId。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】库存计量单位。 【示例】瓶(用于库存计量单位)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - unit。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品单价(单位金额)。 【示例】8.0(用于商品单价(单位金额))。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - price。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "stocktype",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1:89 条。 【示例】1(用于1:89 条)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - stockType。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "changenum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次库存数量变化值。 【示例】-1(用于本次库存数量变化值)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - changeNum。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "startnum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】变动前(这次出入库之前)的库存数量。 【示例】28(用于变动前(这次出入库之前)的库存数量)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - startNum。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "endnum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】变动后(出入库之后)的库存数量。 【示例】27(用于变动后(出入库之后)的库存数量)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - endNum。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "changenuma",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】辅助单位的变化量(与 changeNum 对应的第二计量单位变化),当前未使用。 【示例】0(用于辅助单位的变化量(与 changeNum 对应的第二计量单位变化),当前未使用)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - changeNumA。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "startnuma",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】辅助计量单位的起始库存(例如件/箱等第二单位)。 【示例】0(用于辅助计量单位的起始库存(例如件/箱等第二单位))。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - startNumA。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "endnuma",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】辅助单位的变动后库存,同样未启用。 【示例】0(用于辅助单位的变动后库存,同样未启用)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - endNumA。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】备注信息,用于手工记录本次变更的特殊原因说明(例如“盘点差异调整”“报损”)。 【示例】NULL(备注信息,用于手工记录本次变更的特殊原因说明(例如“盘点差异调整”“报损”))。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - remark。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "operatorname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】执行此次库存变动的操作人。 【示例】收银员:郑丽珊(用于执行此次库存变动的操作人)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - operatorName。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "createtime",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这条库存变动记录的创建时间,即发生库存变更的时间点。 【示例】2025-11-09 23:23:34(用于这条库存变动记录的创建时间,即发生库存变更的时间点)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - createTime。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】goods_stock_movements.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】goods_stock_movements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/goods_stock_movements.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】goods_stock_movements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】goods_stock_movements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】goods_stock_movements.json - data.queryDeliveryRecordsList - $。",
|
||||
"ordinal_position": 24
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "goods_stock_summary",
|
||||
"columns": [
|
||||
{
|
||||
"name": "sitegoodsid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店商品 ID,本库存汇总表的主键,对应某个具体商品在本店的唯一标识。 【示例】2791953867886725(用于门店商品 ID,本库存汇总表的主键,对应某个具体商品在本店的唯一标识)。 【JSON字段】goods_stock_summary.json - $ - siteGoodsId。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "goodsname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品名称,冗余于门店商品档案的 goods_name。 【示例】东方树叶(用于商品名称,冗余于门店商品档案的 goods_name)。 【JSON字段】goods_stock_summary.json - $ - goodsName。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "goodsunit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品的计量单位(售卖单位)。 【示例】瓶(用于商品的计量单位(售卖单位))。 【JSON字段】goods_stock_summary.json - $ - goodsUnit。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "goodscategoryid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】一级商品分类 ID。 【示例】2790683528350539(用于一级商品分类 ID)。 【JSON字段】goods_stock_summary.json - $ - goodsCategoryId。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goodscategorysecondid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】二级(次级)商品分类 ID,是 goodsCategoryId 的下级分类。 【示例】2790683528350540(用于二级(次级)商品分类 ID,是 goodsCategoryId 的下级分类)。 【JSON字段】goods_stock_summary.json - $ - goodsCategorySecondId。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "categoryname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】一级分类名称,属于冗余字段,用于直接展示。 【示例】酒水(一级分类名称,属于冗余字段,用于直接展示)。 【JSON字段】goods_stock_summary.json - $ - categoryName。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "rangestartstock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间 起始时刻 的库存数量(期初库存)。 【示例】165(用于查询区间 起始时刻 的库存数量(期初库存))。 【JSON字段】goods_stock_summary.json - $ - rangeStartStock。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "rangeendstock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间 结束时刻 的库存数量(期末库存)。 【示例】118(用于查询区间 结束时刻 的库存数量(期末库存))。 【JSON字段】goods_stock_summary.json - $ - rangeEndStock。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "rangein",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间内的 入库数量汇总(正值),包括采购入库、调拨入库等。 【示例】450(用于查询区间内的 入库数量汇总(正值),包括采购入库、调拨入库等)。 【JSON字段】goods_stock_summary.json - $ - rangeIn。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "rangeout",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间内的 出库数量汇总,以 负数 表示从库存扣减(出库/销售)。 【示例】-497(用于查询区间内的 出库数量汇总,以 负数 表示从库存扣减(出库/销售))。 【JSON字段】goods_stock_summary.json - $ - rangeOut。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "rangesale",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间内,该商品的 销售数量汇总(售出多少“包/瓶/份”等)。 【示例】488(用于查询区间内,该商品的 销售数量汇总(售出多少“包/瓶/份”等))。 【JSON字段】goods_stock_summary.json - $ - rangeSale。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "rangesalemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间内,该商品销售的 金额小计(按商品维度汇总)。 【示例】3904.0(用于查询区间内,该商品销售的 金额小计(按商品维度汇总))。 【JSON字段】goods_stock_summary.json - $ - rangeSaleMoney。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "rangeinventory",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】查询区间内的 盘点调整净变动量(盘盈–盘亏)。 【示例】0(用于查询区间内的 盘点调整净变动量(盘盈–盘亏))。 【JSON字段】goods_stock_summary.json - $ - rangeInventory。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "currentstock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】导出时刻的实时库存数量。 【示例】118(用于导出时刻的实时库存数量)。 【JSON字段】goods_stock_summary.json - $ - currentStock。",
|
||||
"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 元数据:原始导出文件名,用于数据追溯。 【示例】goods_stock_summary.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】goods_stock_summary.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/goods_stock_summary.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】goods_stock_summary.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:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】goods_stock_summary.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】goods_stock_summary.json - $ - $。",
|
||||
"ordinal_position": 19
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,350 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "group_buy_packages",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店侧套餐 ID,本文件内部的主键。 【示例】2939215004469573(用于门店侧套餐 ID,本文件内部的主键)。 【JSON字段】group_buy_packages.json - data.packageCouponList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "package_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】“上层套餐 ID” 或“总部/系统级套餐 ID”。 【示例】1814707240811572(用于“上层套餐 ID” 或“总部/系统级套餐 ID”)。 【JSON字段】group_buy_packages.json - data.packageCouponList - package_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "package_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购套餐名称,用于前台展示和核销界面。 【示例】早场特惠一小时(团购套餐名称,用于前台展示和核销界面)。 【JSON字段】group_buy_packages.json - data.packageCouponList - package_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "selling_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】语义上应该是“团购售卖价”(顾客在平台购买券时的成交价格)。 【示例】0.0(用于语义上应该是“团购售卖价”(顾客在平台购买券时的成交价格))。 【JSON字段】group_buy_packages.json - data.packageCouponList - selling_price。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "coupon_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券面值或内部结算面值,表示该套餐在门店侧对应的金额额度。 【示例】0.0(用于券面值或内部结算面值,表示该套餐在门店侧对应的金额额度)。 【JSON字段】group_buy_packages.json - data.packageCouponList - coupon_money。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "date_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】group_buy_packages.json - data.packageCouponList - date_type。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "date_info",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】预留字段,通常用来存储更细粒度的日期信息,如具体日期列表、节假日特殊规则(可能是 JSON 字符串或编码)。 【示例】0(用于预留字段,通常用来存储更细粒度的日期信息,如具体日期列表、节假日特殊规则(可能是 JSON 字符串或编码))。 【JSON字段】group_buy_packages.json - data.packageCouponList - date_info。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】套餐开始生效的日期时间。 【示例】2025-10-27 00:00:00(用于套餐开始生效的日期时间)。 【JSON字段】group_buy_packages.json - data.packageCouponList - start_time。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】套餐失效的日期时间(到这个时间点后不可使用)。 【示例】2026-10-28 00:00:00(用于套餐失效的日期时间(到这个时间点后不可使用))。 【JSON字段】group_buy_packages.json - data.packageCouponList - end_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "start_clock",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】每日可用起始时间点(第一段)。 【示例】00:00:00(用于每日可用起始时间点(第一段))。 【JSON字段】group_buy_packages.json - data.packageCouponList - start_clock。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "end_clock",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】每日可用的结束时间点(第一段)。 【示例】1.00:00:00(用于每日可用的结束时间点(第一段))。 【JSON字段】group_buy_packages.json - data.packageCouponList - end_clock。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "add_start_clock",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】附加可用时间段的起始时间(第二段)。 【示例】00:00:00(用于附加可用时间段的起始时间(第二段))。 【JSON字段】group_buy_packages.json - data.packageCouponList - add_start_clock。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "add_end_clock",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】附加时段结束时间,多数情况配合 \"00:00:00\" 或 \"10:00:00\" 使用。 【示例】1.00:00:00(用于附加时段结束时间,多数情况配合 \"00:00:00\" 或 \"10:00:00\" 使用)。 【JSON字段】group_buy_packages.json - data.packageCouponList - add_end_clock。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "duration",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】套餐内包含的时长(秒)。 【示例】3600(用于套餐内包含的时长(秒))。 【JSON字段】group_buy_packages.json - data.packageCouponList - duration。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "usable_count",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】可使用次数上限。 【示例】9999999(用于可使用次数上限)。 【JSON字段】group_buy_packages.json - data.packageCouponList - usable_count。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "usable_range",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】一般用于文字描述可用日期范围(例如“周一至周五”)。 【示例】NULL(一般用于文字描述可用日期范围(例如“周一至周五”))。 【JSON字段】group_buy_packages.json - data.packageCouponList - usable_range。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】原始设计应为“单一台区 ID”,当套餐只限一个区域可以用这个字段存储。 【示例】0(用于原始设计应为“单一台区 ID”,当套餐只限一个区域可以用这个字段存储)。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "table_area_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】套餐适用的“门店台区名称”,用于显示和筛选。 【示例】A区(套餐适用的“门店台区名称”,用于显示和筛选)。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_name。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "table_area_id_list",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】用来存放具体台区 ID 列表(例如 \"1,2,3\"),实现更细粒度的台桌限制。 【示例】NULL(用于用来存放具体台区 ID 列表(例如 \"1,2,3\"),实现更细粒度的台桌限制)。 【JSON字段】group_buy_packages.json - data.packageCouponList - table_area_id_list。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】与 table_area_id 类似,是租户层级的台区 ID,原本用于单区选择。 【示例】0(与 table_area_id 类似,是租户层级的台区 ID,原本用于单区选择)。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_table_area_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id_list",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际代表“台区集合 ID”或“租户台区配置 ID”,用来限制套餐可用的台区范围。 【示例】2791960001957765(用于实际代表“台区集合 ID”或“租户台区配置 ID”,用来限制套餐可用的台区范围)。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_table_area_id_list。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】group_buy_packages.json - data.packageCouponList - site_id。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称。 【示例】朗朗桌球(用于门店名称)。 【JSON字段】group_buy_packages.json - data.packageCouponList - site_name。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户 ID(品牌/商户 ID)。 【示例】2790683160709957(用于租户 ID(品牌/商户 ID))。 【JSON字段】group_buy_packages.json - data.packageCouponList - tenant_id。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "card_type_ids",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】原意是“适用会员卡类型 ID 列表”,例如某套餐只允许某几种会员卡使用,可以在此配置。 【示例】0(用于原意是“适用会员卡类型 ID 列表”,例如某套餐只允许某几种会员卡使用,可以在此配置)。 【JSON字段】group_buy_packages.json - data.packageCouponList - card_type_ids。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "group_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】group_buy_packages.json - data.packageCouponList - group_type。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "system_group_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】group_buy_packages.json - data.packageCouponList - system_group_type。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】内部业务子类型,具体含义需要结合系统文档。 【示例】2(用于内部业务子类型,具体含义需要结合系统文档)。 【JSON字段】group_buy_packages.json - data.packageCouponList - type。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "effective_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1:13 条。 【示例】1(用于1:13 条)。 【JSON字段】group_buy_packages.json - data.packageCouponList - effective_status。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "is_enabled",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】启用状态。 【示例】1(用于启用状态)。 【JSON字段】group_buy_packages.json - data.packageCouponList - is_enabled。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】group_buy_packages.json - data.packageCouponList - is_delete。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "max_selectable_categories",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】0(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】group_buy_packages.json - data.packageCouponList - max_selectable_categories。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "area_tag_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1 很可能代表“按台区标签限制”,例如 A区、中八区、包厢、KTV 等。 【示例】1(用于1 很可能代表“按台区标签限制”,例如 A区、中八区、包厢、KTV 等)。 【JSON字段】group_buy_packages.json - data.packageCouponList - area_tag_type。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "creator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】创建人信息,一般包含“角色:姓名”。 【示例】店长:郑丽珊(用于创建人信息,一般包含“角色:姓名”)。 【JSON字段】group_buy_packages.json - data.packageCouponList - creator_name。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该套餐在系统中创建的时间。 【示例】2025-10-27 18:24:09(用于该套餐在系统中创建的时间)。 【JSON字段】group_buy_packages.json - data.packageCouponList - create_time。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "is_first_limit",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "tenantcouponsaleorderitemid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】group_buy_packages.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】group_buy_packages.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/group_buy_packages.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】group_buy_packages.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】group_buy_packages.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】group_buy_packages.json - data.packageCouponList - $。",
|
||||
"ordinal_position": 43
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,462 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "group_buy_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条“团购套餐流水”记录的 主键 ID。 【示例】2957924029615941(用于本条“团购套餐流水”记录的 主键 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID,与其它 JSON 中一致。 【示例】2790685415443269(用于门店 ID,与其它 JSON 中一致)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称,冗余展示用。 【示例】朗朗桌球(用于门店名称,冗余展示用)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - siteName。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】球台 ID。 【示例】2793003705192517(用于球台 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "tablename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次使用券所关联的 球台名称/台号。 【示例】A17(用于本次使用券所关联的 球台名称/台号)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tableName。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tableareaname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该球台所属的 台区名称。 【示例】A区(用于该球台所属的 台区名称)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tableAreaName。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户级台区分组 ID,表示当前使用券的台桌所属的区域组合。 【示例】2791960001957765(用于租户级台区分组 ID,表示当前使用券的台桌所属的区域组合)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - tenant_table_area_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单交易号,和其它消费明细(台费、商品、助教、团购)共用的订单主键。 【示例】2957858167230149(用于订单交易号,和其它消费明细(台费、商品、助教、团购)共用的订单主键)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_trade_no。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】结算单 ID(小票结账主键)。 【示例】2957922914357125(用于结算单 ID(小票结账主键))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_settle_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】指向支付记录表中的支付流水 ID。 【示例】0(用于指向支付记录表中的支付流水 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_pay_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单中“券使用记录”的 ID。 【示例】2957858168229573(用于订单中“券使用记录”的 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_coupon_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - order_coupon_channel。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "coupon_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购券券码,核销时扫描/录入的字符串。 【示例】0107892475999(用于团购券券码,核销时扫描/录入的字符串)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_code。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "coupon_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次核销时,这张券在门店侧对应的金额额度(“可抵扣金额”)。 【示例】48.0(用于本次核销时,这张券在门店侧对应的金额额度(“可抵扣金额”))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_money。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "coupon_origin_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】平台/上游系统中的券记录主键 ID,“券来源 ID”。 【示例】2957858168229573(用于平台/上游系统中的券记录主键 ID,“券来源 ID”)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - coupon_origin_id。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费侧关联的“团购项目名称”(记账名)。 【示例】全天A区中八一小时(用于台费侧关联的“团购项目名称”(记账名))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_name。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购项目所属的“记账分组名称”(例如“团购台费”“团购包厢”等)。 【示例】NULL(用于团购项目所属的“记账分组名称”(例如“团购台费”“团购包厢”等))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_group_name。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次券实际冲抵台费的金额。 【示例】48.0(用于本次券实际冲抵台费的金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_amount。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】按此次优惠实际计算的“核销秒数”。 【示例】3600(用于按此次优惠实际计算的“核销秒数”)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_count。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】对应台费的标准单价,单位元/小时(从数值来看是类似29.9/小时这种定价)。 【示例】29.9(用于对应台费的标准单价,单位元/小时(从数值来看是类似29.9/小时这种定价))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_unit_price。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】流水状态。 【示例】1(用于流水状态)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - ledger_status。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "table_charge_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次结算中该球台总计计费的秒数(整台的台费计费时间)。 【示例】3600(用于本次结算中该球台总计计费的秒数(整台的台费计费时间))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_charge_seconds。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "promotion_activity_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购/促销活动 ID。 【示例】2957858166460101(用于团购/促销活动 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_activity_id。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "promotion_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购套餐定义 ID。 【示例】2798727423528005(用于团购套餐定义 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_coupon_id。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "promotion_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购套餐定义的“标准时长”(券本身标称的可用时长)。 【示例】3600(用于团购套餐定义的“标准时长”(券本身标称的可用时长))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - promotion_seconds。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "offer_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】优惠类型。 【示例】1(用于优惠类型)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - offer_type。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "assistant_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】分摊到“助教服务”的促销金额。 【示例】0.0(用于分摊到“助教服务”的促销金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - assistant_promotion_money。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】进一步细分助教服务的促销金额。 【示例】0.0(用于进一步细分助教服务的促销金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - assistant_service_promotion_money。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "table_service_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次券使用中,分摊到“台费服务费”部分的促销金额。 【示例】0.0(用于本次券使用中,分摊到“台费服务费”部分的促销金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - table_service_promotion_money。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "goods_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次券使用中,分摊到“商品”部分的促销金额。 【示例】0.0(用于本次券使用中,分摊到“商品”部分的促销金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - goods_promotion_money。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "recharge_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自“充值类优惠”的分摊金额(例如储值赠送部分)。 【示例】0.0(用于来自“充值类优惠”的分摊金额(例如储值赠送部分))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - recharge_promotion_money。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "reward_promotion_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次促销中,属于“奖励金/积分抵扣”的金额。 【示例】0.0(用于本次促销中,属于“奖励金/积分抵扣”的金额)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - reward_promotion_money。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "goodsoptionprice",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品规格价格,用于商品类促销分摊时使用。 【示例】0.0(商品规格价格,用于商品类促销分摊时使用)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - goodsOptionPrice。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员姓名。 【示例】NULL(用于营业员姓名)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_name。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "sales_man_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员所属组织 ID。 【示例】0(用于营业员所属组织 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - sales_man_org_id。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "salesman_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员角色 ID。 【示例】0(用于营业员角色 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_role_id。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员/业务员用户 ID。 【示例】0(用于营业员/业务员用户 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - salesman_user_id。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】执行本次核销/结算操作的 操作员 ID。 【示例】2790687322443013(用于执行本次核销/结算操作的 操作员 ID)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - operator_id。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员名称(包含角色说明),与 operator_id 对应的冗余展示字段。 【示例】收银员:郑丽珊(用于操作员名称(包含角色说明),与 operator_id 对应的冗余展示字段)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - operator_name。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否单独作为一条订单行。 【示例】1(用于是否单独作为一条订单行)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - is_single_order。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标记(0=否,1=是)。 【示例】0(用于逻辑删除标记(0=否,1=是))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - is_delete。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条团购套餐使用流水创建时间(即券核销时间,或与结账时间接近)。 【示例】2025-11-09 23:35:57(用于本条团购套餐使用流水创建时间(即券核销时间,或与结账时间接近))。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - create_time。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "assistant_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "coupon_sale_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "good_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "goods_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "member_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "recharge_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "table_service_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "table_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】group_buy_redemption_records.json - data.siteTableUseDetailsList - $。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】group_buy_redemption_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】group_buy_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/group_buy_redemption_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】group_buy_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】group_buy_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 57
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,270 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "member_balance_changes",
|
||||
"columns": [
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/商户 ID,本数据中是固定值(同一品牌/商户)。 【示例】2790683160709957(用于租户/商户 ID,本数据中是固定值(同一品牌/商户))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】非 0:记录所属的具体门店 ID(与其他 JSON 内的 site_id 一致)。 【示例】2790685415443269(用于非 0:记录所属的具体门店 ID(与其他 JSON 内的 site_id 一致))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员卡的“注册门店 ID”,即办卡所在门店。 【示例】2790685415443269(用于会员卡的“注册门店 ID”,即办卡所在门店)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - register_site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "registersitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡片的注册门店名称(办卡地点),和 register_site_id 配套。 【示例】朗朗桌球(用于卡片的注册门店名称(办卡地点),和 register_site_id 配套)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - registerSiteName。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "paysitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】发生本次余额变更的门店名称(即本次消费/充值所在门店)。 【示例】朗朗桌球(用于发生本次余额变更的门店名称(即本次消费/充值所在门店))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - paySiteName。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】余额变更记录的主键 ID,唯一标识这一条“账户余额变化事件”。 【示例】2957881605869253(用于余额变更记录的主键 ID,唯一标识这一条“账户余额变化事件”)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商户维度的会员 ID(租户内会员主键)。 【示例】2799212845565701(用于商户维度的会员 ID(租户内会员主键))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_member_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员卡账户 ID,在租户内唯一标识某张卡。 【示例】2799219999295237(用于会员卡账户 ID,在租户内唯一标识某张卡)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - tenant_member_card_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统级(全局)会员 ID。 【示例】2799212844549893(用于系统级(全局)会员 ID)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - system_member_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "membername",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员姓名或称呼(非昵称字段)。 【示例】曾丹烨(用于会员姓名或称呼(非昵称字段))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberName。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "membermobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员手机号。 【示例】13922213242(用于会员手机号)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberMobile。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "card_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡种类型 ID,用于区分不同卡种。 【示例】2793249295533893(卡种类型 ID,用于区分不同卡种)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - card_type_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "membercardtypename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡种名称,与 card_type_id 一一对应,是一个 卡种枚举名称。 【示例】储值卡(用于卡种名称,与 card_type_id 一一对应,是一个 卡种枚举名称)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - memberCardTypeName。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "account_data",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次变动的金额(元),正数表示增加,负数表示减少。 【示例】-120.0(用于本次变动的金额(元),正数表示增加,负数表示减少)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - account_data。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "before",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次变动前,该卡账户的余额(元)。 【示例】816.3(用于本次变动前,该卡账户的余额(元))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - before。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "after",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次变动后,该卡账户的余额(元)。 【示例】696.3(用于本次变动后,该卡账户的余额(元))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - after。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】可能用于标记“其中有多少金额是以‘退款’形式回流的”,或区分“退回余额”和“原路退回”两种模式。 【示例】0.0(可能用于标记“其中有多少金额是以‘退款’形式回流的”,或区分“退回余额”和“原路退回”两种模式)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - refund_amount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "from_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - from_type。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】0(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - payment_method。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】例如某次充值记录的 ID、某张订单/结算单 ID、某次活动抵用券核销记录 ID 等。 【示例】2957881518788421(用于例如某次充值记录的 ID、某张订单/结算单 ID、某次活动抵用券核销记录 ID 等)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - relate_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当为空时,说明这条变动没有额外备注说明。 【示例】充值退款(用于当为空时,说明这条变动没有额外备注说明)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - remark。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】执行此次余额变更操作的员工 ID。 【示例】2790687322443013(用于执行此次余额变更操作的员工 ID)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - operator_id。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名(带职位前缀),是对 operator_id 的可读冗余字段。 【示例】收银员:郑丽珊(用于操作员姓名(带职位前缀),是对 operator_id 的可读冗余字段)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - operator_name。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标记(0=否,1=是)。 【示例】0(用于逻辑删除标记(0=否,1=是))。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - is_delete。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条余额变更记录的创建时间,通常接近交易发生时间。 【示例】2025-11-09 22:52:48(用于本条余额变更记录的创建时间,通常接近交易发生时间)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - create_time。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "principal_after",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "principal_before",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "principal_data",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】member_balance_changes.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】member_balance_changes.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/member_balance_changes.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】member_balance_changes.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】member_balance_changes.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】member_balance_changes.json - data.tenantMemberCardLogs - $。",
|
||||
"ordinal_position": 33
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "member_profiles",
|
||||
"columns": [
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - tenant_id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员的注册门店 ID。 【示例】2790685415443269(用于会员的注册门店 ID)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - register_site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】注册门店名称,属于冗余字段,用于直接展示。 【示例】朗朗桌球(注册门店名称,属于冗余字段,用于直接展示)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - site_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这是“租户内会员账户”的主键 ID。 【示例】2955204541320325(用于这是“租户内会员账户”的主键 ID)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这是“系统级会员 ID”,在全平台唯一,用来把一个会员在不同门店/不同卡类型下的账户统一到一个“人”的维度上。 【示例】2955204540009605(用于这是“系统级会员 ID”,在全平台唯一,用来把一个会员在不同门店/不同卡类型下的账户统一到一个“人”的维度上)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - system_member_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这两个字段是成对出现的:一个数值码,一个中文名称。 【示例】2790683528022853(用于这两个字段是成对出现的:一个数值码,一个中文名称)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - member_card_grade_code。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这是“会员卡种类/等级”的定义字段。 【示例】储值卡(用于这是“会员卡种类/等级”的定义字段)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - member_card_grade_name。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员绑定的手机号码。 【示例】18620043391(用于会员绑定的手机号码)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - mobile。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "nickname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员在当前租户下的显示名称(可以是姓名,也可以是昵称)。 【示例】胡先生(用于会员在当前租户下的显示名称(可以是姓名,也可以是昵称))。 【JSON字段】member_profiles.json - data.tenantMemberInfos - nickname。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "point",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前积分余额(这条会员账户的积分值)。 【示例】0.0(用于当前积分余额(这条会员账户的积分值))。 【JSON字段】member_profiles.json - data.tenantMemberInfos - point。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "growth_value",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】成长值 / 经验值,用于会员等级晋升的累计指标。 【示例】0.0(成长值 / 经验值,用于会员等级晋升的累计指标)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - growth_value。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "referrer_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】推荐人会员 ID,用于记录该会员是由哪位老会员推荐。 【示例】0(推荐人会员 ID,用于记录该会员是由哪位老会员推荐)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - referrer_member_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】帐户状态(偏“卡状态/档案状态”)。 【示例】1(用于帐户状态(偏“卡状态/档案状态”))。 【JSON字段】member_profiles.json - data.tenantMemberInfos - status。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "user_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】用户账号状态(偏“用户逻辑”层面的状态)。 【示例】1(用于用户账号状态(偏“用户逻辑”层面的状态))。 【JSON字段】member_profiles.json - data.tenantMemberInfos - user_status。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员账户的创建时间(即这条档案/这张卡在系统中被创建的时间)。 【示例】2025-11-08 01:29:33(用于会员账户的创建时间(即这条档案/这张卡在系统中被创建的时间))。 【JSON字段】member_profiles.json - data.tenantMemberInfos - create_time。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "pay_money_sum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "person_tenant_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "person_tenant_org_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "recharge_money_sum",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "register_source",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】member_profiles.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】member_profiles.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/member_profiles.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】member_profiles.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】member_profiles.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】member_profiles.json - data.tenantMemberInfos - $。",
|
||||
"ordinal_position": 25
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,646 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "member_stored_value_cards",
|
||||
"columns": [
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID,与其他 JSON 中 tenant_id 一致。 【示例】2790683160709957(用于租户/品牌 ID,与其他 JSON 中 tenant_id 一致)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenant_id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前商户(品牌/租户)中会员的主键 ID。 【示例】2955204541320325(用于当前商户(品牌/租户)中会员的主键 ID)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenant_member_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "system_member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】系统级会员 ID(跨门店统一主键)。 【示例】2955204540009605(用于系统级会员 ID(跨门店统一主键))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - system_member_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "register_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡首次办理的门店 ID。 【示例】2790685415443269(用于卡首次办理的门店 ID)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - register_site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡归属门店名称(视图中的展示字段)。 【示例】朗朗桌球(用于卡归属门店名称(视图中的展示字段))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - site_name。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本表主键 ID,用于唯一标识一条记录。 【示例】2955206162843781(本表主键 ID,用于唯一标识一条记录)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡等级/卡类代码,和下面两个名称字段一一对应。 【示例】2790683528022856(用于卡等级/卡类代码,和下面两个名称字段一一对应)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_grade_code。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "member_card_grade_code_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡等级/卡类名称。 【示例】活动抵用券(用于卡等级/卡类名称)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_grade_code_name。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "member_card_type_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡类型名称,实际与 member_card_grade_code_name 一致。 【示例】活动抵用券(用于卡类型名称,实际与 member_card_grade_code_name 一致)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_card_type_name。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "member_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】持卡会员姓名快照。 【示例】胡先生(用于持卡会员姓名快照)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_name。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "member_mobile",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】持卡会员手机号快照。 【示例】18620043391(用于持卡会员手机号快照)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - member_mobile。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "card_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡种 ID(定义“这是哪一种卡”)。 【示例】2793266846533445(用于卡种 ID(定义“这是哪一种卡”))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_type_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "card_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实体卡物理卡号/条码号。 【示例】NULL(用于实体卡物理卡号/条码号)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_no。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "card_physics_type",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】物理卡类型。 【示例】1(用于物理卡类型)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - card_physics_type。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前卡内余额(主要针对储值卡、部分券卡)。 【示例】0.0(用于当前卡内余额(主要针对储值卡、部分券卡))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - balance。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "denomination",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】采用“几折”的记法:10=不打折,9=九折,8=八折。 【示例】0.0(用于采用“几折”的记法:10=不打折,9=九折,8=八折)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - denomination。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "table_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_discount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "goods_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "assistant_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_discount。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_discount。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "table_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_service_discount。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_service_discount。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "coupon_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - coupon_discount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "goods_service_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】10.0(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_service_discount。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "assistant_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_discount_sub_switch。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "table_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_discount_sub_switch。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "goods_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount_sub_switch。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_discount_sub_switch",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】2(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_discount_sub_switch。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "table_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_service_deduct_radio。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "assistant_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_service_deduct_radio。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "goods_service_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_service_deduct_radio。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "assistant_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_deduct_radio。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "table_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - table_deduct_radio。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "goods_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_deduct_radio。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - coupon_deduct_radio。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "assistant_reward_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】100.0(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistant_reward_deduct_radio。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "tablecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则)。 【示例】0.0(用于针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableCardDeduct。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "tableservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置。 【示例】0.0(用于如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableServiceCardDeduct。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "goodscardeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则)。 【示例】0.0(用于针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsCarDeduct。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "goodsservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置。 【示例】0.0(用于如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsServiceCardDeduct。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "assistantcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则)。 【示例】0.0(用于针对台费/商品/助教三类消费的扣卡金额配置(类似“每小时从卡里扣 xx 元”或“每次抵扣 xx 元”的规则))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantCardDeduct。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "assistantservicecarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置。 【示例】0.0(用于如果系统中区分“储值金、服务金、奖励金”等子账户,这三个字段对应“服务金”子账户的扣款配置)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantServiceCardDeduct。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "assistantrewardcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】助教奖励金方向扣款的配置。 【示例】0.0(用于助教奖励金方向扣款的配置)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - assistantRewardCardDeduct。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "cardsettlededuct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】结算时从卡中扣除的金额上限/规则配置(视图级。 【示例】0.0(用于结算时从卡中扣除的金额上限/规则配置(视图级)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - cardSettleDeduct。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "couponcarddeduct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】与卡绑定的“券额度扣除配置”。 【示例】0.0(用于与卡绑定的“券额度扣除配置”)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - couponCardDeduct。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "deliveryfeededuct",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】配送费可否/多少从卡中抵扣,目前无业务发生。 【示例】0.0(用于配送费可否/多少从卡中抵扣,目前无业务发生)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - deliveryFeeDeduct。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "use_scene",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡使用场景说明(比如“仅店内使用”“仅团建”等),本门店尚未使用此字段。 【示例】NULL(用于卡使用场景说明(比如“仅店内使用”“仅团建”等),本门店尚未使用此字段)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - use_scene。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "able_cross_site",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否允许跨店使用。 【示例】1(用于是否允许跨店使用)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - able_cross_site。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "is_allow_give",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否允许转赠/转让给其他会员。 【示例】0(用于是否允许转赠/转让给其他会员)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_allow_give。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "is_allow_order_deduct",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否允许在“订单层面统一扣款”。 【示例】0(用于是否允许在“订单层面统一扣款”)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_allow_order_deduct。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - is_delete。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "bind_password",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡绑定密码,用于消费或查询验证(目前未启用)。 【示例】NULL(卡绑定密码,用于消费或查询验证(目前未启用))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - bind_password。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "goods_discount_range_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】1(数量/时长字段,用于统计与计量)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goods_discount_range_type。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "goodscategoryid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】可用的商品分类 ID 列表。 【示例】[](用于可用的商品分类 ID 列表)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - goodsCategoryId。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "tableareaid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】限定可使用的台区 ID 列表。 【示例】[](用于限定可使用的台区 ID 列表)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tableAreaId。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "effect_site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡片限定生效门店 ID。 【示例】0(用于卡片限定生效门店 ID)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - effect_site_id。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡片生效开始时间(有效期起始)。 【示例】2025-11-08 01:31:12(用于卡片生效开始时间(有效期起始))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - start_time。",
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡片有效期结束时间。 【示例】2225-01-01 00:00:00(用于卡片有效期结束时间)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - end_time。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "disable_start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】停用时间段(比如临时冻结卡的起止时间)。 【示例】0001-01-01 00:00:00(用于停用时间段(比如临时冻结卡的起止时间))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - disable_start_time。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "disable_end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】停用时间段(比如临时冻结卡的起止时间)。 【示例】0001-01-01 00:00:00(用于停用时间段(比如临时冻结卡的起止时间))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - disable_end_time。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "last_consume_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最近一次消费时间。 【示例】2025-11-09 07:48:23(用于最近一次消费时间)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - last_consume_time。",
|
||||
"ordinal_position": 61
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】卡片创建时间(开卡时间)。 【示例】2025-11-08 01:31:12(用于卡片创建时间(开卡时间))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - create_time。",
|
||||
"ordinal_position": 62
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】状态枚举,用于标识记录当前业务状态。 【示例】1(状态枚举,用于标识记录当前业务状态。)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - status。",
|
||||
"ordinal_position": 63
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】在前端展示或某些列表中的排序权重。 【示例】1(用于在前端展示或某些列表中的排序权重)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - sort。",
|
||||
"ordinal_position": 64
|
||||
},
|
||||
{
|
||||
"name": "tenantavatar",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】品牌头像 URL(未配置)。 【示例】NULL(用于品牌头像 URL(未配置))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenantAvatar。",
|
||||
"ordinal_position": 65
|
||||
},
|
||||
{
|
||||
"name": "tenantname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌名称(当前导出为空)。 【示例】NULL(用于租户/品牌名称(当前导出为空))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - tenantName。",
|
||||
"ordinal_position": 66
|
||||
},
|
||||
{
|
||||
"name": "pdassisnatlevel",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】允许使用的“陪打/助教等级”列表。 【示例】[](用于允许使用的“陪打/助教等级”列表)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - pdAssisnatLevel。",
|
||||
"ordinal_position": 67
|
||||
},
|
||||
{
|
||||
"name": "cxassisnatlevel",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】可能是“促销活动中的助教等级限制”(命名中 cx 多为“促销”缩写)。 【示例】[](用于可能是“促销活动中的助教等级限制”(命名中 cx 多为“促销”缩写))。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - cxAssisnatLevel。",
|
||||
"ordinal_position": 68
|
||||
},
|
||||
{
|
||||
"name": "able_share_member_discount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 69
|
||||
},
|
||||
{
|
||||
"name": "electricity_deduct_radio",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 70
|
||||
},
|
||||
{
|
||||
"name": "electricity_discount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 71
|
||||
},
|
||||
{
|
||||
"name": "electricitycarddeduct",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 72
|
||||
},
|
||||
{
|
||||
"name": "member_grade",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 73
|
||||
},
|
||||
{
|
||||
"name": "principal_balance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 74
|
||||
},
|
||||
{
|
||||
"name": "rechargefreezebalance",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 75
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 76
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】member_stored_value_cards.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】member_stored_value_cards.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 77
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/member_stored_value_cards.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】member_stored_value_cards.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 78
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】member_stored_value_cards.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 79
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】member_stored_value_cards.json - data.tenantMemberCards - $。",
|
||||
"ordinal_position": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "payment_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付流水记录的主键 ID。 【示例】2957924026486597(用于支付流水记录的主键 ID)。 【JSON字段】payment_transactions.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付记录所属的门店 ID。 【示例】2790685415443269(用于支付记录所属的门店 ID)。 【JSON字段】payment_transactions.json - $ - site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "siteprofile",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店信息快照,与其他 JSON 中的 siteProfile 结构一致。 【示例】{\"id\": 2790685415443269, \"org_id\": 2790684179467077, \"shop_name\": \"朗朗桌球\", \"avatar\": \"https://oss.ficoo.vip/admin/hXcE4E…(用于门店信息快照,与其他 JSON 中的 siteProfile 结构一致)。 【JSON字段】payment_transactions.json - $ - siteProfile。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "relate_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】表示“这条支付记录关联的业务类型”。 【示例】2(用于表示“这条支付记录关联的业务类型”)。 【JSON字段】payment_transactions.json - $ - relate_type。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联业务记录的主键 ID(按 relate_type 不同指向不同表)。 【示例】2957922914357125(用于关联业务记录的主键 ID(按 relate_type 不同指向不同表))。 【JSON字段】payment_transactions.json - $ - relate_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条支付流水的“支付金额”,单位为元。 【示例】10.0(用于本条支付流水的“支付金额”,单位为元)。 【JSON字段】payment_transactions.json - $ - pay_amount。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "pay_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付状态枚举字段。 【示例】2(用于支付状态枚举字段)。 【JSON字段】payment_transactions.json - $ - pay_status。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际支付完成时间(支付状态变为成功的时间戳)。 【示例】2025-11-09 23:35:57(用于实际支付完成时间(支付状态变为成功的时间戳))。 【JSON字段】payment_transactions.json - $ - pay_time。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付记录创建时间,通常与发起支付请求的时间一致(创建支付流水的时间戳)。 【示例】2025-11-09 23:35:57(用于支付记录创建时间,通常与发起支付请求的时间一致(创建支付流水的时间戳))。 【JSON字段】payment_transactions.json - $ - create_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付方式枚举,例如微信、支付宝、现金、银行卡、储值卡等某一种。 【示例】4(用于支付方式枚举,例如微信、支付宝、现金、银行卡、储值卡等某一种)。 【JSON字段】payment_transactions.json - $ - payment_method。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "online_pay_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】每一笔结账单(settleList.id)对应一条支付记录(当前样本中是一条记录,relate_id 唯一)。 【示例】0(用于每一笔结账单(settleList.id)对应一条支付记录(当前样本中是一条记录,relate_id 唯一))。 【JSON字段】payment_transactions.json - $ - online_pay_channel。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】payment_transactions.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】payment_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/payment_transactions.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】payment_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】payment_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】payment_transactions.json - $ - $。",
|
||||
"ordinal_position": 17
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "platform_coupon_redemption_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条平台验券记录在本系统内的主键 ID。 【示例】2957929042218501(用于本条平台验券记录在本系统内的主键 ID)。 【JSON字段】platform_coupon_redemption_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "verify_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】平台核销记录 ID(某些平台会为每一次核销生成一个唯一 ID)。 【示例】7570689090418149418(用于平台核销记录 ID(某些平台会为每一次核销生成一个唯一 ID))。 【JSON字段】platform_coupon_redemption_records.json - $ - verify_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "certificate_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】平台侧的凭证 ID(通常由第三方团购平台生成的券实例 ID)。 【示例】5008024789379597447(用于平台侧的凭证 ID(通常由第三方团购平台生成的券实例 ID))。 【JSON字段】platform_coupon_redemption_records.json - $ - certificate_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "coupon_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券码,顾客出示的团购券密码/编号。 【示例】0102701209726(用于券码,顾客出示的团购券密码/编号)。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_code。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "coupon_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购券产品名称(即第三方平台上向顾客展示的名称)。 【示例】【全天可用】中八桌球一小时(A区)(用于团购券产品名称(即第三方平台上向顾客展示的名称))。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_name。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "coupon_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券来源渠道(第三方平台渠道编号)。 【示例】1(用于券来源渠道(第三方平台渠道编号))。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_channel。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "groupon_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】团购券类型。 【示例】1(用于团购券类型)。 【JSON字段】platform_coupon_redemption_records.json - $ - groupon_type。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "group_package_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】标识类 ID 字段,用于关联/定位相关实体。 【示例】0(标识类 ID 字段,用于关联/定位相关实体。)。 【JSON字段】platform_coupon_redemption_records.json - $ - group_package_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "sale_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】顾客在第三方平台上实际支付的价格(团购售价)。 【示例】29.9(用于顾客在第三方平台上实际支付的价格(团购售价))。 【JSON字段】platform_coupon_redemption_records.json - $ - sale_price。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "coupon_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券面值 / 套餐价值(系统层面的“可抵扣金额或对应套餐价值”)。 【示例】48.0(用于券面值 / 套餐价值(系统层面的“可抵扣金额或对应套餐价值”))。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_money。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "coupon_free_time",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券附带的“免费时长”字段(例如送多少分钟台费)。 【示例】0(用于券附带的“免费时长”字段(例如送多少分钟台费))。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_free_time。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "coupon_cover",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_cover。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "coupon_remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】617547ec-9697-4f58-a700-b30a49e88904||CgYIASAHKAESLgos9ZhHDryhHb0z3RpdBZ0dVoaQbkldBcx/XTXPV8Te+9SEqYOa7aDp8nbKOpsaAA==(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】platform_coupon_redemption_records.json - $ - coupon_remark。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "use_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】值 1:198 条。 【示例】1(用于值 1:198 条)。 【JSON字段】platform_coupon_redemption_records.json - $ - use_status。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "consume_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】券被核销/使用的业务时间。 【示例】2025-11-09 23:41:04(用于券被核销/使用的业务时间)。 【JSON字段】platform_coupon_redemption_records.json - $ - consume_time。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】验券记录在本系统中创建的时间(记录入库时间)。 【示例】2025-11-09 23:41:03(用于验券记录在本系统中创建的时间(记录入库时间))。 【JSON字段】platform_coupon_redemption_records.json - $ - create_time。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "deal_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】另一个层次的团购产品 ID。 【示例】1345108507(用于另一个层次的团购产品 ID)。 【JSON字段】platform_coupon_redemption_records.json - $ - deal_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "channel_deal_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】渠道侧 dealId / 产品 ID,一般是第三方平台给该团购商品定义的主键。 【示例】1128411555(用于渠道侧 dealId / 产品 ID,一般是第三方平台给该团购商品定义的主键)。 【JSON字段】platform_coupon_redemption_records.json - $ - channel_deal_id。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】platform_coupon_redemption_records.json - $ - site_id。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "site_order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店内部的订单 ID(平台券核销时对应的店内订单)。 【示例】2957929043037702(用于门店内部的订单 ID(平台券核销时对应的店内订单))。 【JSON字段】platform_coupon_redemption_records.json - $ - site_order_id。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】使用券的球台 ID。 【示例】2793001904918661(用于使用券的球台 ID)。 【JSON字段】platform_coupon_redemption_records.json - $ - table_id。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商户/租户 ID(品牌级别)。 【示例】2790683160709957(用于商户/租户 ID(品牌级别))。 【JSON字段】platform_coupon_redemption_records.json - $ - tenant_id。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员 ID(执行验券操作的收银员/员工)。 【示例】2790687322443013(用于操作员 ID(执行验券操作的收银员/员工))。 【JSON字段】platform_coupon_redemption_records.json - $ - operator_id。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名,例如 \"收银员:郑丽珊\"。 【示例】收银员:郑丽珊(用于操作员姓名,例如 \"收银员:郑丽珊\")。 【JSON字段】platform_coupon_redemption_records.json - $ - operator_name。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】把平台验券记录挂到本门店的一条订单上。 【示例】0(用于把平台验券记录挂到本门店的一条订单上)。 【JSON字段】platform_coupon_redemption_records.json - $ - is_delete。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"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字段】platform_coupon_redemption_records.json - $ - siteProfile。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】platform_coupon_redemption_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】platform_coupon_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/platform_coupon_redemption_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】platform_coupon_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】platform_coupon_redemption_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】platform_coupon_redemption_records.json - $ - $。",
|
||||
"ordinal_position": 31
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,574 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "recharge_settlements",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】NULL(用于门店 ID)。 【JSON字段】recharge_settlements.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenantid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - tenantid。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "siteid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - siteid。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - sitename。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "balanceamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - balanceamount。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "cardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - cardamount。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "cashamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - cashamount。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "couponamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - couponamount。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "createtime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】recharge_settlements.json - $ - createtime。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "memberid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - memberid。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "membername",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - membername。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "tenantmembercardid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - tenantmembercardid。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "membercardtypename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - membercardtypename。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "memberphone",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - memberphone。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "tableid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - tableid。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "consumemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - consumemoney。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "onlineamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - onlineamount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "operatorid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - operatorid。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "operatorname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - operatorname。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "revokeorderid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - revokeorderid。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "revokeordername",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - revokeordername。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "revoketime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】recharge_settlements.json - $ - revoketime。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "payamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - payamount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "pointamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - pointamount。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "refundamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - refundamount。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "settlename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - settlename。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "settlerelateid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - settlerelateid。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "settlestatus",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - settlestatus。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "settletype",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - settletype。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "paytime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】recharge_settlements.json - $ - paytime。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "roundingamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - roundingamount。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "paymentmethod",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - paymentmethod。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "adjustamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - adjustamount。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "assistantcxmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - assistantcxmoney。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "assistantpdmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - assistantpdmoney。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "couponsaleamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - couponsaleamount。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "memberdiscountamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - memberdiscountamount。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "tablechargemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - tablechargemoney。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "goodsmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - goodsmoney。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "realgoodsmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - realgoodsmoney。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "servicemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - servicemoney。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "prepaymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - prepaymoney。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "salesmanname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】recharge_settlements.json - $ - salesmanname。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "orderremark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - orderremark。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "salesmanuserid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - salesmanuserid。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "canberevoked",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - canberevoked。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "pointdiscountprice",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - pointdiscountprice。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "pointdiscountcost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - pointdiscountcost。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "activitydiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】recharge_settlements.json - $ - activitydiscount。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "serialnumber",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】recharge_settlements.json - $ - serialnumber。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "assistantmanualdiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】recharge_settlements.json - $ - assistantmanualdiscount。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "allcoupondiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】recharge_settlements.json - $ - allcoupondiscount。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "goodspromotionmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - goodspromotionmoney。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "assistantpromotionmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - assistantpromotionmoney。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "isusecoupon",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - isusecoupon。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "isusediscount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】recharge_settlements.json - $ - isusediscount。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "isactivity",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - isactivity。",
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "isbindmember",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - isbindmember。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "isfirst",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】recharge_settlements.json - $ - isfirst。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "rechargecardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - rechargecardamount。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "giftcardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】recharge_settlements.json - $ - giftcardamount。",
|
||||
"ordinal_position": 61
|
||||
},
|
||||
{
|
||||
"name": "electricityadjustmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 62
|
||||
},
|
||||
{
|
||||
"name": "electricitymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 63
|
||||
},
|
||||
{
|
||||
"name": "mervousalesamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 64
|
||||
},
|
||||
{
|
||||
"name": "plcouponsaleamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 65
|
||||
},
|
||||
{
|
||||
"name": "realelectricitymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 66
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 67
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】recharge_settlements.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】recharge_settlements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 68
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/recharge_settlements.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】recharge_settlements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 69
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】recharge_settlements.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 70
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】recharge_settlements.json - $ - $。",
|
||||
"ordinal_position": 71
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "refund_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条 退款流水 的唯一 ID。 【示例】2955202296416389(用于本条 退款流水 的唯一 ID)。 【JSON字段】refund_transactions.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID,全系统维度标识该商户。 【示例】2790683160709957(用于租户/品牌 ID,全系统维度标识该商户)。 【JSON字段】refund_transactions.json - $ - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "tenantname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户(商户)名称。 【示例】朗朗桌球(用于租户(商户)名称)。 【JSON字段】refund_transactions.json - $ - tenantName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】refund_transactions.json - $ - site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "siteprofile",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店信息快照,结构与其他 JSON 中的 siteProfile 完全一致。 【示例】{\"id\": 2790685415443269, \"org_id\": 2790684179467077, \"shop_name\": \"朗朗桌球\", \"avatar\": \"https://oss.ficoo.vip/admin/hXcE4E…(用于门店信息快照,结构与其他 JSON 中的 siteProfile 完全一致)。 【JSON字段】refund_transactions.json - $ - siteProfile。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "relate_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本退款对应的“业务类型”。 【示例】5(用于本退款对应的“业务类型”)。 【JSON字段】refund_transactions.json - $ - relate_type。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "relate_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次退款关联的业务 ID。 【示例】2955078219057349(用于本次退款关联的业务 ID)。 【JSON字段】refund_transactions.json - $ - relate_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "pay_sn",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】0(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】refund_transactions.json - $ - pay_sn。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "pay_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本次退款的 资金变动金额。 【示例】-5000.0(用于本次退款的 资金变动金额)。 【JSON字段】refund_transactions.json - $ - pay_amount。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "refund_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】设计上本应显示“实际退款金额”(正数),与 pay_amount 配合使用。 【示例】0.0(用于设计上本应显示“实际退款金额”(正数),与 pay_amount 配合使用)。 【JSON字段】refund_transactions.json - $ - refund_amount。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "round_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】舍入金额/抹零金额。 【示例】0.0(用于舍入金额/抹零金额)。 【JSON字段】refund_transactions.json - $ - round_amount。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "pay_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】2(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】refund_transactions.json - $ - pay_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "pay_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】退款在支付渠道层面实际发生的时间。 【示例】2025-11-08 01:27:16(用于退款在支付渠道层面实际发生的时间)。 【JSON字段】refund_transactions.json - $ - pay_time。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条退款流水在系统内创建时间。 【示例】2025-11-08 01:27:16(用于本条退款流水在系统内创建时间)。 【JSON字段】refund_transactions.json - $ - create_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "payment_method",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】4(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】refund_transactions.json - $ - payment_method。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "pay_terminal",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】refund_transactions.json - $ - pay_terminal。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "pay_config_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付配置 ID,例如商户在“非球科技”内配置的某一条支付通道(某个微信商户号、银联通道)的主键。 【示例】0(用于支付配置 ID,例如商户在“非球科技”内配置的某一条支付通道(某个微信商户号、银联通道)的主键)。 【JSON字段】refund_transactions.json - $ - pay_config_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "online_pay_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】0(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】refund_transactions.json - $ - online_pay_channel。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "online_pay_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前:全部 0。 【示例】0(用于当前:全部 0)。 【JSON字段】refund_transactions.json - $ - online_pay_type。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "channel_fee",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】第三方支付渠道对本次退款收取的手续费。 【示例】0.0(用于第三方支付渠道对本次退款收取的手续费)。 【JSON字段】refund_transactions.json - $ - channel_fee。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "channel_payer_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】支付渠道侧的 payer ID,例如微信 openid、银行卡号掩码等。 【示例】NULL(用于支付渠道侧的 payer ID,例如微信 openid、银行卡号掩码等)。 【JSON字段】refund_transactions.json - $ - channel_payer_id。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "channel_pay_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】第三方支付平台的交易号(如微信支付单号、支付宝交易号等)。 【示例】NULL(用于第三方支付平台的交易号(如微信支付单号、支付宝交易号等))。 【JSON字段】refund_transactions.json - $ - channel_pay_no。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户内部的会员 ID(对应会员档案中的某个主键)。 【示例】0(用于租户内部的会员 ID(对应会员档案中的某个主键))。 【JSON字段】refund_transactions.json - $ - member_id。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "member_card_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联的会员卡账户 ID(对应“储值卡列表”或“会员档案”中的某一张卡)。 【示例】0(用于关联的会员卡账户 ID(对应“储值卡列表”或“会员档案”中的某一张卡))。 【JSON字段】refund_transactions.json - $ - member_card_id。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "cashier_point_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】收银点 ID,例如前台 1、前台 2、自助机等。 【示例】0(用于收银点 ID,例如前台 1、前台 2、自助机等)。 【JSON字段】refund_transactions.json - $ - cashier_point_id。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】执行该退款操作的操作员 ID。 【示例】0(用于执行该退款操作的操作员 ID)。 【JSON字段】refund_transactions.json - $ - operator_id。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "action_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前:全部 2。 【示例】2(用于当前:全部 2)。 【JSON字段】refund_transactions.json - $ - action_type。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "check_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前:全部 1。 【示例】1(用于当前:全部 1)。 【JSON字段】refund_transactions.json - $ - check_status。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "is_revoke",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】0(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】refund_transactions.json - $ - is_revoke。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】refund_transactions.json - $ - is_delete。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "balance_frozen_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】涉及会员储值卡退款时,暂时冻结的余额金额。 【示例】0.0(用于涉及会员储值卡退款时,暂时冻结的余额金额)。 【JSON字段】refund_transactions.json - $ - balance_frozen_amount。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "card_frozen_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】与上一个类似,偏向“某张卡的被冻结金额”,也与会员卡/储值账户相关。 【示例】0.0(用于与上一个类似,偏向“某张卡的被冻结金额”,也与会员卡/储值账户相关)。 【JSON字段】refund_transactions.json - $ - card_frozen_amount。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】refund_transactions.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】refund_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/refund_transactions.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】refund_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】refund_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】refund_transactions.json - $ - $。",
|
||||
"ordinal_position": 37
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,574 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "settlement_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】结账记录主键 ID(订单结算 ID)。 【示例】NULL(用于结账记录主键 ID(订单结算 ID))。 【JSON字段】settlement_records.json - $ - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenantid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - tenantid。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "siteid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - siteid。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - sitename。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "balanceamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - balanceamount。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "cardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - cardamount。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "cashamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - cashamount。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "couponamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - couponamount。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "createtime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】settlement_records.json - $ - createtime。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "memberid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - memberid。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "membername",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - membername。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "tenantmembercardid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - tenantmembercardid。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "membercardtypename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - membercardtypename。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "memberphone",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - memberphone。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "tableid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - tableid。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "consumemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - consumemoney。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "onlineamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - onlineamount。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "operatorid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - operatorid。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "operatorname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - operatorname。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "revokeorderid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - revokeorderid。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "revokeordername",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - revokeordername。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "revoketime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】settlement_records.json - $ - revoketime。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "payamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - payamount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "pointamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - pointamount。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "refundamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - refundamount。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "settlename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - settlename。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "settlerelateid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - settlerelateid。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "settlestatus",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - settlestatus。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "settletype",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - settletype。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "paytime",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】NULL(时间字段,用于记录业务时间点/发生时间)。 【JSON字段】settlement_records.json - $ - paytime。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "roundingamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - roundingamount。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "paymentmethod",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - paymentmethod。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "adjustamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - adjustamount。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "assistantcxmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - assistantcxmoney。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "assistantpdmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - assistantpdmoney。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "couponsaleamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - couponsaleamount。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "memberdiscountamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - memberdiscountamount。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "tablechargemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - tablechargemoney。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "goodsmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - goodsmoney。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "realgoodsmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - realgoodsmoney。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "servicemoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - servicemoney。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "prepaymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - prepaymoney。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "salesmanname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】settlement_records.json - $ - salesmanname。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "orderremark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - orderremark。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "salesmanuserid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - salesmanuserid。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "canberevoked",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - canberevoked。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "pointdiscountprice",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - pointdiscountprice。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "pointdiscountcost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - pointdiscountcost。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "activitydiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】settlement_records.json - $ - activitydiscount。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "serialnumber",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】settlement_records.json - $ - serialnumber。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "assistantmanualdiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】settlement_records.json - $ - assistantmanualdiscount。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "allcoupondiscount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】settlement_records.json - $ - allcoupondiscount。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "goodspromotionmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - goodspromotionmoney。",
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "assistantpromotionmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - assistantpromotionmoney。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "isusecoupon",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - isusecoupon。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "isusediscount",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】数量/时长字段,用于统计与计量。 【示例】NULL(数量/时长字段,用于统计与计量)。 【JSON字段】settlement_records.json - $ - isusediscount。",
|
||||
"ordinal_position": 56
|
||||
},
|
||||
{
|
||||
"name": "isactivity",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - isactivity。",
|
||||
"ordinal_position": 57
|
||||
},
|
||||
{
|
||||
"name": "isbindmember",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - isbindmember。",
|
||||
"ordinal_position": 58
|
||||
},
|
||||
{
|
||||
"name": "isfirst",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】settlement_records.json - $ - isfirst。",
|
||||
"ordinal_position": 59
|
||||
},
|
||||
{
|
||||
"name": "rechargecardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - rechargecardamount。",
|
||||
"ordinal_position": 60
|
||||
},
|
||||
{
|
||||
"name": "giftcardamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】NULL(金额字段,用于计费/结算/分摊等金额计算)。 【JSON字段】settlement_records.json - $ - giftcardamount。",
|
||||
"ordinal_position": 61
|
||||
},
|
||||
{
|
||||
"name": "electricityadjustmoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 62
|
||||
},
|
||||
{
|
||||
"name": "electricitymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 63
|
||||
},
|
||||
{
|
||||
"name": "mervousalesamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 64
|
||||
},
|
||||
{
|
||||
"name": "plcouponsaleamount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 65
|
||||
},
|
||||
{
|
||||
"name": "realelectricitymoney",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 66
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 67
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】settlement_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】settlement_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 68
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/settlement_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】settlement_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 69
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】settlement_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 70
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】settlement_records.json - $ - $。",
|
||||
"ordinal_position": 71
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "site_tables_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌主键 ID。 【示例】2791964216463493(用于台桌主键 ID)。 【JSON字段】site_tables_master.json - data.siteTables - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】site_tables_master.json - data.siteTables - site_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称快照,冗余字段,配合 site_id 使用。 【示例】朗朗桌球(用于门店名称快照,冗余字段,配合 site_id 使用)。 【JSON字段】site_tables_master.json - data.siteTables - siteName。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "appletQrCodeUrl",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "areaname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】区域名称,用于前台展示和区域维度管理。 【示例】A区(区域名称,用于前台展示和区域维度管理)。 【JSON字段】site_tables_master.json - data.siteTables - areaName。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "audit_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前值:全部为 2。 【示例】2(用于当前值:全部为 2)。 【JSON字段】site_tables_master.json - data.siteTables - audit_status。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "charge_free",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前值:全部为 0。 【示例】0(用于当前值:全部为 0)。 【JSON字段】site_tables_master.json - data.siteTables - charge_free。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌配置的创建时间或最近一次创建/复制时间。 【示例】2025-07-15 17:52:54(用于台桌配置的创建时间或最近一次创建/复制时间)。 【JSON字段】site_tables_master.json - data.siteTables - create_time。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "delay_lights_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台灯熄灭延迟时间(单位多半是秒或分钟),用于结账后延时关灯。 【示例】0(台灯熄灭延迟时间(单位多半是秒或分钟),用于结账后延时关灯)。 【JSON字段】site_tables_master.json - data.siteTables - delay_lights_time。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "is_online_reservation",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】2(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】site_tables_master.json - data.siteTables - is_online_reservation。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "is_rest_area",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前值:全部为 0。 【示例】0(用于当前值:全部为 0)。 【JSON字段】site_tables_master.json - data.siteTables - is_rest_area。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "light_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】2(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】site_tables_master.json - data.siteTables - light_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "only_allow_groupon",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】小程序二维码 URL。 【示例】2(用于小程序二维码 URL)。 【JSON字段】site_tables_master.json - data.siteTables - only_allow_groupon。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "order_delay_time",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单层面允许的“自动延时时长”(例如到点后自动延长多少时间继续计费)。 【示例】0(用于订单层面允许的“自动延时时长”(例如到点后自动延长多少时间继续计费))。 【JSON字段】site_tables_master.json - data.siteTables - order_delay_time。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "self_table",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前值:全部为 1。 【示例】1(用于当前值:全部为 1)。 【JSON字段】site_tables_master.json - data.siteTables - self_table。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "show_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】site_tables_master.json - data.siteTables - show_status。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店维度的“台桌区域 ID”。 【示例】2791963794329671(用于门店维度的“台桌区域 ID”)。 【JSON字段】site_tables_master.json - data.siteTables - site_table_area_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "tablestatusname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】table_status 的中文名称,仅为展示用途。 【示例】空闲中(用于table_status 的中文名称,仅为展示用途)。 【JSON字段】site_tables_master.json - data.siteTables - tableStatusName。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "table_cloth_use_cycle",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台呢使用周期阈值,例如达到某个秒数后提醒更换。 【示例】0(用于台呢使用周期阈值,例如达到某个秒数后提醒更换)。 【JSON字段】site_tables_master.json - data.siteTables - table_cloth_use_Cycle。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "table_cloth_use_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】时间字段,用于记录业务时间点/发生时间。 【示例】1863727(时间字段,用于记录业务时间点/发生时间。)。 【JSON字段】site_tables_master.json - data.siteTables - table_cloth_use_time。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台号/台名称,用于前台操作界面展示,也出现在小票和各种流水中的 ledger_name 或 tableName 字段。 【示例】A1(台号/台名称,用于前台操作界面展示,也出现在小票和各种流水中的 ledger_name 或 tableName 字段)。 【JSON字段】site_tables_master.json - data.siteTables - table_name。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "table_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】设计上应为“台的基础单价”字段(例如按小时或按局单价)。 【示例】0.0(用于设计上应为“台的基础单价”字段(例如按小时或按局单价))。 【JSON字段】site_tables_master.json - data.siteTables - table_price。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "table_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台当前运行状态,真实反映某一时刻台的占用/暂停情况。 【示例】1(用于台当前运行状态,真实反映某一时刻台的占用/暂停情况)。 【JSON字段】site_tables_master.json - data.siteTables - table_status。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "temporary_light_second",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】临时点灯时长(秒),例如手动临时开灯一段时间。 【示例】0(用于临时点灯时长(秒),例如手动临时开灯一段时间)。 【JSON字段】site_tables_master.json - data.siteTables - temporary_light_second。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "virtual_table",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前值:全部为 0。 【示例】0(用于当前值:全部为 0)。 【JSON字段】site_tables_master.json - data.siteTables - virtual_table。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "order_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】site_tables_master.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】site_tables_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/site_tables_master.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】site_tables_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】site_tables_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】site_tables_master.json - data.siteTables - $。",
|
||||
"ordinal_position": 31
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "stock_goods_category_tree",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】分类节点主键 ID(在商品分类维度中的唯一标识)。 【示例】2790683528350533(用于分类节点主键 ID(在商品分类维度中的唯一标识))。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户 ID(品牌/商户 ID)。 【示例】2790683160709957(用于租户 ID(品牌/商户 ID))。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "category_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】分类名称(实际业务分类名称)。 【示例】槟榔(用于分类名称(实际业务分类名称))。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - category_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "alias_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别。)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - alias_name。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "pid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】父级分类 ID。 【示例】0(用于父级分类 ID)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - pid。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "business_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】业务大类名称。 【示例】槟榔(用于业务大类名称)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - business_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_business_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】业务大类 ID。 【示例】2790683528317766(用于业务大类 ID)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - tenant_goods_business_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "open_salesman",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否启用“营业员”或“导购提成”相关的功能开关。 【示例】2(用于是否启用“营业员”或“导购提成”相关的功能开关)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - open_salesman。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "categoryboxes",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】子分类数组。 【示例】[{\"id\": 2790683528350534, \"tenant_id\": 2790683160709957, \"category_name\": \"槟榔\", \"alias_name\": \"\", \"pid\": 27906835283505…(用于子分类数组)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - categoryBoxes。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】分类的排序序号,用于前端展示顺序的控制。 【示例】1(分类的排序序号,用于前端展示顺序的控制)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - sort。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本文件可视为“所有参与库存管理的商品分类清单”,因此均为 1。 【示例】1(用于本文件可视为“所有参与库存管理的商品分类清单”,因此均为 1)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - is_warehousing。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】stock_goods_category_tree.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】stock_goods_category_tree.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/stock_goods_category_tree.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】stock_goods_category_tree.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】stock_goods_category_tree.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】stock_goods_category_tree.json - data.goodsCategoryList - $。",
|
||||
"ordinal_position": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,422 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "store_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店商品 ID,门店维度的商品主键。 【示例】2793025851560005(用于门店商品 ID,门店维度的商品主键)。 【JSON字段】store_goods_master.json - data.orderGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】store_goods_master.json - data.orderGoodsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID。 【示例】2790685415443269(用于门店 ID)。 【JSON字段】store_goods_master.json - data.orderGoodsList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店名称,是对 site_id 的冗余展示,方便直接阅读,无需再去关联门店档案。 【示例】朗朗桌球(用于门店名称,是对 site_id 的冗余展示,方便直接阅读,无需再去关联门店档案)。 【JSON字段】store_goods_master.json - data.orderGoodsList - siteName。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌维度的商品 ID,相当于“全局商品 ID”。 【示例】2792178593255301(用于租户/品牌维度的商品 ID,相当于“全局商品 ID”)。 【JSON字段】store_goods_master.json - data.orderGoodsList - tenant_goods_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品名称,例如“合味道泡面”“地道肠”“麻将房茶位费”等。 【示例】合味道泡面(用于商品名称,例如“合味道泡面”“地道肠”“麻将房茶位费”等)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_name。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "goods_bar_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品条形码(如 EAN-13 编码),用于扫码销售。 【示例】NULL(商品条形码(如 EAN-13 编码),用于扫码销售)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_bar_code。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品一级分类 ID。 【示例】2791941988405125(用于商品一级分类 ID)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_category_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "goods_second_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品二级分类 ID。 【示例】2793236829620037(用于商品二级分类 ID)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_second_category_id。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "onecategoryname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】一级分类名称,如“零食”“酒水”“服务费”等。 【示例】零食(用于一级分类名称,如“零食”“酒水”“服务费”等)。 【JSON字段】store_goods_master.json - data.orderGoodsList - oneCategoryName。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "twocategoryname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】二级分类名称,如“面”“洋酒”“纸巾”等。 【示例】面(用于二级分类名称,如“面”“洋酒”“纸巾”等)。 【JSON字段】store_goods_master.json - data.orderGoodsList - twoCategoryName。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品计量单位(销售单位)。 【示例】桶(用于商品计量单位(销售单位))。 【JSON字段】store_goods_master.json - data.orderGoodsList - unit。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "sale_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品标准销售价(挂牌价),单位为元。 【示例】12.0(用于商品标准销售价(挂牌价),单位为元)。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_price。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "cost_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品成本价(单件成本)。 【示例】0.0(用于商品成本价(单件成本))。 【JSON字段】store_goods_master.json - data.orderGoodsList - cost_price。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "cost_price_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】1 代表使用“固定成本价”(手工维护的 cost_price),provisional_total_cost 按“数量 × cost_price”算。 【示例】1(用于1 代表使用“固定成本价”(手工维护的 cost_price),provisional_total_cost 按“数量 × cost_price”算)。 【JSON字段】store_goods_master.json - data.orderGoodsList - cost_price_type。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "min_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最低允许成交价(限价)。 【示例】7.0(用于最低允许成交价(限价))。 【JSON字段】store_goods_master.json - data.orderGoodsList - min_discount_price。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "safe_stock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】安全库存量(阈值),低于该值时系统可以提示补货。 【示例】0(用于安全库存量(阈值),低于该值时系统可以提示补货)。 【JSON字段】store_goods_master.json - data.orderGoodsList - safe_stock。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "stock",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前可用库存数量(以 unit 为单位)。 【示例】18(用于当前可用库存数量(以 unit 为单位))。 【JSON字段】store_goods_master.json - data.orderGoodsList - stock。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "stock_a",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】副单位库存数量。 【示例】0(用于副单位库存数量)。 【JSON字段】store_goods_master.json - data.orderGoodsList - stock_A。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "sale_num",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】在当前统计口径下的销售数量(总销量,单位同 unit)。 【示例】104(用于在当前统计口径下的销售数量(总销量,单位同 unit))。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_num。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "total_purchase_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】总采购成本,单位为元。 【示例】0.0(用于总采购成本,单位为元)。 【JSON字段】store_goods_master.json - data.orderGoodsList - total_purchase_cost。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "total_sales",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】累计销售数量。 【示例】104(用于累计销售数量)。 【JSON字段】store_goods_master.json - data.orderGoodsList - total_sales。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "average_monthly_sales",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】平均月销量(件/月),根据某个统计周期内的销售数据折算而来。 【示例】1.32(用于平均月销量(件/月),根据某个统计周期内的销售数据折算而来)。 【JSON字段】store_goods_master.json - data.orderGoodsList - average_monthly_sales。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "batch_stock_quantity",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】当前“批次”的库存数量(主单位)。 【示例】43(用于当前“批次”的库存数量(主单位))。 【JSON字段】store_goods_master.json - data.orderGoodsList - batch_stock_quantity。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "days_available",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品“在架天数”或“可售天数”,大致等于当前时间减去首次上架时间。 【示例】13(用于商品“在架天数”或“可售天数”,大致等于当前时间减去首次上架时间)。 【JSON字段】store_goods_master.json - data.orderGoodsList - days_available。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "provisional_total_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】暂估总成本,单位为元。 【示例】0.0(用于暂估总成本,单位为元)。 【JSON字段】store_goods_master.json - data.orderGoodsList - provisional_total_cost。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "enable_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】控制商品档案是否参与任何业务(库存、销售等)。 【示例】1(用于控制商品档案是否参与任何业务(库存、销售等))。 【JSON字段】store_goods_master.json - data.orderGoodsList - enable_status。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "audit_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】观察值:全部为 2。 【示例】2(用于观察值:全部为 2)。 【JSON字段】store_goods_master.json - data.orderGoodsList - audit_status。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "goods_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_state。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】store_goods_master.json - data.orderGoodsList - is_delete。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否纳入库存管理。 【示例】1(用于是否纳入库存管理)。 【JSON字段】store_goods_master.json - data.orderGoodsList - is_warehousing。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "able_discount",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否允许参与折扣。 【示例】1(用于是否允许参与折扣)。 【JSON字段】store_goods_master.json - data.orderGoodsList - able_discount。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "able_site_transfer",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】表示是否允许跨门店调拨或跨站点共享库存。 【示例】2(用于表示是否允许跨门店调拨或跨站点共享库存)。 【JSON字段】store_goods_master.json - data.orderGoodsList - able_site_transfer。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "forbid_sell_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】观察值:全部为 1。 【示例】1(用于观察值:全部为 1)。 【JSON字段】store_goods_master.json - data.orderGoodsList - forbid_sell_status。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "freeze",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "send_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】观察值:全部为 1。 【示例】1(用于观察值:全部为 1)。 【JSON字段】store_goods_master.json - data.orderGoodsList - send_state。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "custom_label_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】自定义标签类型。 【示例】2(用于自定义标签类型)。 【JSON字段】store_goods_master.json - data.orderGoodsList - custom_label_type。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "option_required",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否需要在销售时选择规格/选项。 【示例】1(用于是否需要在销售时选择规格/选项)。 【JSON字段】store_goods_master.json - data.orderGoodsList - option_required。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "sale_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售渠道类型。 【示例】1(用于销售渠道类型)。 【JSON字段】store_goods_master.json - data.orderGoodsList - sale_channel。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "sort",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】排序权重,用于前端商品列表展示时的排版顺序,数值越小/越大哪个优先,具体规则看系统设定(一般是数值越小排序越靠前)。 【示例】100(排序权重,用于前端商品列表展示时的排版顺序,数值越小/越大哪个优先,具体规则看系统设定(一般是数值越小排序越靠前))。 【JSON字段】store_goods_master.json - data.orderGoodsList - sort。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品备注(可以写口味说明、供应商、注意事项等)。 【示例】NULL(用于商品备注(可以写口味说明、供应商、注意事项等))。 【JSON字段】store_goods_master.json - data.orderGoodsList - remark。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "pinyin_initial",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品名称的拼音首字母缩写,有时多个别名用逗号分隔。 【示例】HWDPM,GWDPM(用于商品名称的拼音首字母缩写,有时多个别名用逗号分隔)。 【JSON字段】store_goods_master.json - data.orderGoodsList - pinyin_initial。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "goods_cover",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品图片 URL(如 OSS 对象存储地址),用于前端展示商品图片。 【示例】https://oss.ficoo.vip/admin/8M1WM7_1753204221337.jpg(商品图片 URL(如 OSS 对象存储地址),用于前端展示商品图片)。 【JSON字段】store_goods_master.json - data.orderGoodsList - goods_cover。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店商品档案创建时间(商品在门店建立档案的时间点)。 【示例】2025-07-16 11:52:51(用于门店商品档案创建时间(商品在门店建立档案的时间点))。 【JSON字段】store_goods_master.json - data.orderGoodsList - create_time。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最后一次修改该商品档案的时间(包括价格调整、状态变更等)。 【示例】2025-11-09 07:23:47(用于最后一次修改该商品档案的时间(包括价格调整、状态变更等))。 【JSON字段】store_goods_master.json - data.orderGoodsList - update_time。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "commodity_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "not_sale",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】store_goods_master.json - data.orderGoodsList - $。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】store_goods_master.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】store_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/store_goods_master.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】store_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】store_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 52
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,454 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "store_goods_sales_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条「门店销售流水」记录的主键 ID。 【示例】2957924029550406(用于本条「门店销售流水」记录的主键 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID(系统主键)。 【示例】2790685415443269(用于门店 ID(系统主键))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "siteid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_id。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】名称字段,用于展示与辅助识别。 【示例】NULL(名称字段,用于展示与辅助识别)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - siteName。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "site_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店商品 ID。 【示例】2793026176012357(用于门店商品 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_goods_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户(品牌)级商品 ID(全局商品 ID)。 【示例】2792115932417925(用于租户(品牌)级商品 ID(全局商品 ID))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单结算 ID(结账单主键)。 【示例】2957922914357125(用于订单结算 ID(结账单主键))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_settle_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单交易号(业务单号)。 【示例】2957858167230149(用于订单交易号(业务单号))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_trade_no。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "order_goods_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单商品明细 ID(订单内部的商品行主键)。 【示例】2957858456391557(用于订单商品明细 ID(订单内部的商品行主键))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_goods_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "ordergoodsid",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】NULL(来自 JSON 导出的原始字段,用于保留业务取值)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_goods_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】关联支付记录的 ID。 【示例】0(用于关联支付记录的 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_pay_id。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "order_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单级优惠券 ID。 【示例】0(用于订单级优惠券 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - order_coupon_id。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售项目名称(商品名称),例如 “哇哈哈矿泉水”“地道肠”“东方树叶”等。 【示例】哇哈哈矿泉水(用于销售项目名称(商品名称),例如 “哇哈哈矿泉水”“地道肠”“东方树叶”等)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_name。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "ledger_group_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售项目所属的「门店内部分组名称」,类似前台菜单分组或大类标签。 【示例】酒水(用于销售项目所属的「门店内部分组名称」,类似前台菜单分组或大类标签)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_group_name。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】原始应收金额,公式上接近 ledger_unit_price × ledger_count。 【示例】5.0(用于原始应收金额,公式上接近 ledger_unit_price × ledger_count)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_amount。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售数量(以 unit 为单位,unit 字段在门店商品档案中)。 【示例】1(用于销售数量(以 unit 为单位,unit 字段在门店商品档案中))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_count。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品在该次销售中的「结算单价」(元/单位)。 【示例】5.0(用于商品在该次销售中的「结算单价」(元/单位))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_unit_price。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售流水状态。 【示例】1(用于销售流水状态)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - ledger_status。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条销售明细的「价格优惠金额」,即原价部分被减免掉的金额。 【示例】0.0(用于本条销售明细的「价格优惠金额」,即原价部分被减免掉的金额)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - discount_money。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】折后单价(元/单位)。 【示例】5.0(用于折后单价(元/单位))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - discount_price。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】被优惠券 / 团购券直接抵扣到这条商品明细上的金额。 【示例】0.0(用于被优惠券 / 团购券直接抵扣到这条商品明细上的金额)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - coupon_deduct_money。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由会员身份(会员折扣)针对这一行商品产生的优惠金额。 【示例】0.0(用于由会员身份(会员折扣)针对这一行商品产生的优惠金额)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - member_discount_amount。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "option_coupon_deduct_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由优惠券抵扣“选项价格”的金额。 【示例】0.0(用于由优惠券抵扣“选项价格”的金额)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_coupon_deduct_money。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "option_member_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由会员折扣作用在“选项价格”上的优惠金额。 【示例】0.0(用于由会员折扣作用在“选项价格”上的优惠金额)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_member_discount_money。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "point_discount_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由积分抵扣的金额(顾客兑换积分抵现金额)。 【示例】0.0(用于由积分抵扣的金额(顾客兑换积分抵现金额))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - point_discount_money。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "point_discount_money_cost",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】积分抵扣对应的“成本金额”(后台核算用),例如按积分成本来计提费用。 【示例】0.0(用于积分抵扣对应的“成本金额”(后台核算用),例如按积分成本来计提费用)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - point_discount_money_cost。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "real_goods_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品实际入账金额(考虑折扣、可能还会考虑其它抵扣后的实际销售金额)。 【示例】5.0(用于商品实际入账金额(考虑折扣、可能还会考虑其它抵扣后的实际销售金额))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - real_goods_money。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "cost_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条销售对应的成本金额(以元计)。 【示例】0.01(用于本条销售对应的成本金额(以元计))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - cost_money。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "push_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】本条销售对应的提成金额(给营业员/促销员的提成)。 【示例】0.0(用于本条销售对应的提成金额(给营业员/促销员的提成))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - push_money。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "sales_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售类型。 【示例】1(用于销售类型)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - sales_type。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否单独订单标识。 【示例】1(用于是否单独订单标识)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - is_single_order。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - is_delete。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "goods_remark",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品备注/口味说明/特殊说明。 【示例】哇哈哈矿泉水(用于商品备注/口味说明/特殊说明)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - goods_remark。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "option_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品选项(规格/加料)的附加价格。 【示例】0.0(用于商品选项(规格/加料)的附加价格)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_price。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "option_value_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品选项名称(如规格、口味:大杯/小杯,不加冰等)。 【示例】NULL(用于商品选项名称(如规格、口味:大杯/小杯,不加冰等))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - option_value_name。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "member_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】会员券 ID(比如会员专享优惠券)。 【示例】0(用于会员券 ID(比如会员专享优惠券))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - member_coupon_id。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "package_coupon_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】套餐券 ID。 【示例】0(用于套餐券 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - package_coupon_id。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "sales_man_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员所属组织/部门 ID。 【示例】0(用于营业员所属组织/部门 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - sales_man_org_id。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员姓名(如果有为具体销售员记业绩,则在此填姓名)。 【示例】NULL(用于营业员姓名(如果有为具体销售员记业绩,则在此填姓名))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_name。",
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "salesman_role_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员的系统角色 ID(例如某个角色代码表示“销售员”)。 【示例】0(用于营业员的系统角色 ID(例如某个角色代码表示“销售员”))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_role_id。",
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员用户 ID(系统账号 ID)。 【示例】0(用于营业员用户 ID(系统账号 ID))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - salesman_user_id。",
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员 ID(录入这笔销售的员工)。 【示例】2790687322443013(用于操作员 ID(录入这笔销售的员工))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - operator_id。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名,文字冗余。 【示例】收银员:郑丽珊(用于操作员姓名,文字冗余)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - operator_name。",
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "opensalesman",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】2(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - openSalesman。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "returns_number",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】退货数量(如果这条明细做了退货,会记录退货数量)。 【示例】0(用于退货数量(如果这条明细做了退货,会记录退货数量))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - returns_number。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】球台 ID。 【示例】2793003705192517(用于球台 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - site_table_id。",
|
||||
"ordinal_position": 47
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_business_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户级商品「业务大类」ID(例如“零食类”“酒水类”等更高维度)。 【示例】2790683528317768(用于租户级商品「业务大类」ID(例如“零食类”“酒水类”等更高维度))。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_business_id。",
|
||||
"ordinal_position": 48
|
||||
},
|
||||
{
|
||||
"name": "tenant_goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户级商品一级分类 ID。 【示例】2790683528350540(用于租户级商品一级分类 ID)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - tenant_goods_category_id。",
|
||||
"ordinal_position": 49
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售记录创建时间,通常就是结账时间或录入时间。 【示例】2025-11-09 23:35:57(用于销售记录创建时间,通常就是结账时间或录入时间)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - create_time。",
|
||||
"ordinal_position": 50
|
||||
},
|
||||
{
|
||||
"name": "coupon_share_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 51
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】store_goods_sales_records.json - data.orderGoodsLedgers - $。",
|
||||
"ordinal_position": 52
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 53
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】store_goods_sales_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】store_goods_sales_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 54
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/store_goods_sales_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】store_goods_sales_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 55
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】store_goods_sales_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 56
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,270 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "table_fee_discount_records",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费打折 / 调整流水主键 ID。 【示例】2957913441881989(用于台费打折 / 调整流水主键 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID,本批数据全部为同一家门店(朗朗桌球)。 【示例】2790685415443269(用于门店 ID,本批数据全部为同一家门店(朗朗桌球))。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"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字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - siteProfile。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌 ID。 【示例】2793020259897413(用于台桌 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - site_table_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "tableprofile",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】折扣发生时,对应台桌的配置信息快照。 【示例】{\"id\": 2793020259897413, \"tenant_id\": 2790683160709957, \"tenant_name\": \"\", \"siteName\": \"\", \"table_name\": \"S1\", \"site_ta…(用于折扣发生时,对应台桌的配置信息快照)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tableProfile。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户维度的“台桌区域 ID”。 【示例】2791961347968901(用于租户维度的“台桌区域 ID”)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - tenant_table_area_id。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "adjust_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】文件名是“台费打折”,字段名为“调整类型”,当前所有记录都是 1,即“台费打折/台费减免”这一种调整类型。 【示例】1(用于文件名是“台费打折”,字段名为“调整类型”,当前所有记录都是 1,即“台费打折/台费减免”这一种调整类型)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - adjust_type。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】148.15(金额字段,用于计费/结算/分摊等金额计算。)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_amount。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这里不是“秒数”,而是“调整次数/条数”的量化,目前固定为 1,表示“一次调账事件”。 【示例】1(用于这里不是“秒数”,而是“调整次数/条数”的量化,目前固定为 1,表示“一次调账事件”)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_count。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】设计上应该用于记录“调账项目名称”或“打折原因描述”(例如某种优惠规则名称),但当前门店并未使用该字段。 【示例】NULL(设计上应该用于记录“调账项目名称”或“打折原因描述”(例如某种优惠规则名称),但当前门店并未使用该字段)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_name。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - ledger_status。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "applicant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】打折/调账申请人 ID。 【示例】2790687322443013(用于打折/调账申请人 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - applicant_id。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "applicant_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】申请人姓名(带角色描述),为 applicant_id 的冗余显示字段。 【示例】收银员:郑丽珊(用于申请人姓名(带角色描述),为 applicant_id 的冗余显示字段)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - applicant_name。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际执行调账操作的操作员 ID。 【示例】2790687322443013(用于实际执行调账操作的操作员 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - operator_id。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名。 【示例】收银员:郑丽珊(用于操作员姓名)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - operator_name。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】结算单/小票 ID。 【示例】2957913171693253(用于结算单/小票 ID)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - order_settle_id。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单交易号。 【示例】2957784612605829(用于订单交易号)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - order_trade_no。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标记(0=否,1=是)。 【示例】0(用于逻辑删除标记(0=否,1=是))。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - is_delete。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费调整记录的创建时间,即打折操作被执行的时间戳。 【示例】2025-11-09 23:25:11(用于台费调整记录的创建时间,即打折操作被执行的时间戳)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - create_time。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "area_type_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "charge_free",
|
||||
"data_type": "boolean",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "sitename",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "table_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "table_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "tenant_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】table_fee_discount_records.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】table_fee_discount_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/table_fee_discount_records.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】table_fee_discount_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】table_fee_discount_records.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】table_fee_discount_records.json - data.taiFeeAdjustInfos - $。",
|
||||
"ordinal_position": 33
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,382 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "table_fee_transactions",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费流水记录主键(事实表主键)。 【示例】2957924029058885(用于台费流水记录主键(事实表主键))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "site_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店 ID,本次数据全部来自同一门店(朗朗桌球)。 【示例】2790685415443269(用于门店 ID,本次数据全部来自同一门店(朗朗桌球))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_id。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "siteprofile",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】{\"id\": 2790685415443269, \"org_id\": 2790684179467077, \"shop_name\": \"朗朗桌球\", \"avatar\": \"https://oss.ficoo.vip/admin/hXcE4E…(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - siteProfile。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "site_table_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】球台 ID。 【示例】2793003705192517(用于球台 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店内“台桌区域” ID(站在门店物理布局的角度)。 【示例】2791963794329671(用于门店内“台桌区域” ID(站在门店物理布局的角度))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_area_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "site_table_area_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台桌区域的名称,用于门店表现和区域统计。 【示例】A区(台桌区域的名称,用于门店表现和区域统计)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - site_table_area_name。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "tenant_table_area_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户维度的台桌区域 ID(品牌层面的同一类区域)。 【示例】2791960001957765(用于租户维度的台桌区域 ID(品牌层面的同一类区域))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - tenant_table_area_id。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "order_trade_no",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单交易号,是整笔订单的主编号。 【示例】2957858167230149(用于订单交易号,是整笔订单的主编号)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_trade_no。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "order_pay_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】订单支付记录 ID。 【示例】0(用于订单支付记录 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_pay_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "order_settle_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】结算单号/结账 ID,对应一次结账操作。 【示例】2957922914357125(用于结算单号/结账 ID,对应一次结账操作)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - order_settle_id。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "ledger_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台号名称,实际展示给员工/顾客看的桌台编号。 【示例】A17(用于台号名称,实际展示给员工/顾客看的桌台编号)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_name。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "ledger_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】按单价与计费时长计算出的原始应收台费金额。 【示例】48.0(用于按单价与计费时长计算出的原始应收台费金额)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_amount。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "ledger_count",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账记录的计费秒数,计费用秒数(应收时长)。 【示例】3600(用于台账记录的计费秒数,计费用秒数(应收时长))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_count。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "ledger_unit_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费结算时设置的 每小时单价/计费单价。 【示例】48.0(用于台费结算时设置的 每小时单价/计费单价)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_unit_price。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "ledger_status",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】来自 JSON 导出的原始字段,用于保留业务取值。 【示例】1(来自 JSON 导出的原始字段,用于保留业务取值。)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_status。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "ledger_start_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账上的计费起始时间。 【示例】2025-11-09 22:28:57(用于台账上的计费起始时间)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_start_time。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "ledger_end_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台账上的计费结束时间。 【示例】2025-11-09 23:28:57(用于台账上的计费结束时间)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - ledger_end_time。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "start_use_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台开始使用的时间(实际开台时间)。 【示例】2025-11-09 22:28:57(用于台开始使用的时间(实际开台时间))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - start_use_time。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "last_use_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】最后使用/操作时间。 【示例】2025-11-09 23:28:57(用于最后使用/操作时间)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - last_use_time。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "real_table_use_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】实际使用的总秒数(系统真实统计的使用时长)。 【示例】3600(用于实际使用的总秒数(系统真实统计的使用时长))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - real_table_use_seconds。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "real_table_charge_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】台费中实际向顾客收取的金额(现金/实付维度,未含券方承担或内部调账的那一部分)。 【示例】0.0(用于台费中实际向顾客收取的金额(现金/实付维度,未含券方承担或内部调账的那一部分))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - real_table_charge_money。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "add_clock_seconds",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】加钟秒数,在原有使用基础上追加的时长。 【示例】0(用于加钟秒数,在原有使用基础上追加的时长)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - add_clock_seconds。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "adjust_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】调整金额/调账金额,用于将台费金额转移或冲减到其它项目,或手工调整。 【示例】0.0(调整金额/调账金额,用于将台费金额转移或冲减到其它项目,或手工调整)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - adjust_amount。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "coupon_promotion_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由优惠券/活动/团购(平台/门店促销)承担的优惠金额,直接抵扣在台费上。 【示例】48.0(用于由优惠券/活动/团购(平台/门店促销)承担的优惠金额,直接抵扣在台费上)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - coupon_promotion_amount。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "member_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由会员权益产生的优惠金额,例如会员折扣、会员价等。 【示例】0.0(用于由会员权益产生的优惠金额,例如会员折扣、会员价等)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - member_discount_amount。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "used_card_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】由储值卡、次卡等“卡内余额”抵扣的金额。 【示例】0.0(用于由储值卡、次卡等“卡内余额”抵扣的金额)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - used_card_amount。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "mgmt_fee",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】管理费字段,用于未来支持“台费附加管理费/服务费”的功能。 【示例】0.0(管理费字段,用于未来支持“台费附加管理费/服务费”的功能)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - mgmt_fee。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店用于记录“服务费/成本/分成金额”的字段,类似助教流水里的 service_money。 【示例】0.0(门店用于记录“服务费/成本/分成金额”的字段,类似助教流水里的 service_money)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - service_money。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "fee_total",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】各种附加费用(如管理费、服务费)合计值。 【示例】0.0(用于各种附加费用(如管理费、服务费)合计值)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - fee_total。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "is_single_order",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】1(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - is_single_order。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标记(0=否,1=是)。 【示例】0(用于逻辑删除标记(0=否,1=是))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - is_delete。",
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "member_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】门店/租户内的会员 ID。 【示例】0(用于门店/租户内的会员 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - member_id。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "operator_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员 ID,负责开台/结账的员工账号 ID。 【示例】2790687322443013(用于操作员 ID,负责开台/结账的员工账号 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - operator_id。",
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "operator_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】操作员姓名(冗余字段),便于直接阅读,不必再联表员工档案。 【示例】收银员:郑丽珊(用于操作员姓名(冗余字段),便于直接阅读,不必再联表员工档案)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - operator_name。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "salesman_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】业务员/营业员姓名,如果台费有单独提成员工,这里记录归属人。 【示例】NULL(用于业务员/营业员姓名,如果台费有单独提成员工,这里记录归属人)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_name。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "salesman_org_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员所属机构/部门 ID。 【示例】0(用于营业员所属机构/部门 ID)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_org_id。",
|
||||
"ordinal_position": 37
|
||||
},
|
||||
{
|
||||
"name": "salesman_user_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】营业员的用户 ID(与 salesman_name 搭配)。 【示例】0(用于营业员的用户 ID(与 salesman_name 搭配))。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - salesman_user_id。",
|
||||
"ordinal_position": 38
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】这条台费流水记录的创建时间,通常接近结账时间。 【示例】2025-11-09 23:35:57(用于这条台费流水记录的创建时间,通常接近结账时间)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - create_time。",
|
||||
"ordinal_position": 39
|
||||
},
|
||||
{
|
||||
"name": "activity_discount_amount",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 40
|
||||
},
|
||||
{
|
||||
"name": "order_consumption_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 41
|
||||
},
|
||||
{
|
||||
"name": "real_service_money",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 42
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】table_fee_transactions.json - data.siteTableUseDetailsList - $。",
|
||||
"ordinal_position": 43
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 44
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】table_fee_transactions.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】table_fee_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 45
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/table_fee_transactions.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】table_fee_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 46
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】table_fee_transactions.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 47
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"schema": "ods",
|
||||
"table": "tenant_goods_master",
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品档案主键 ID,唯一标识一条商品。 【示例】2791925230096261(用于商品档案主键 ID,唯一标识一条商品)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - id。",
|
||||
"ordinal_position": 1
|
||||
},
|
||||
{
|
||||
"name": "tenant_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】租户/品牌 ID。 【示例】2790683160709957(用于租户/品牌 ID)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - tenant_id。",
|
||||
"ordinal_position": 2
|
||||
},
|
||||
{
|
||||
"name": "goods_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品名称(前台展示名称)。 【示例】东方树叶(用于商品名称(前台展示名称))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_name。",
|
||||
"ordinal_position": 3
|
||||
},
|
||||
{
|
||||
"name": "goods_bar_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品条码(EAN 等),目前未维护。 【示例】NULL(用于商品条码(EAN 等),目前未维护)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_bar_code。",
|
||||
"ordinal_position": 4
|
||||
},
|
||||
{
|
||||
"name": "goods_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品一级分类 ID。 【示例】2790683528350539(用于商品一级分类 ID)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_category_id。",
|
||||
"ordinal_position": 5
|
||||
},
|
||||
{
|
||||
"name": "goods_second_category_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品二级分类 ID。 【示例】2790683528350540(用于商品二级分类 ID)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_second_category_id。",
|
||||
"ordinal_position": 6
|
||||
},
|
||||
{
|
||||
"name": "categoryname",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品一级分类名称(业务可读)。 【示例】饮料(用于商品一级分类名称(业务可读))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - categoryName。",
|
||||
"ordinal_position": 7
|
||||
},
|
||||
{
|
||||
"name": "unit",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】计量单位。 【示例】瓶(用于计量单位)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - unit。",
|
||||
"ordinal_position": 8
|
||||
},
|
||||
{
|
||||
"name": "goods_number",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品内部编码(自定义货号/系统货号)。 【示例】1(用于商品内部编码(自定义货号/系统货号))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_number。",
|
||||
"ordinal_position": 9
|
||||
},
|
||||
{
|
||||
"name": "out_goods_id",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】外部系统商品 ID(对接第三方平台使用,如外卖、线上商城等)。 【示例】0(用于外部系统商品 ID(对接第三方平台使用,如外卖、线上商城等))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - out_goods_id。",
|
||||
"ordinal_position": 10
|
||||
},
|
||||
{
|
||||
"name": "goods_state",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品状态(上架/下架等)。 【示例】1(用于商品状态(上架/下架等))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_state。",
|
||||
"ordinal_position": 11
|
||||
},
|
||||
{
|
||||
"name": "sale_channel",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】销售渠道类型,如“门店堂食/线下零售/线上小程序”等的一种编码。 【示例】1(用于销售渠道类型,如“门店堂食/线下零售/线上小程序”等的一种编码)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - sale_channel。",
|
||||
"ordinal_position": 12
|
||||
},
|
||||
{
|
||||
"name": "able_discount",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否允许参与折扣/打折。 【示例】1(用于是否允许参与折扣/打折)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - able_discount。",
|
||||
"ordinal_position": 13
|
||||
},
|
||||
{
|
||||
"name": "able_site_transfer",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】布尔/开关字段,用于表示权限、可用性或状态开关。 【示例】2(布尔/开关字段,用于表示权限、可用性或状态开关。)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - able_site_transfer。",
|
||||
"ordinal_position": 14
|
||||
},
|
||||
{
|
||||
"name": "is_delete",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】逻辑删除标志。 【示例】0(用于逻辑删除标志)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - is_delete。",
|
||||
"ordinal_position": 15
|
||||
},
|
||||
{
|
||||
"name": "is_warehousing",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否启用库存管理。 【示例】1(用于是否启用库存管理)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - is_warehousing。",
|
||||
"ordinal_position": 16
|
||||
},
|
||||
{
|
||||
"name": "isinsite",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】是否在当前门店启用/上架。 【示例】false(用于是否在当前门店启用/上架)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - isInSite。",
|
||||
"ordinal_position": 17
|
||||
},
|
||||
{
|
||||
"name": "cost_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】成本价格。 【示例】0.0(用于成本价格)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - cost_price。",
|
||||
"ordinal_position": 18
|
||||
},
|
||||
{
|
||||
"name": "cost_price_type",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】金额字段,用于计费/结算/分摊等金额计算。 【示例】1(金额字段,用于计费/结算/分摊等金额计算。)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - cost_price_type。",
|
||||
"ordinal_position": 19
|
||||
},
|
||||
{
|
||||
"name": "market_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品标价 / 售价(标准销售单价)。 【示例】8.0(用于商品标价 / 售价(标准销售单价))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - market_price。",
|
||||
"ordinal_position": 20
|
||||
},
|
||||
{
|
||||
"name": "min_discount_price",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】该商品允许售卖的最低价格(底价)。 【示例】0.0(用于该商品允许售卖的最低价格(底价))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - min_discount_price。",
|
||||
"ordinal_position": 21
|
||||
},
|
||||
{
|
||||
"name": "common_sale_royalty",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】普通销售提成比例或提成金额的配置字段。 【示例】0(用于普通销售提成比例或提成金额的配置字段)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - common_sale_royalty。",
|
||||
"ordinal_position": 22
|
||||
},
|
||||
{
|
||||
"name": "point_sale_royalty",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】积分销售提成/积分赠送规则相关配置。 【示例】0(用于积分销售提成/积分赠送规则相关配置)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - point_sale_royalty。",
|
||||
"ordinal_position": 23
|
||||
},
|
||||
{
|
||||
"name": "pinyin_initial",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】拼音首字母/助记码。 【示例】DFSY,DFSX(用于拼音首字母/助记码)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - pinyin_initial。",
|
||||
"ordinal_position": 24
|
||||
},
|
||||
{
|
||||
"name": "commoditycode",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】与 commodity_code 是同一信息的数组形式(冗余存储),便于支持一个商品对应多个编码的场景。 【示例】[\"10000028\"](用于与 commodity_code 是同一信息的数组形式(冗余存储),便于支持一个商品对应多个编码的场景)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodityCode。",
|
||||
"ordinal_position": 25
|
||||
},
|
||||
{
|
||||
"name": "commodity_code",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品编码(通常为对外商品编码或条码)。 【示例】10000028(用于商品编码(通常为对外商品编码或条码))。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - commodity_code。",
|
||||
"ordinal_position": 26
|
||||
},
|
||||
{
|
||||
"name": "goods_cover",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品封面图片 URL 地址。 【示例】https://oss.ficoo.vip/admin/ZwS8fj_1753175129443.jpg(用于商品封面图片 URL 地址)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - goods_cover。",
|
||||
"ordinal_position": 27
|
||||
},
|
||||
{
|
||||
"name": "supplier_id",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】供应商 ID,用于关联到供应商档案。 【示例】0(供应商 ID,用于关联到供应商档案)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - supplier_id。",
|
||||
"ordinal_position": 28
|
||||
},
|
||||
{
|
||||
"name": "remark_name",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品备注名/别名,通常用来配置简写或特殊显示名称。 【示例】NULL(用于商品备注名/别名,通常用来配置简写或特殊显示名称)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - remark_name。",
|
||||
"ordinal_position": 29
|
||||
},
|
||||
{
|
||||
"name": "create_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品档案创建时间。 【示例】2025-07-15 17:13:15(用于商品档案创建时间)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - create_time。",
|
||||
"ordinal_position": 30
|
||||
},
|
||||
{
|
||||
"name": "update_time",
|
||||
"data_type": "timestamp without time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】商品档案最近一次修改时间。 【示例】2025-10-29 23:51:38(用于商品档案最近一次修改时间)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - update_time。",
|
||||
"ordinal_position": 31
|
||||
},
|
||||
{
|
||||
"name": "not_sale",
|
||||
"data_type": "integer",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 32
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"data_type": "jsonb",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": "【说明】完整原始 JSON 记录快照,用于回溯与二次解析。 【示例】{...}(完整原始 JSON 记录快照,用于回溯与二次解析)。 【JSON字段】tenant_goods_master.json - data.tenantGoodsList - $。",
|
||||
"ordinal_position": 33
|
||||
},
|
||||
{
|
||||
"name": "content_hash",
|
||||
"data_type": "text",
|
||||
"is_nullable": false,
|
||||
"column_default": null,
|
||||
"comment": null,
|
||||
"ordinal_position": 34
|
||||
},
|
||||
{
|
||||
"name": "source_file",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:原始导出文件名,用于数据追溯。 【示例】tenant_goods_master.json(ETL 元数据:原始导出文件名,用于数据追溯)。 【JSON字段】tenant_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 35
|
||||
},
|
||||
{
|
||||
"name": "source_endpoint",
|
||||
"data_type": "text",
|
||||
"is_nullable": true,
|
||||
"column_default": null,
|
||||
"comment": "【说明】ETL 元数据:采集来源(接口/文件路径),用于数据追溯。 【示例】export/test-json-doc/tenant_goods_master.json(ETL 元数据:采集来源(接口/文件路径),用于数据追溯)。 【JSON字段】tenant_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 36
|
||||
},
|
||||
{
|
||||
"name": "fetched_at",
|
||||
"data_type": "timestamp with time zone",
|
||||
"is_nullable": true,
|
||||
"column_default": "now()",
|
||||
"comment": "【说明】ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理。 【示例】2025-11-10T00:00:00+08:00(ETL 元数据:采集/入库时间戳,用于口径对齐与增量处理)。 【JSON字段】tenant_goods_master.json - ETL元数据 - 无。",
|
||||
"ordinal_position": 37
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user