In the app: Data Model

Data Model

Data Model is where you govern physical structures. A schema catalogs one logical database — tables, views, procedures, functions — for one of eight target platforms. Import existing databases, track every change as a version, generate SQL or PySpark for your target, design star schemas, and move data between schemas with Pipelines.

Schemas

Schemas overview What a schema is in Kenseme, what it holds, how it relates to Pipelines, versions and SQL generation, and where to go next. Create a schema Use the Create Schema wizard to start blank, import a script, read a live database, duplicate a schema into another dialect, or load the sample. Browse a schema A tour of the schema workspace: the header, every tab, and the bulk actions shared by the object lists. Work with tables and columns Create tables from scratch, SQL, a file, a template, another table or a live database, then add and edit columns and get AI naming help. Work with views, procedures, functions and scripts Create views, stored procedures, functions and scripts, write their SQL in one or more dialects, and read their outputs, parameters and dependencies. Define relationships and indexes Set primary keys, create and edit foreign-key relationships, let Kenseme suggest relationships from column names, and define indexes. Work with enums Define named lists of allowed values, constrain string columns to them, and choose whether they’re generated as native ENUM types or CHECK constraints. Schema settings Set a schema’s default dialect, naming conventions, per-environment database names and attribute groups, or delete the schema. Attach labels and attributes to schemas and their objects Tag schemas with coloured labels, and record structured custom attributes on schemas, tables, columns and SQL objects. Read a schema as an ER diagram The Diagram tab draws a schema as an interactive entity-relationship diagram. Filter it, trace keys and dependencies, focus on one table, and export it. Work with the Schema Agent Chat with an AI advisor that knows your schema. Ask for reviews and SQL, then add its proposed objects and column changes in one click. Generate a query with AI The Query Agent tab writes SQL from a plain-English question, using your schema’s definition, for you to copy and run yourself. Clone a schema to another dialect Duplicate a schema into a different SQL dialect. Structure copies directly; AI converts view, procedure and function SQL, which you then review. Generate a schema from an ontology Turn an ontology into a relational schema, then keep the two in step with updates that only touch the objects the generator created. Expose a schema over MCP Let AI assistants read a schema’s metadata through the Model Context Protocol: turn the server on, copy its URL, and choose exactly what it shares. AI in schema editing Every place AI helps while you edit a schema: naming suggestions, bulk column parsing, descriptions, dialect conversion and the Schema Agent. AI in SQL object analysis How Kenseme analyzes view, procedure, function and script SQL to find issues, output columns, parameters and dependencies, and flags broken objects.

Import a schema

Versions

Generate SQL and notebooks

Star schema

Pipelines

Pipelines overview A Pipeline maps one or more source schemas into a new destination schema and generates the load procedures or PySpark functions that move the data. Pipelines list Find your Pipelines, check their status and drift, and create, edit, open, or delete them from one page. Create a Pipeline Pick source schemas, name the destination schema, set naming conventions, choose tables, and optionally ask AI to suggest column names. Map source columns to target columns Use the mapping editor to include or exclude tables and columns, rename destinations, set keys, and accept or reject AI name suggestions. Override a mapping with an expression Decide how calculated columns are loaded, and supply your own SQL expression when a destination column needs a derived value. Choose a load strategy Pick how each destination table is loaded, configure watermark, batch, or hash settings, and let Analyze All suggest strategies. Validate a Pipeline Run the Pipeline checks, read errors, warnings, and notes, and fix what blocks finalizing. Finalize a Pipeline Build the destination schema’s tables, columns, surrogate keys, and audit columns from your mappings. Nothing runs against your database. Generate the load procedures Generate, preview, and regenerate each table’s load procedure or PySpark function, then build the master that runs them all. Run the generated load Kenseme generates the load code but never runs it. Export the scripts or notebook, deploy them to your database or lakehouse, and run the master. Keep a Pipeline in sync with its source Pick up source tables and columns that were added, renamed, or removed, clear stale mappings, and re-finalize in one click. Re-run or roll back a Pipeline Change a Pipeline’s name, conventions, sources, or table selection with Re-run, and undo changes using destination-schema versions. Pipeline load strategies Reference for every Pipeline load strategy: behavior, required settings, key requirements, audit columns, and per-dialect output. AI in Pipelines Where Pipelines use AI: suggesting readable destination column names and checking view-based expressions for the target dialect.