offdataai
Snowflake

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
analytics.fct_order_line · SnowflakeClustered
SELECT… FROM fct_order_line
CLUSTER BY (ordered_at)
TIMESTAMP_NTZ
VARIANT payload
COMMENT on every column
email · masking policy

Micro-partitions scanned

48 of 48

CLUSTER BY keeps rows with nearby dates in the same micro-partitions, so a date filter skips most of the table.

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

Your workflow

Where offdataai fits in your Snowflake stack

1

Connect Snowflake

The Database Modeler reads the catalog: tables, columns, keys and comments. Never rows.

2

Review the model

Accept suggested relationships and see tables classified as facts and dimensions.

3

Mirror or remodel

Keep it 1:1, or remodel it as a star schema or Data Vault.

4

Generate

Snowflake DDL, masking SQL, docs and a dbt project for the snowflake adapter.

5

Ship

Push to GitHub or GitLab, then run dbt build.

Built for Snowflake

What offdataai writes for Snowflake

Native types and commentssnowflake sql
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);
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

Types and governance

Native types, protected data

Types, mapped for Snowflake

from the generator

Your model's logical types become native Snowflake types.

stringVARCHAR
textVARCHAR
integerNUMBER
bigintNUMBER(38,0)
decimalNUMBER(18,4)
doubleFLOAT
booleanBOOLEAN
dateDATE
timestampTIMESTAMP_NTZ
jsonVARIANT
uuidVARCHAR(36)
binaryBINARY

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), '****');
3
4ALTER 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;
The difference

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
Capabilities

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.

Overview

Why teams choose offdataai

app.offdataai.com
Platform-native DDL, ready to copy, download or push to Git

Platform-native DDL, ready to copy, download or push to Git

  1. 01

    offdataai is purpose-built for Snowflake.

  2. 02

    Our generator emits Snowflake-native DDL with correct types (TIMESTAMP_NTZ, NUMBER(p,s), VARCHAR, VARIANT), CLUSTER BY on large fact tables, and primary keys, foreign keys, and COMMENTs that document your model.

  3. 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.

Real output

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
ddl/snowflake.sqlsnowflake sql
1CREATE SCHEMA IF NOT EXISTS ANALYTICS;
2
3CREATE 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';
14
15CREATE 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

SnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbtSnowflakeBigQueryDatabricksRedshiftPostgreSQLSynapseFabricDuckDBdbt
FAQ

Frequently asked questions

Can offdataai generate Snowflake DDL from plain English?
Yes. Describe your business domain in plain English. offdataai's interview agent asks targeted follow-up questions, synthesizes a typed Intermediate Representation, validates it, and emits Snowflake-native DDL with correct types (TIMESTAMP_NTZ, NUMBER(p,s)) and clustering (CLUSTER BY).
Does offdataai use Snowflake-specific features like CLUSTER BY?
Yes. When you build with the AI interview, a physical-design step adds CLUSTER BY to large fact tables, usually on the most-filtered timestamp or a high-cardinality join key. Small dimensions are left unclustered. Types use TIMESTAMP_NTZ, NUMBER(p,s), VARCHAR, and VARIANT, and tables and columns carry COMMENTs from your model.
Does it support Kimball, Data Vault, and 3NF on Snowflake?
Yes. All three paradigms are first-class for Snowflake. Pick the paradigm; the IR and generators shape the output accordingly.
Does it generate a dbt project for Snowflake?
Yes. offdataai emits a complete dbt project for Snowflake — dbt_project.yml, a profiles.yml example for dbt-snowflake, sources, staging, marts (incremental facts), snapshots for SCD2 dimensions, schema tests, and seed CSVs. dbt build works on the first run.
How is this different from asking ChatGPT for Snowflake DDL?
ChatGPT can sketch DDL but rarely uses Snowflake-native syntax consistently. offdataai runs a structured pipeline (interview → IR → validate → generate) with a dedicated Snowflake generator, so the output is reproducible and warehouse-ready.

Part of the offdataai platform

The business context behind accurate AI answers, built from the data model up.

See all six stages →
  1. 01DesignLogical, physical and dimensional models.
  2. 02GenerateSQL, dbt, documentation and migrations.
  3. 03DefineBusiness metrics, semantic models and ontology.
  4. 04ConnectReal warehouse schemas and metadata.
  5. 05GovernDrift, impact analysis, tests and approvals.
  6. 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.

Accuracy starts with context

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.

Book a demoGet started

Self-serve plans available