AI Central
Breadcrumbs

Business Domain

Create a New Business Domain

  • Enter the business domain name (limited to 50 characters);

  • Select the referenced data source;

  • After creation, you can enter the business domain management interface.

数据-新建业务域.png
数据-新建业务域1.png

Add Data Tables and Relationship Modeling

  • Add multiple business-related data tables as "business domain nodes";

  • Each node represents a table, and multiple nodes can be added;

  • Click the "Relationship List" of each table node to add relationships:

    • Set the From field (field in the current table);

    • Set the To table and its field (target table and target field);

    • Select the relationship type: one-to-one, one-to-many, many-to-one, many-to-many;

    • Submit to complete the relationship binding between the two tables.

In this way, users can build a complete data relationship network within the business domain, facilitating subsequent intelligent queries and chart generation.

数据-新建业务域2.png
数据-新建业务域3.png

Relationship Overview

Displays all tables in the business domain and their structural relationships, facilitating global understanding and management.

数据-业务域-关系.png
数据-业务域-关系1.png

Parameterized Templates

Supports creating SQL templates with parameterized variables to flexibly meet data query needs in different scenarios.

  • Parameters (such as date, department, region, etc.) can be defined in the template and inserted into the SQL statement as placeholders;

  • When called, users can input different parameter values, and the system will automatically generate the corresponding SQL query;

  • Suitable for commonly used queries that require flexible condition adjustments, significantly improving reusability and query efficiency;

  • Parameters can have default values and input restrictions to ensure the accuracy and security of query results.

Example:

SELECT * FROM Sales where t1.c1 = "{value1}"
SELECT * FROM Sales where t1.c1 in ({value1})
SELECT * FROM Sales where t1.c1 like "%{value1}%"
数据-参数化模板1.png
数据-参数化模板2.png

Import and Export of Parameterized Templates

To facilitate migration or batch deployment of query templates across different environments (such as development, testing, production), the system supports import and export of parameterized templates.

  • Implementation or delivery personnel can export multiple templates at once and quickly import them into the target system, greatly reducing repetitive configuration work;

  • Supports version management and batch updates of templates, which is beneficial for team collaboration and unified template maintenance.

image-20260104-073956.png


Reference Templates

Provides a series of system preset query templates to help users quickly understand and reuse standardized modeling methods.

  • Template examples cover common business scenarios such as sales analysis, inventory statistics, customer profiling, etc.;

  • Users can refer to the logical structure and field settings of the templates to customize models that meet their own business needs;

  • Supports copying, modifying, and saving based on reference templates to quickly build personalized data relationship models;

  • Facilitates unified data modeling standards within teams, improving overall usage consistency.

数据-参数模板.png