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

103 lines
5.5 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_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:00SCD2 开始时间(版本生效起点),用于维度慢变追踪)。 【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:00SCD2 结束时间(默认 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=历史),用于筛选最新维度记录。 【示例】1SCD2 当前版本标记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 版本号(自增),用于与时间段一起避免版本重叠。 【示例】1SCD2 版本号(自增),用于与时间段一起避免版本重叠)。 【ODS来源】site_tables_master - 无DWD慢变元数据。 【JSON字段】无 - DWD慢变元数据 - 无。",
"ordinal_position": 12
}
]
}