Import metadata using YAML
How the YAML Import Works
Full YAML Metadata Structure
models:
- name: <table_name> # [Required] The exact name of the table in your database.
description: <table_description> # [Optional] Business description of what this table represents.
# Used by AI Agents for context and understanding.
columns: # [Required] List of columns in this table.
- name: <column_name> # [Required] The exact name of the column in the database.
description: <column_description> # [Optional] Business-friendly description and any logic/rules.
rules: <business_rules> # [Optional] Any business validation or constraints for the column.
semantic_type: <semantic_type> # [Optional] Label for the kind of data (e.g., NAME, EMAIL, STATUS).
data_type: <data_type> # [Optional but recommended] Data type (e.g., string, bigint, date).
visible: <true|false> # [Optional, default: true] Set to false to hide from AI Agents.
is_primary_key: <true|false> # [Optional] Indicates if this column is a primary key.
relationships: # [Optional] List of table relationships.
- name: <relationship_name> # [Required if relationships are defined] Unique name for this relationship.
description: <relationship_description> # [Optional] Description of the relationship.
source_column: <column_name> # [Required] The column in this table that links to another table.
target_table: <target_table_name> # [Required] The referenced table.
target_column: <target_column_name> # [Required] The referenced column in the target table.
type: <relationship_type> # [Required] Type of relationship (e.g., one_to_many, many_to_one).
Available Semantic Types
Semantic Type
Description
Table Relationships and Cardinality Types
Relationship Type
Meaning
Full example YAML File
Last updated