{
  "data": {
    "data": {
      "fields": {
        "invoiceAmount": {
          "aggregatable": true,
          "aggregation": "SUM",
          "fieldName": "invoiceAmount",
          "filterType": "number",
          "filterable": true,
          "measure": true,
          "meta": "度量 | 数值 | 默认聚合:SUM",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "账单金额 (聚合方式: SUM)"
            }
          },
          "name": "账单金额",
          "sourceColumn": "Total",
          "type": "MONEY"
        },
        "invoiceCount": {
          "aggregatable": true,
          "aggregation": "COUNT",
          "fieldName": "invoiceCount",
          "filterType": "number",
          "filterable": true,
          "measure": true,
          "meta": "度量 | 数值 | 默认聚合:COUNT",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "账单数 (聚合方式: COUNT)"
            }
          },
          "name": "账单数",
          "sourceColumn": "InvoiceId",
          "type": "INTEGER"
        },
        "invoiceDate": {
          "aggregatable": false,
          "fieldName": "invoiceDate",
          "filterType": "date",
          "filterable": true,
          "measure": false,
          "meta": "时间维度根字段 | DATETIME",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "直接使用账单表的 InvoiceDate，不关联额外日期表；按记录日期统计，不自行做时区转换。",
              "usage": "用于绝对日期过滤和 timeWindow"
            }
          },
          "name": "账单日期",
          "sourceColumn": "InvoiceDate",
          "type": "DATETIME"
        },
        "invoiceDate$caption": {
          "aggregatable": false,
          "fieldName": "invoiceDate$caption",
          "filterType": "dimension",
          "filterable": true,
          "measure": false,
          "meta": "维度名称 | 文本 | 账单日期主键",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "invoiceDate$caption | 账单日期的显示名称 | 账单日期主键",
              "usage": "用于展示、模糊查询"
            }
          },
          "name": "账单日期(名称)",
          "type": "TEXT"
        },
        "invoiceDate$id": {
          "aggregatable": false,
          "fieldName": "invoiceDate$id",
          "filterType": "date",
          "filterable": true,
          "measure": false,
          "meta": "日期维度键 | 日期 | Use ISO date/datetime string values such as 2026-05-01; do not use numeric YYYYMMDD values.",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "invoiceDate$id | 账单日期的ID/值 | Use ISO date/datetime string values such as 2026-05-01; do not use numeric YYYYMMDD values.",
              "usage": "用于绝对日期过滤、范围过滤、聚合和排序；值使用 ISO 日期/时间字符串"
            }
          },
          "name": "账单日期(ID)",
          "sourceColumn": "InvoiceDate",
          "type": "DATETIME"
        },
        "invoiceDate$month": {
          "aggregatable": false,
          "fieldName": "invoiceDate$month",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "维度属性 | 文本",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "月份序号 1—12，跨年分析时应与年份一起使用。"
            }
          },
          "name": "账单月份",
          "type": "INTEGER"
        },
        "invoiceDate$year": {
          "aggregatable": false,
          "fieldName": "invoiceDate$year",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "维度属性 | 文本",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "账单年份"
            }
          },
          "name": "账单年份",
          "type": "INTEGER"
        },
        "invoiceDate$yearMonth": {
          "aggregatable": false,
          "fieldName": "invoiceDate$yearMonth",
          "filterType": "text",
          "filterable": true,
          "measure": false,
          "meta": "维度属性 | 文本",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "YYYY-MM，自然月分组键，保留年份。"
            }
          },
          "name": "账单年月",
          "type": "STRING"
        },
        "invoiceId": {
          "aggregatable": false,
          "fieldName": "invoiceId",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookInvoiceTimeQueryModel": {
              "description": "账单 ID"
            }
          },
          "name": "账单 ID",
          "sourceColumn": "InvoiceId",
          "type": "INTEGER"
        }
      },
      "modelSource": {
        "bundleName": "chinook-0129-control",
        "known": true,
        "namespace": "chinook",
        "resourceIdentity": "练习目录\\lab\\releases\\launcher-0.1.29\\control-models\\query\\ChinookInvoiceTimeQueryModel.qm"
      },
      "models": {
        "ChinookInvoiceTimeQueryModel": {
          "description": "按账单日期、自然年和自然月分析账单金额与张数。月份序号需与年份结合，年月字段为 YYYY-MM；金额沿用样例原始单位，币种未指定。",
          "factTable": "Invoice",
          "name": "Chinook 账单时间分析",
          "purpose": "数据查询和分析",
          "scenarios": [
            "数据查询",
            "统计分析",
            "报表生成"
          ]
        }
      },
      "physicalTables": [
        {
          "role": "fact",
          "table": "Invoice"
        }
      ],
      "prompt": "## 使用说明 (V3版本)\n- 格式约定：字段类型 | 数据类型 | 格式说明\n",
      "version": "v3"
    },
    "format": "json"
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
