Skip to main content

System Reference

This page documents all built-in system modules, tables, views, and functions that are available in every hugr instance. These modules are automatically loaded at startup and provide core infrastructure for data source management, schema introspection, clustering, GIS operations, object storage, and node information.

core Module

The core module manages data sources, catalog sources, roles, API keys, and provides lifecycle functions for loading/unloading data sources.

Tables

data_sources

Registered data sources. Each entry defines a connection to an external database or service.

FieldTypeDescription
nameString! (PK)Data source name
typeString!Source type: duckdb, postgres, http, extension
prefixString!Prefix added to all types in this source. When as_module is true, queries are placed in a separate module
as_moduleBoolean!Whether to expose as a separate GraphQL module (default: false)
descriptionStringHuman-readable description
pathString!Connection path (DB file path, connection string, or URL depending on type)
disabledBooleanDisable without removing (default: false)
self_definedBooleanIf true, the source returns its own schema definition (default: false)
read_onlyBooleanRead-only mode (default: false)

catalog_sources

Schema catalog sources that provide GraphQL schema definitions for data sources.

FieldTypeDescription
nameString! (PK)Catalog source name
typeString!Source type: localFS (local directory) or uri (remote file)
descriptionStringHuman-readable description
pathString!Path to schema files (directory path or URI)

catalogs

Many-to-many mapping between data sources and catalog sources.

FieldTypeDescription
catalog_nameString! (PK)References catalog_sources.name
data_source_nameString! (PK)References data_sources.name

roles

Permission roles that can be assigned to users and API keys.

FieldTypeDescription
nameString! (PK)Role name (built-in: admin, public, readonly)
descriptionString!Role description
disabledBooleanDisable the role (default: false)

role_permissions

Fine-grained permissions controlling visibility and access to types and fields per role.

FieldTypeDescription
roleString! (PK)References roles.name
type_nameString! (PK)Type name (* for all types)
field_nameString! (PK)Field name (* for all fields)
hiddenBooleanHide from schema introspection (default: false)
disabledBooleanDeny access (default: false)
filterJSONRequired filter values for queries
dataJSONRequired field values for mutations

api_keys

API keys for authentication with optional role binding and expiration.

FieldTypeDescription
nameString! (PK)API key name
descriptionString!Description
keyString!API key value (unique)
default_roleStringReferences roles.name
disabledBooleanDisable the key (default: false)
is_temporalBooleanWhether the key expires (default: false)
expires_atTimestampExpiration date (required if is_temporal is true)
headersJSONHTTP header mapping for extracting user info: {"role": "x-role", "user_id": "x-user-id", "user_name": "x-user-name"}
claimsJSONStatic claims: {"role": "role", "user_id": "user-id", "user_name": "user-name"}

Functions

load_data_source

Load or reload a data source catalog into the engine.

mutation {
load_data_source(name: "my_source") {
success
message
}
}
ArgumentTypeDescription
nameString!Data source name to load

Returns: OperationResult

unload_data_source

Unload a data source catalog without deleting its configuration.

mutation {
unload_data_source(name: "my_source") {
success
message
}
}
ArgumentTypeDescription
nameString!Data source name to unload

Returns: OperationResult

checkpoint

Force a DuckDB checkpoint (flush WAL to disk).

mutation {
checkpoint(name: "my_db") {
success
message
}
}
ArgumentTypeDescription
nameStringDatabase name (empty string for default)

Returns: OperationResult

data_source_status

Get the current status of a data source.

{
data_source_status(name: "my_source")
}
ArgumentTypeDescription
nameString!Data source name

Returns: String (status text)

describe_data_source_schema

Describe the schema of a data source. Useful for debugging schema compilation.

{
describe_data_source_schema(name: "my_source", self: true, log: false)
}
ArgumentTypeDescription
nameString!Data source name
selfBooleanShow the self-defined schema (default: false)
logBooleanInclude compilation log (default: false)

Returns: String (schema description)


core.catalog Module

The core.catalog module provides read-only views over the compiled schema metadata stored in the core database. All views support relationship navigation via @references and @field_references directives. When EMBEDDER_URL is configured, catalogs, types, fields, and modules also include @embeddings support for vector similarity search.

Views

catalogs

Schema catalogs representing compiled data sources.

