AI Snowflake schema generator
Describe your domain in plain English. Ship a Snowflake warehouse — DDL with CLUSTER BY and TIMESTAMP_NTZ, plus a complete dbt project with sources, staging, marts, tests, and seeds.
- From $1/month
- 8 SQL targets
- 174 templates
Micro-partitions scanned
48 of 48
TIMESTAMP_NTZ
for timestamps, VARIANT for JSON
CLUSTER BY
on large, date-filtered facts
Masking policies
bound to every PII column
COMMENT
on tables and columns
Where offdataai fits in your Snowflake stack
Connect Snowflake
The Database Modeler reads the catalog: tables, columns, keys and comments. Never rows.
Review the model
Accept suggested relationships and see tables classified as facts and dimensions.
Mirror or remodel
Keep it 1:1, or remodel it as a star schema or Data Vault.
Generate
Snowflake DDL, masking SQL, docs and a dbt project for the snowflake adapter.
Ship
Push to GitHub or GitLab, then run dbt build.
What offdataai writes for Snowflake
1CREATE TABLE IF NOT EXISTS CONFORMED_DIMENSIONS.DIM_PROMOTION (2 PROMOTION_KEY NUMBER(38,0) NOT NULL COMMENT 'Surrogate key',3 PROMOTION_ID VARCHAR NOT NULL,4 PROMOTION_TYPE VARCHAR COMMENT 'percent_off/bogo/coupon/clearance',5 DISCOUNT_PCT NUMBER(18,4),6 START_DATE DATE,7 CREATED_AT TIMESTAMP_NTZ DEFAULT CURRENT_TIMESTAMP(),8 _ETL_LOADED_AT TIMESTAMP_NTZ DEFAULT CURRENT_TIMESTAMP(),9 CONSTRAINT PK_DIM_PROMOTION PRIMARY KEY (PROMOTION_KEY)10);
See it in action
A narrated walkthrough, recorded in the real app.
Native types, protected data
Types, mapped for Snowflake
from the generatorYour model's logical types become native Snowflake types.
Native masking policies
Snowflake has column-level masking built in, so offdataai writes the policies themselves: one per strategy, bound to each PII column. Partial masking keeps the first two characters for every role; hash uses SHA2.
1CREATE MASKING POLICY IF NOT EXISTS mask_partial AS (val STRING) RETURNS STRING ->2 CONCAT(LEFT(val, 2), '****');34ALTER TABLE CONFORMED_DIMENSIONS.DIM_CUSTOMER MODIFY COLUMN first_name SET MASKING POLICY mask_partial;5ALTER TABLE CONFORMED_DIMENSIONS.DIM_CUSTOMER MODIFY COLUMN postal_code SET MASKING POLICY mask_partial;
Snowflake by hand, or generated
By hand
- ○Write each CREATE TABLE and pick a Snowflake type for every column
- ○Declare keys and comments one table at a time
- ○Write and bind a masking policy for each PII column
- ○Keep the dbt models in step with the DDL
With offdataai
- Types, keys and comments come from one validated model
- CLUSTER BY only on the facts that need it
- Masking policies generated from the PII classification
- DDL and the dbt project regenerate together on every change
What offdataai generates
Snowflake-native DDL
Real Snowflake syntax: TIMESTAMP_NTZ, NUMBER(p,s), VARIANT, CLUSTER BY, and table and column COMMENTs — never generic ANSI SQL.
Kimball, Data Vault 2.0, or 3NF
Three paradigms supported on Snowflake. Pick the one your team uses; the generator shapes the IR and DDL accordingly.
Full dbt project
dbt_project.yml, sources, staging, marts, snapshots, schema tests, and seeds. dbt build works on the first run.
SCD2 handled correctly
SCD2 dimensions get effective_date, expiry_date, and is_current columns in the DDL, and a dbt snapshot that tracks changes on the business key.
Why teams choose offdataai

Platform-native DDL, ready to copy, download or push to Git
- 01
offdataai is purpose-built for Snowflake.
- 02
Our generator emits Snowflake-native DDL with correct types (
TIMESTAMP_NTZ,NUMBER(p,s),VARCHAR,VARIANT),CLUSTER BYon large fact tables, and primary keys, foreign keys, and COMMENTs that document your model. - 03
From the same conversation, you also get a complete dbt project ready for dbt build — and placeholder seed rows that keep foreign keys valid, so you can prototype without source connections.
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.
- Snowflake-native DDL
- Kimball, Data Vault 2.0, or 3NF
- Full dbt project
1CREATE SCHEMA IF NOT EXISTS ANALYTICS;23CREATE TABLE IF NOT EXISTS ANALYTICS.DIM_CUSTOMER (4 CUSTOMER_SK NUMBER(38,0) NOT NULL,5 CUSTOMER_ID VARCHAR NOT NULL COMMENT 'Business key from billing',6 NAME VARCHAR,7 PLAN_ID VARCHAR,8 EFFECTIVE_DATE TIMESTAMP_NTZ NOT NULL,9 EXPIRY_DATE TIMESTAMP_NTZ NOT NULL,10 IS_CURRENT BOOLEAN NOT NULL DEFAULT TRUE,11 CONSTRAINT PK_DIM_CUSTOMER PRIMARY KEY (CUSTOMER_SK)12)13 COMMENT = 'SCD2 customer dimension';1415CREATE TABLE IF NOT EXISTS ANALYTICS.FCT_USAGE (16 USAGE_ID VARCHAR NOT NULL,17 CUSTOMER_SK NUMBER(38,0) NOT NULL,18 EVENT_TS TIMESTAMP_NTZ NOT NULL,19 API_CALLS NUMBER(38,0) NOT NULL,20 CONSTRAINT PK_FCT_USAGE PRIMARY KEY (USAGE_ID),21 CONSTRAINT FK_FCT_USAGE_CUSTOMER_SK FOREIGN KEY (CUSTOMER_SK) REFERENCES ANALYTICS.DIM_CUSTOMER (CUSTOMER_SK)22)23 CLUSTER 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 Snowflake DDL from plain English?
Does offdataai use Snowflake-specific features like CLUSTER BY?
Does it support Kimball, Data Vault, and 3NF on Snowflake?
Does it generate a dbt project for Snowflake?
How is this different from asking ChatGPT for Snowflake DDL?
Related generators and modeling guides
- Guide: a Snowflake schema from plain EnglishFrom a description to Snowflake DDL, step by step.
- Star schema vs snowflake schemaThe trade-offs on modern cloud warehouses.
- AI data modeling toolThe full pipeline — model, DDL, dbt, and seed data.
- Dimensional modelingKimball star schemas with SCD2 on Snowflake.
- Data Vault 2.0Hubs, links, and satellites on Snowflake.
- dbt project generatorA complete dbt project for Snowflake.
- BigQuery schema generatorThe same flow, targeting BigQuery.
- Databricks schema generatorDelta-native DDL with liquid clustering.
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.
