2 min read

Schema Manager

Overview

The Schema Manager node provides DDL (Data Definition Language) operations for tenant-scoped database tables. All tables are namespace-prefixed with the tenant ID to enforce isolation. It supports creating tables, managing columns and indexes, describing schemas, and seeding initial data.

Category

Datadata/schemaManager

Operations

OperationDescription
create_tableCreate a new table with specified columns
add_columnAdd a column to an existing table
alter_columnChange a column's type or constraints
drop_columnRemove a column from a table
add_indexCreate an index on specified columns
drop_indexRemove an index
describeReturn the schema of a table (columns, types, constraints)
list_tablesList all tables in the tenant namespace
drop_tableDrop a table (requires confirmDrop flag)
rename_columnRename a column
rename_tableRename a table
seedInsert initial data rows into a table

Settings

SettingTypeDefaultDescription
operationStringdescribeDDL operation to perform
tableNameStringTarget table name
columnsArray[]Column definitions for create_table
columnNameStringColumn name for add/alter/drop/rename operations
columnTypeStringVARCHAR(255)SQL type for add/alter column
confirmDropBooleanfalseSafety flag required for destructive operations

Inputs & Outputs

Use Cases

  1. Dynamic table provisioning — Create tenant-specific tables on account setup
  2. Schema migration — Add new columns to existing tables during upgrades
  3. Data seeding — Populate initial reference data (countries, categories, roles)