{ "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 } ] }