FieldTypeDescription
nameString! (PK)Catalog name
versionString!Schema version hash
descriptionString!Short description
long_descriptionString!Detailed description
typeStringData source type (from catalog or data_sources table)
prefixStringType prefix
as_moduleBooleanWhether exposed as module
read_onlyBooleanRead-only flag
disabledBoolean!Disabled flag
suspendedBoolean!Suspended flag (dependency unavailable)
is_summarizedBoolean!Whether AI summarization has been applied
vecVectorEmbedding vector (when embeddings enabled)

Relationships:

  • Referenced by catalog_dependencies, types, fields, module_catalogs, module_intro

catalog_dependencies

Tracks dependencies between catalogs (e.g., extension sources depending on base sources).

FieldTypeDescription
catalogString! (PK)The dependent catalog
depends_onString! (PK)The catalog being depended on

Relationships:

  • catalog_info -> catalogs (the dependent catalog)
  • depends_on_info -> catalogs (the dependency target)
  • Reverse: catalogs.dependencies, catalogs.dependents

types

All type definitions in the compiled schema.

FieldTypeDescription
nameString! (PK)Type name
kindString!GraphQL type kind (OBJECT, INPUT_OBJECT, ENUM, SCALAR, etc.)
descriptionString!Short description
long_descriptionString!Detailed description
hugr_typeString!Hugr-specific type classification
moduleString!Module this type belongs to
catalogStringCatalog this type belongs to
is_summarizedBoolean!Whether AI summarization has been applied
vecVectorEmbedding vector (when embeddings enabled)

Relationships:

  • module_info -> modules (owning module)
  • catalog_info -> catalogs (owning catalog)
  • Reverse: fields.root_type, data_objects.type, arguments.argument_type, enum_values.type

fields

All field definitions across all types.

FieldTypeDescription
type_nameString! (PK)Parent type name
nameString! (PK)Field name
descriptionString!Short description
long_descriptionString!Detailed description
field_typeString!Full GraphQL type signature
field_type_nameString!Base type name (unwrapped)
hugr_typeString!Hugr-specific field classification
catalogStringCatalog this field belongs to
dependency_catalogStringExtension source catalog (for cross-source fields)
is_pkBoolean!Whether this is a primary key field
is_summarizedBoolean!Whether AI summarization has been applied
ordinalInt!Field position order
vecVectorEmbedding vector (when embeddings enabled)

