offdataai
Dimensional Modeling

AI dimensional modeling & star schema generator

Describe your business processes and offdataai builds the Kimball star schema — fact tables at the right grain, conformed dimensions with surrogate keys, and SCD2 history — then ships native DDL and a dbt project with marts and tests.

  • From $1/month
  • 8 SQL targets
  • 174 templates
Star schema · order linesKimball
dim_customerdim_productdim_storedim_datedim_promotionfct_order_lineFACTgrain: one row per order lineCUSTOMER_IDLOYALTY_TIEREFFECTIVE_FROMIS_CURRENTC-1042Silver2025-02-11trueC-1042Gold2026-10-27true
The fact table's grain is declared up front; SCD2 dimensions keep every version with effective dates and an is_current flag.
Watch the demo

See it in action

A narrated walkthrough, recorded in the real app.

How it works

Three steps, minutes not months

1

Describe or import

Answer a short interview, open a template, draw on the canvas or connect a live database.

2

Review a validated model

Keys, grain, history and PII are checked before any code is written. Refine it in plain English.

3

Ship and keep it current

Native DDL, dbt, seeds, docs and an ontology. Push to Git, diff versions, generate migrations.

Overview

Why teams choose offdataai

app.offdataai.com
A validated ERD: keys, SCD2 history and PII flags on every table

A validated ERD: keys, SCD2 history and PII flags on every table

  1. 01

    Good dimensional models start with grain, and grain is exactly what gets skipped when you model by hand. offdataai's interview agent confirms what one row of each fact represents before it generates anything, then produces a clean Kimball star (or snowflake) schema: fact tables with measures and foreign keys, conformed dimensions with surrogate keys, and SCD Type 2 history where you need point-in-time accuracy.

  2. 02

    The same model compiles to native DDL and a complete dbt project — staging, marts, schema tests, and seed data — for Snowflake, BigQuery, Databricks, Redshift, Postgres, Synapse, and Fabric.

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.

  • Facts and conformed dimensions
  • Grain confirmed up front
  • SCD2 history done right
marts/star_schema.sqldimensional · ddl
1-- Conformed dimension (SCD2)
2CREATE TABLE marts.dim_product (
3 product_sk BIGINT NOT NULL, -- surrogate key
4 product_id VARCHAR NOT NULL, -- natural key
5 name VARCHAR,
6 category VARCHAR,
7 effective_date TIMESTAMP NOT NULL,
8 expiry_date TIMESTAMP NOT NULL,
9 is_current BOOLEAN NOT NULL,
10 CONSTRAINT pk_dim_product PRIMARY KEY (product_sk)
11);
12
13-- Fact at transaction grain
14CREATE TABLE marts.fct_sales (
15 sale_id VARCHAR NOT NULL,
16 date_sk INT NOT NULL, -- FK -> dim_date
17 product_sk BIGINT NOT NULL, -- FK -> dim_product
18 customer_sk BIGINT NOT NULL, -- FK -> dim_customer
19 quantity INT NOT NULL,
20 amount NUMERIC(18,2) NOT NULL,
21 CONSTRAINT pk_fct_sales PRIMARY KEY (sale_id)
22);
Capabilities

What offdataai generates

  • Facts and conformed dimensions

    Fact tables with measures and foreign keys, and conformed dimensions shared across marts — the backbone of a Kimball model, generated for you.

  • Grain confirmed up front

    The interview agent pins down the grain of every fact before generating, so measures, keys, and dimensions all line up correctly.

  • SCD2 history done right

    Surrogate keys, effective and expiry dates, and a current-row flag, with a dbt snapshot to maintain history over time.

  • Star or snowflake schema

    Keep dimensions denormalized for a star, or normalize them for a snowflake schema. You choose; the generator shapes the model accordingly.

0

Validated templates

0

SQL targets

0

Modeling paradigms

0+

Industries covered

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 a Kimball star schema?
Yes. Choose the Kimball paradigm and describe your domain. offdataai identifies your business processes and grain, then generates fact tables and conformed dimension tables with surrogate keys, foreign keys, and the measures and attributes that belong on each — a clean star schema ready to query.
Does it handle slowly changing dimensions (SCD2)?
Yes. Dimensions that need history get SCD Type 2 handling: surrogate keys plus effective_date, expiry_date and is_current columns. Facts reference the surrogate keys so point-in-time analysis is correct. The dbt project includes a snapshot for each SCD2 dimension to maintain the history.
What's the difference between a star and a snowflake schema here?
A star schema keeps dimensions denormalized (one table per dimension); a snowflake schema normalizes dimensions into sub-tables. offdataai supports both — you choose, and the generator shapes the dimensions accordingly while keeping the fact grain intact.
How does offdataai decide the grain of a fact table?
The interview agent asks. Grain is the most important decision in dimensional modeling, so offdataai confirms exactly what one row of each fact represents (per transaction, per day, per event) before generating — and records it on the model so the measures and dimensions line up.
Can I generate the marts as a dbt project?
Yes. offdataai emits a complete dbt project — sources, staging models, and mart models for your facts and dimensions, with schema tests and seed data. dbt build works on the first run.

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