Files
Neo-ZQYY/export/dataflow_analysis/db_schemas/dwd_dim_site.json

143 lines
8.6 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"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:00SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【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:00SCD2 结束时间(默认 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=历史),用于筛选最新维度记录。 【示例】1SCD2 当前版本标记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 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】table_fee_transactions - 无DWD慢变元数据。 【JSON字段】无 - DWD慢变元数据 - 无。",
"ordinal_position": 17
}
]
}