Relationships:

  • root_type -> types (parent type)
  • type -> types (field's GraphQL type)
  • catalog_info -> catalogs (owning catalog)
  • dependency_catalog_info -> catalogs (extension source)
  • Reverse: arguments.field, data_object_queries.field

arguments

Field arguments for parameterized fields (queries, functions).

FieldTypeDescription
type_nameString! (PK)Parent type name
field_nameString! (PK)Parent field name
nameString! (PK)Argument name
descriptionString!Description
arg_typeString!Full argument type signature
arg_type_nameString!Base argument type name
is_listBoolean!Whether the argument is a list
is_non_nullBoolean!Whether the argument is required
default_valueStringDefault value

Relationships:

  • field -> fields (parent field, composite key: type_name + field_name)
  • argument_type -> types (argument's type definition)

modules

Schema modules grouping types and operations.

FieldTypeDescription
nameString! (PK)Module name
descriptionString!Short description
long_descriptionString!Detailed description
query_rootStringRoot query type name
mutation_rootStringRoot mutation type name
function_rootStringRoot function type name
mut_function_rootStringRoot mutation function type name
is_summarizedBoolean!Whether AI summarization has been applied
vecVectorEmbedding vector (when embeddings enabled)

Relationships:

  • query -> types (root query type)
  • mutation -> types (root mutation type)
  • function -> types (root function type)
  • mut_function -> types (root mutation function type)
  • Reverse: types.module_info, module_catalogs.module_info, module_intro.module_info

module_catalogs

Many-to-many associations between modules and catalogs.

FieldTypeDescription
moduleString! (PK)Module name
catalogString! (PK)Catalog name

Relationships:

  • module_info -> modules
  • catalog_info -> catalogs

data_objects

Data objects represent tables and views that have query capabilities.

FieldTypeDescription
nameString! (PK)Data object name (matches a type name)
filter_type_nameStringFilter input type for this data object
args_type_nameStringArgs input type for this data object

Relationships:

  • type -> types (the type definition)
  • filter_type -> types (filter input type)
  • args_type -> types (args input type)
  • Reverse: data_object_queries.data_object

data_object_queries

Query fields available for each data object (e.g., list, by PK, aggregation).

FieldTypeDescription
nameString! (PK)Query field name
object_nameString! (PK)Data object name
query_rootString!Root type containing this query
query_typeString!Query type classification

Relationships:

  • data_object -> data_objects (the data object)
  • field -> fields (composite key: query_root + name)
  • module_query_type -> types (root query type)

module_intro

Aggregated SQL view providing a flat listing of all module operations (queries, mutations, functions, mutation functions).

FieldTypeDescription
moduleString!Module name
type_typeString!Operation kind: queries, mutation, function, mut_function
type_nameString!Root type name
field_nameString!Operation field name
field_descriptionString!Field description
hugr_typeString!Hugr type classification
catalogStringOwning catalog

Relationships:

  • module_info -> modules
  • catalog_info -> catalogs

enum_values

Values for enum type definitions.

FieldTypeDescription
type_nameString! (PK)Enum type name
nameString! (PK)Enum value name
descriptionString!Value description
ordinalInt!Value position order

Relationships:

  • type -> types (the enum type)

core.meta Module

The core.meta module exposes DuckDB system catalog views for introspecting the underlying database engine. All views are read-only.

Functions

duckdb_version

Returns the DuckDB engine version string.

{
core_meta {
duckdb_version
}
}

Views

databases

Attached DuckDB databases.

FieldTypeDescription
idBigInt! (PK)Database OID
nameString!Database name (unique)
typeString!Database type
commentStringComment
readonlyBooleanRead-only flag
internalBooleanInternal database flag

schemas

Database schemas.

FieldTypeDescription
idBigInt! (PK)Schema OID
nameString! (PK)Schema name
database_idBigInt!References databases.id
database_nameString!Database name
internalBooleanInternal schema flag

tables

Database tables.

FieldTypeDescription
idBigInt! (PK)Table OID
nameString!Table name
database_idBigInt!References databases.id
schema_idBigInt!References schemas.id
estimated_sizeBigIntEstimated row count
column_countIntNumber of columns
index_countIntNumber of indexes
has_primary_keyBooleanWhether a PK exists
temporaryBooleanTemporary table flag

views

Database views.

FieldTypeDescription
idBigInt! (PK)View OID
nameString! (PK)View name
database_idBigInt!References databases.id
schema_idBigInt!References schemas.id
column_countIntNumber of columns
temporaryBooleanTemporary view flag

columns

Table and view columns.

FieldTypeDescription
nameString! (PK)Column name
database_idBigInt!References databases.id
schema_idBigInt!References schemas.id
table_idBigInt!References tables.id or views.id
table_nameString!Parent table/view name
data_typeStringColumn data type
is_nullableBooleanNullable flag
defaultStringDefault value expression
ordinal_positionIntColumn position

constraints

Table constraints (PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK, NOT NULL).

FieldTypeDescription
nameString! (PK)Constraint name
table_idBigInt!References tables.id
typeStringConstraint type
columns[String!]Constrained column names
references_table_nameStringReferenced table (FK only)
references_columns[String!]Referenced column names (FK only)

extensions

DuckDB extensions (installed and loaded).

FieldTypeDescription
nameString! (PK)Extension name
loadedBooleanWhether currently loaded
installedBooleanWhether installed
install_pathStringInstallation path
descriptionStringExtension description
versionStringExtension version

functions

Registered DuckDB functions.

FieldTypeDescription
nameString! (PK)Function name
database_nameString!Owning database
schema_nameString!Owning schema
typeStringFunction type (scalar, aggregate, table, macro)
return_typeStringReturn type
parameters[String!]Parameter names
parameter_types[String!]Parameter types
has_side_effectsBooleanSide-effect flag

settings

DuckDB configuration settings.

FieldTypeDescription
nameString! (PK)Setting name
valueStringCurrent value
descriptionStringSetting description
input_typeStringExpected input type
scopeStringSetting scope

duckdb_memory

DuckDB memory usage by component.

FieldTypeDescription
tagString! (PK)Memory component tag
memory_usageBigIntMemory usage in bytes
temporary_storageBigIntTemporary storage in bytes

secrets

DuckDB registered secrets (credentials for remote storage).

FieldTypeDescription
nameString! (PK)Secret name
type_nameString!Secret type (references secret_types.type)
providerStringProvider name
persistentBooleanPersisted across restarts
scope[String]Scope patterns

secret_types

Available secret types.

FieldTypeDescription
typeString! (PK)Type identifier
default_providerStringDefault provider
extension_nameStringProviding extension

log_contexts and log_entries

DuckDB logging information (when logging is enabled).

log_contexts:

FieldTypeDescription
idBigInt! (PK)Context ID
scopeString!Log scope
connection_idStringConnection identifier
transaction_idStringTransaction identifier
query_idStringQuery identifier

log_entries:

FieldTypeDescription
context_idBigInt!References log_contexts.id
timestampTimestamp!Entry timestamp
typeStringLog entry type
log_levelStringSeverity level
messageStringLog message text

temporary_files

DuckDB temporary files on disk.

FieldTypeDescription
pathString! (PK)File path
sizeBigIntFile size in bytes

core.cluster Module

The core.cluster module provides cluster management for multi-node deployments. It manages node registration, schema synchronization, and broadcast operations between management and worker nodes.

Tables

nodes

Cluster node registry. Each node registers on startup and updates its heartbeat periodically.

FieldTypeDescription
nameString! (PK)Unique node identifier
urlString!Node IPC endpoint URL
roleString!Node role: management or worker
versionStringBinary version
started_atTimestampNode start time
last_heartbeatTimestampLast heartbeat timestamp
errorStringLast error (null = healthy)

Query Functions

schema_version

Returns the current schema version counter, used for cluster change detection.

{
core_cluster {
schema_version
}
}

Returns: Int!

my_role

Returns this node's cluster role (management or worker).

Returns: String!

management_url

Returns the management node's IPC URL (from the _cluster_nodes table).

Returns: String (null if no management node registered)

Mutation Functions (User-facing)

These mutations are forwarded to the management node if executed on a worker.

FunctionArgumentsDescription
load_sourcename: String!Load/compile data source across the cluster
unload_sourcename: String!Unload data source across the cluster
reload_sourcename: String!Reload data source across the cluster
register_storagetype, name, scope, key, secret, endpoint, use_ssl, url_style, regionRegister object storage secret across the cluster
unregister_storagename: String!Unregister object storage secret across the cluster
invalidate_cachecatalog: StringInvalidate schema cache across the cluster

Internal Mutation Functions

These are broadcast targets used internally between cluster nodes. They require CLUSTER_SECRET authentication.

FunctionArgumentsDescription
handle_source_loadname: String!Worker: attach source without recompile
handle_source_unloadname: String!Worker: detach source
handle_cache_invalidatecatalog: StringHandle cache invalidation broadcast
handle_secret_sync(none)Worker: re-sync secrets from management

core.gis Module

The core.gis module provides geospatial utility functions for converting between geometries and H3 hexagonal cells.

Functions

geom_to_h3_cells

Convert a geometry to a set of H3 cells at the given resolution.

{
core_gis {
geom_to_h3_cells(geom: "POINT(0 0)", resolution: 8, simplify: true, compact: false)
}
}
ArgumentTypeDefaultDescription
geomGeometry!Input geometry
resolutionInt!8H3 resolution level (0-15)
simplifyBooleantrueSimplify geometry before tessellation
compactBooleanfalseCompact the resulting cell set

Returns: [H3Cell!]

h3_cell_to_geom

Convert an H3 cell to its boundary geometry.

ArgumentTypeDescription
cellH3Cell!H3 cell index

Returns: Geometry!

h3_cells_to_multi_polygon

Convert a set of H3 cells to a multi-polygon geometry.

ArgumentTypeDefaultDescription
cells[H3Cell!]!H3 cell indexes
compactBooleanfalseCompact cells before conversion

Returns: Geometry!


core.storage Module

The core.storage module manages object storage registrations (S3, GCS, R2, etc.) for accessing remote files.

Mutation Functions

register_object_storage

Register a new or update an existing object storage with credentials.

ArgumentTypeDefaultDescription
typeString!Storage type (e.g., s3, gcs, r2)
nameString!Storage name
scopeString!Bucket name or sub-path
keyString!Access key ID
secretString!Secret access key
regionString""AWS region
endpointString!Endpoint URL
use_sslBoolean!trueUse HTTPS
url_styleString!URL style: path or vhost
url_compatibilityBooleanfalseURL compatibility mode
kms_key_idString""AWS KMS key for server-side encryption
account_idString""Cloudflare R2 account ID

Returns: OperationResult

unregister_storage

Unregister an existing object storage.

ArgumentTypeDescription
nameString!Storage name to unregister

Returns: OperationResult

Views

registered_object_storages

Currently registered object storages.

FieldTypeDescription
nameString! (PK)Storage name
typeString!Storage type
scope[String]Bucket/path scopes
parametersStringStorage parameters

ls

Directory listing with support for object storages. Reads file contents at the given path.

ArgumentTypeDescription
pathString!Path to list (supports s3://, gcs://, local paths)
FieldTypeDescription
nameString! (PK)File name
contentString!File content

core.info Module

The core.info module provides node information and version details.

Functions

info

Returns detailed information about the current node, including configuration.

{
info {
cluster_mode
node_role
node_name
version
build_date
config {
admin_ui
debug
allow_parallel
max_parallel_queries
max_depth
duckdb { path max_open_conns }
cache { ttl }
}
}
}

Returns: NodeInfo!

NodeInfo fields:

FieldTypeDescription
cluster_modeBoolean!Whether cluster mode is enabled
node_roleString!Node role (management, worker, or standalone)
node_nameString!Node name
versionString!Software version
build_dateString!Build date
configNodeConfig!Engine configuration

NodeConfig fields:

FieldTypeDescription
admin_uiBoolean!Admin UI enabled
debugBoolean!Debug mode
allow_parallelBoolean!Parallel query execution enabled
max_parallel_queriesInt!Maximum concurrent queries
max_depthInt!Maximum query depth
duckdbDuckDBConfig!DuckDB engine configuration
coredbCoreDBConfig!Core database configuration
auth[AuthProviderConfig!]Configured auth providers
cacheCacheConfig!Cache configuration

version

Returns a simplified version object.

{
version {
version
build_date
}
}

Returns: NodeVersion! with fields version: String! and build_date: String!


Schema Management Functions

These mutation functions manage schema metadata in the core database. They are used by the AI summarizer, embedding indexer, and administrative tools.

_schema_update_type_desc

Update a type's description and mark it as summarized.

ArgumentTypeDescription
nameString!Type name
descriptionString!Short description
long_descriptionString!Detailed description

_schema_update_field_desc

Update a field's description and mark it as summarized.

ArgumentTypeDescription
type_nameString!Parent type name
nameString!Field name
descriptionString!Short description
long_descriptionString!Detailed description

_schema_update_module_desc

Update a module's description and mark it as summarized.

ArgumentTypeDescription
nameString!Module name
descriptionString!Short description
long_descriptionString!Detailed description

_schema_update_catalog_desc

Update a catalog's description and mark it as summarized.

ArgumentTypeDescription
nameString!Catalog name
descriptionString!Short description
long_descriptionString!Detailed description

_schema_reset_summarized

Reset the is_summarized flag so the AI summarizer re-processes entities.

ArgumentTypeDefaultDescription
nameString""Entity name (empty for all)
scopeString"all"Scope: all, catalog, or type

_schema_reindex

Recompute embedding vectors. When name is empty, reindexes all entities.

ArgumentTypeDefaultDescription
nameString""Entity name (empty for all)
batch_sizeInt50Batch size for embedding computation

_schema_hard_remove

Hard-delete a catalog and all its schema objects from the core database. Rejects the operation if the catalog has an active engine.

ArgumentTypeDescription
nameString!Catalog name to remove

_schema_version_clean

Reset a catalog's version to force recompilation on next startup.

ArgumentTypeDescription
nameString!Catalog name

Core DB Tables (DDL)

These are the underlying SQL tables in the core database that back the system. They are managed automatically by the engine and should not be modified directly.

_schema_catalogs

Stores compiled catalog metadata.

CREATE TABLE _schema_catalogs (
name VARCHAR NOT NULL PRIMARY KEY,
version VARCHAR NOT NULL DEFAULT '',
description VARCHAR NOT NULL DEFAULT '',
long_description VARCHAR NOT NULL DEFAULT '',
source_type VARCHAR NOT NULL DEFAULT '',
prefix VARCHAR NOT NULL DEFAULT '',
as_module BOOLEAN NOT NULL DEFAULT FALSE,
read_only BOOLEAN NOT NULL DEFAULT FALSE,
is_summarized BOOLEAN NOT NULL DEFAULT FALSE,
disabled BOOLEAN NOT NULL DEFAULT FALSE,
suspended BOOLEAN NOT NULL DEFAULT FALSE,
vec FLOAT[<vector_size>]
);

_schema_types

Stores all compiled type definitions.

CREATE TABLE _schema_types (
name VARCHAR NOT NULL PRIMARY KEY,
kind VARCHAR NOT NULL,
description VARCHAR NOT NULL DEFAULT '',
long_description VARCHAR NOT NULL DEFAULT '',
hugr_type VARCHAR NOT NULL DEFAULT '',
module VARCHAR NOT NULL DEFAULT '',
catalog VARCHAR,
directives JSON NOT NULL DEFAULT '[]',
interfaces VARCHAR NOT NULL DEFAULT '',
union_types VARCHAR NOT NULL DEFAULT '',
is_summarized BOOLEAN NOT NULL DEFAULT FALSE,
vec FLOAT[<vector_size>]
);

Indexes: catalog, hugr_type, kind

_schema_fields

Stores all compiled field definitions.

CREATE TABLE _schema_fields (
type_name VARCHAR NOT NULL,
name VARCHAR NOT NULL,
field_type VARCHAR NOT NULL,
field_type_name VARCHAR NOT NULL DEFAULT '',
description VARCHAR NOT NULL DEFAULT '',
long_description VARCHAR NOT NULL DEFAULT '',
hugr_type VARCHAR NOT NULL DEFAULT '',
catalog VARCHAR,
dependency_catalog VARCHAR,
directives JSON NOT NULL DEFAULT '[]',
is_pk BOOLEAN NOT NULL DEFAULT FALSE,
is_summarized BOOLEAN NOT NULL DEFAULT FALSE,
vec FLOAT[<vector_size>],
ordinal INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (type_name, name)
);

Indexes: type_name, catalog, hugr_type, dependency_catalog

_schema_arguments

Stores field argument definitions.

CREATE TABLE _schema_arguments (
type_name VARCHAR NOT NULL,
field_name VARCHAR NOT NULL,
name VARCHAR NOT NULL,
arg_type VARCHAR NOT NULL,
arg_type_name VARCHAR NOT NULL DEFAULT '',
default_value VARCHAR,
description VARCHAR NOT NULL DEFAULT '',
directives JSON NOT NULL DEFAULT '[]',
ordinal INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (type_name, field_name, name)
);

Indexes: type_name, (type_name, field_name)

_schema_enum_values

Stores enum value definitions.

CREATE TABLE _schema_enum_values (
type_name VARCHAR NOT NULL,
name VARCHAR NOT NULL,
description VARCHAR NOT NULL DEFAULT '',
directives JSON NOT NULL DEFAULT '[]',
ordinal INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (type_name, name)
);

Indexes: type_name

_schema_directives

Stores custom directive definitions.

CREATE TABLE _schema_directives (
name VARCHAR NOT NULL PRIMARY KEY,
description VARCHAR NOT NULL DEFAULT '',
locations VARCHAR NOT NULL DEFAULT '',
is_repeatable BOOLEAN NOT NULL DEFAULT FALSE,
arguments VARCHAR NOT NULL DEFAULT '[]'
);

_schema_modules

Stores module definitions.

CREATE TABLE _schema_modules (
name VARCHAR NOT NULL PRIMARY KEY,
description VARCHAR NOT NULL DEFAULT '',
long_description VARCHAR NOT NULL DEFAULT '',
query_root VARCHAR,
mutation_root VARCHAR,
function_root VARCHAR,
mut_function_root VARCHAR,
is_summarized BOOLEAN NOT NULL DEFAULT FALSE,
disabled BOOLEAN NOT NULL DEFAULT FALSE,
vec FLOAT[<vector_size>]
);

_schema_settings

Key-value settings store (includes schema_version counter and config).

CREATE TABLE _schema_settings (
key VARCHAR NOT NULL PRIMARY KEY,
value JSON NOT NULL
);

_cluster_nodes

Cluster node registry for multi-node deployments.

CREATE TABLE _cluster_nodes (
name VARCHAR NOT NULL PRIMARY KEY,
url VARCHAR NOT NULL,
role VARCHAR NOT NULL,
version VARCHAR,
started_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
last_heartbeat TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
error VARCHAR
);

Other Internal Tables

TableDescription
_schema_catalog_dependenciesTracks catalog-to-catalog dependencies (PK: catalog_name, depends_on)
_schema_data_objectsStores data object metadata (PK: name) with filter_type_name and args_type_name
_schema_data_object_queriesStores query fields for data objects (PK: name, object_name)
_schema_module_type_catalogsModule-type-catalog associations (PK: type_name, catalog_name)