AI Databricks schema generator
Describe your domain in plain English and get a Databricks lakehouse: Delta tables with liquid clustering and Unity Catalog three-part names, plus a complete dbt project. Already on Databricks? Write your reviewed model back to Unity Catalog.
- From $1/month
- 8 SQL targets
- 174 templates
Catalog explorer
- main
- retail
- fct_order_line
- dim_customer
- dim_store
- net_revenue
See it in action
A narrated walkthrough, recorded in the real app.
Databricks by hand, or generated
By hand
- ○Find undeclared joins by reading notebooks and dashboards
- ○Write ALTER TABLE statements for each key and tag
- ○Explain to Genie how header and detail tables join
- ○Write the Delta DDL and dbt models separately
With offdataai
- Joins suggested from the catalog and from query history
- Every change listed as one statement you approve
- A drafted metric view with measures at their own grain
- Delta DDL, masks and a dbt project from one model
Where offdataai fits in your Databricks stack
Connect Unity Catalog
Read catalogs, schemas, tables, columns and comments. Never rows.
Learn the real joins
Query history shows which columns people actually join, including joins that only work after LOWER or TRIM.
Review or remodel
Accept relationships and PII classifications, or remodel as a star schema or Data Vault.
Write it back
Apply the keys, descriptions and PII tags you approved to Unity Catalog, one statement at a time.
Publish a metric view
Give Genie measures defined once, at the right grain.
What offdataai writes for Databricks
1CREATE SCHEMA IF NOT EXISTS main.conformed_dimensions;23CREATE TABLE IF NOT EXISTS main.conformed_dimensions.dim_payment_method (4 payment_method_key BIGINT NOT NULL COMMENT 'Surrogate key',5 method_code STRING NOT NULL,6 method_name STRING COMMENT 'credit_card/debit/paypal/gift_card/bnpl',7 provider STRING,8 CONSTRAINT pk_dim_payment_method PRIMARY KEY (payment_method_key)9)10USING DELTA;
Native types, protected data
Types, mapped for Databricks
from the generatorYour model's logical types become native Databricks types.
Unity Catalog column masks
Databricks has column masks in Unity Catalog, so offdataai creates a masking function per strategy and binds it with SET MASK. Partial masking keeps the first two characters for everyone; hash uses sha2.
1-- Requires Unity Catalog. Define a mask UDF per strategy, then bind it.2CREATE OR REPLACE FUNCTION mask_hash(val STRING) RETURNS STRING RETURN sha2(val, 256);3CREATE OR REPLACE FUNCTION mask_partial(val STRING) RETURNS STRING RETURN concat(left(val, 2), '****');45ALTER TABLE main.conformed_dimensions.dim_customer ALTER COLUMN email SET MASK mask_hash;6ALTER TABLE main.conformed_dimensions.dim_customer ALTER COLUMN phone SET MASK mask_partial;
USING DELTA
every table, three-part names
Column masks
a UDF per masking strategy
Write-back
keys, descriptions and PII tags
Metric views
drafted for Genie
What offdataai generates
Delta Lake-native DDL
USING DELTA, CLUSTER BY for liquid clustering, PRIMARY KEY and FOREIGN KEY constraints (not enforced, kept in the catalog), and catalog.schema.table identifiers.
Kimball, Data Vault 2.0, or 3NF
Three paradigms supported on Databricks. The generator emits the right Delta features for each paradigm.
Full dbt project
A dbt-databricks profile example, sources, staging, marts, snapshots, schema tests and seeds. With its seeds, the project passes dbt build on the first run.
Apply to Unity Catalog
Write the keys, descriptions and PII tags you approved back to existing tables. You read every statement first; tags are only added, never overwritten.
Join evidence from query history
Learn which joins your team actually runs from system.query.history, including joins that only match after LOWER or TRIM.
Metric views for Genie
Publish a Unity Catalog metric view from the reviewed model, so each measure is summed at its own grain and Genie stops double-counting.
Column masks
Governance generates a Unity Catalog mask function per strategy (hash, partial, full) and binds it with SET MASK. Partial masking keeps the first two characters for every role.
Why teams choose offdataai

Platform-native DDL, ready to copy, download or push to Git
- 01
The generator emits Delta DDL:
USING DELTA, liquid clustering (CLUSTER BY) when the AI interview's physical design picks clustering columns, informational primary and foreign keys, escaped table and column comments, and Unity Catalog three-part names. - 02
From the same model you also get a dbt project for the
dbt-databricksadapter. - 03
For tables you already have, the Database Modeler reads Unity Catalog, learns joins from query history, writes reviewed keys, descriptions and PII tags back, and publishes a metric view so Genie stops double-counting.
The code it writes, not a sketch
This is the shape of what offdataai generates here, straight from the validated model. Copy it, download it, or push it to Git.
- Delta Lake-native DDL
- Kimball, Data Vault 2.0, or 3NF
- Full dbt project
1CREATE SCHEMA IF NOT EXISTS main.analytics;23CREATE TABLE IF NOT EXISTS main.analytics.dim_customer (4 customer_sk BIGINT NOT NULL,5 customer_id STRING NOT NULL COMMENT 'Natural key from the CRM',6 name STRING,7 effective_date TIMESTAMP NOT NULL,8 expiry_date TIMESTAMP NOT NULL,9 is_current BOOLEAN NOT NULL,10 CONSTRAINT pk_dim_customer PRIMARY KEY (customer_sk)11)12USING DELTA13COMMENT 'SCD2 customer dimension';1415CREATE TABLE IF NOT EXISTS main.analytics.fct_usage (16 usage_id STRING NOT NULL,17 customer_sk BIGINT NOT NULL,18 event_ts TIMESTAMP NOT NULL,19 api_calls BIGINT NOT NULL,20 CONSTRAINT pk_fct_usage PRIMARY KEY (usage_id),21 CONSTRAINT fk_fct_usage_customer_sk FOREIGN KEY (customer_sk)22 REFERENCES main.analytics.dim_customer(customer_sk)23)24USING DELTA25CLUSTER BY (event_ts, customer_sk);
Generates native SQL and dbt for 8 platforms · connects live to Snowflake, Databricks, BigQuery, Redshift and Postgres
FabricDuckDB
FabricDuckDBFrequently asked questions
Can offdataai generate Databricks DDL from plain English?
Does offdataai support liquid clustering?
Does it use Unity Catalog three-part names?
Does it support Kimball, Data Vault, and 3NF on Databricks?
Does it generate a dbt project for Databricks?
I already have tables in Unity Catalog. Can offdataai help?
How does a metric view stop Genie from double-counting?
Related generators and modeling guides
- AI data modeling toolThe full pipeline — model, DDL, dbt, and seed data.
- Data Vault 2.0Delta-native hubs, links, and satellites.
- Dimensional modelingKimball star schemas on the lakehouse.
- dbt project generatorA complete dbt project for Databricks.
- Snowflake schema generatorThe same flow, targeting Snowflake.
- BigQuery schema generatorThe same flow, targeting BigQuery.
Part of the offdataai platform
The business context behind accurate AI answers, built from the data model up.
- 01DesignLogical, physical and dimensional models.
- 02GenerateSQL, dbt, documentation and migrations.
- 03DefineBusiness metrics, semantic models and ontology.
- 04ConnectReal warehouse schemas and metadata.
- 05GovernDrift, impact analysis, tests and approvals.
- 06ActivateMake trusted context available to AI agents.
This page covers Generate and Connect. Every stage works on the same model, so what you design here carries through to the rest.
Give your AI agents context they can trust.
Design the model, define what your metrics mean, and serve that context to every agent and BI tool, on the warehouse you already run.
