offdataai
Microsoft Fabric

AI Microsoft Fabric schema generator

Describe your domain in plain English. Ship a Fabric Warehouse — T-SQL tables with Fabric-friendly types and NOT ENFORCED keys, plus a complete dbt project.

  • From $1/month
  • 8 SQL targets
  • 174 templates
Fabric Warehouse · OneLakeDelta
dim_customercustomer_idBIGINTemailVARCHAR(256)PK · NEfct_orderorder_idBIGINTcustomer_idBIGINTordered_atDATETIME2(6)PK · NEdim_productproduct_idBIGINTunit_priceDECIMAL(18,2)PK · NEOneLaketables stored as Delta Parquet · NE = NOT ENFORCED
Fabric takes no inline keys, so tables are created first and keys attach afterwards as NONCLUSTERED … NOT ENFORCED.

NOT ENFORCED

Every PK, UNIQUE and FK

ALTER TABLE

Keys added after all tables exist

DATETIME2(6)

Fabric's maximum precision

Dynamic Data Masking

On columns tagged PII

Your workflow

Where offdataai fits in your Fabric stack

1

Describe the domain

An interview, a template or the Model Builder. Fabric is chosen as the target platform.

2

Validate the model

Keys, grain, SCD history and PII flags are checked before any T-SQL is written.

3

Generate Fabric T-SQL

Schemas, bare tables, then NOT ENFORCED keys and the masking script.

4

Ship the dbt project

A fabric-adapter dbt project, pushed to GitHub, GitLab or Bitbucket.

Built for Fabric

What offdataai writes for Fabric

Tables first, no inline keysfabric sql
1CREATE TABLE [SALES].[fct_orders] (
2 [order_key] BIGINT NOT NULL,
3 [date_key] BIGINT NOT NULL,
4 [customer_key] BIGINT NOT NULL,
5 [order_number] VARCHAR(8000) NOT NULL,
6 [order_total] DECIMAL(18,4),
7 [created_at] DATETIME2(6),
8 [_etl_loaded_at] DATETIME2(6)
9);
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 Fabric

from the generator

Your model's logical types become native Fabric types.

stringVARCHAR(8000)
textVARCHAR(8000)
integerINT
bigintBIGINT
decimalDECIMAL(18,4)
doubleFLOAT
booleanBIT
dateDATE
timestampDATETIME2(6)
jsonVARCHAR(8000)
uuidVARCHAR(36)
binaryVARBINARY(MAX)

Dynamic Data Masking on PII columns

Columns classified as personal data get Fabric's Dynamic Data Masking. Partial masking keeps the first two characters; full and hash strategies fall back to default(), since DDM has no hash function.

1-- Dynamic Data Masking (SQL Server / Synapse / Fabric).
2ALTER TABLE CONFORMED_DIMENSIONS.dim_customer ALTER COLUMN first_name
3 ADD MASKED WITH (FUNCTION = 'partial(2, "****", 0)');
4ALTER TABLE CONFORMED_DIMENSIONS.dim_customer ALTER COLUMN email
5 ADD MASKED WITH (FUNCTION = 'default()');
The difference

Fabric by hand, or generated

By hand

  • ○Strip inline constraints a generic tool writes into CREATE TABLE
  • ○Re-add each key as an ALTER, NONCLUSTERED and NOT ENFORCED
  • ○Cap DATETIME2 and TIME precision at 6 by hand
  • ○Write masking statements column by column

With offdataai

  • Tables come out bare, the way Fabric expects
  • Keys follow as ALTERs, PK and UNIQUE before FKs
  • Fabric types and precision from the start
  • DDM generated for every column tagged PII
Capabilities

What offdataai generates

  • Fabric Warehouse DDL

    T-SQL CREATE TABLE with VARCHAR, DECIMAL, DATETIME2, and BIT types, in [schema].[table] names.

  • Kimball, Data Vault 2.0, or 3NF

    Three paradigms supported on Fabric. Pick the one your team uses; the generator emits Fabric Warehouse DDL for each.

  • Full dbt project

    dbt_project.yml, a profiles.yml stub for the fabric adapter, sources, staging, marts, snapshots, schema tests, and seeds.

  • Keys that document joins

    Primary keys (NONCLUSTERED) and foreign keys are declared NOT ENFORCED, so tools can read the relationships.

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 Microsoft Fabric Warehouse.

  2. 02

    Our generator emits T-SQL DDL with Fabric-friendly type mappings (VARCHAR, DECIMAL, DATETIME2, BIT), schemas created only when missing, and primary and foreign keys declared NOT ENFORCED, as Fabric Warehouse requires.

  3. 03

    From the same conversation, you also get a complete dbt project for the fabric adapter.

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.

  • Fabric Warehouse DDL
  • Kimball, Data Vault 2.0, or 3NF
  • Full dbt project
ddl/fabric.sqlfabric sql
1IF NOT EXISTS (SELECT 1 FROM sys.schemas WHERE name='ANALYTICS') BEGIN EXEC('CREATE SCHEMA [ANALYTICS]'); END;
2
3CREATE TABLE [ANALYTICS].[dim_customer] (
4 [customer_sk] BIGINT NOT NULL,
5 [customer_id] VARCHAR(8000) NOT NULL,
6 [name] VARCHAR(8000),
7 [plan_id] VARCHAR(8000),
8 [effective_date] DATETIME2(6) NOT NULL,
9 [expiry_date] DATETIME2(6) NOT NULL,
10 [is_current] BIT NOT NULL
11);
12
13CREATE TABLE [ANALYTICS].[fct_usage] (
14 [usage_id] VARCHAR(8000) NOT NULL,
15 [customer_sk] BIGINT NOT NULL,
16 [event_ts] DATETIME2(6) NOT NULL,
17 [api_calls] BIGINT NOT NULL
18);
19
20-- Fabric takes no inline keys: they are added after every table exists.
21ALTER TABLE [ANALYTICS].[dim_customer] ADD CONSTRAINT pk_dim_customer PRIMARY KEY NONCLUSTERED ([customer_sk]) NOT ENFORCED;
22ALTER TABLE [ANALYTICS].[fct_usage] ADD CONSTRAINT pk_fct_usage PRIMARY KEY NONCLUSTERED ([usage_id]) NOT ENFORCED;
23ALTER TABLE [ANALYTICS].[fct_usage] ADD CONSTRAINT fk_fct_usage_customer_sk FOREIGN KEY ([customer_sk]) REFERENCES [ANALYTICS].[dim_customer] ([customer_sk]) NOT ENFORCED;

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 Microsoft Fabric DDL from plain English?
Yes. Describe your business domain in plain English. offdataai's interview agent gathers grain and cardinality, synthesizes a typed Intermediate Representation, and emits T-SQL DDL for a Microsoft Fabric Warehouse.
Does offdataai support both Lakehouse and Warehouse modes?
It targets Fabric Warehouse. The generator emits T-SQL CREATE TABLE statements for a Fabric Warehouse. It does not emit Spark SQL DDL for Lakehouse tables.
How are Fabric tables named?
Tables use two-part [schema].[table] names. The schema comes from the model's subject area, or dbo when there is none, and is created only if it doesn't exist. Run the script in the warehouse you want; workspace and warehouse names are not part of the DDL.
Does it support Kimball, Data Vault, and 3NF on Fabric?
Yes. All three paradigms are first-class on Fabric. The generator emits Fabric Warehouse DDL for each.
Does it generate a dbt project for Fabric?
Yes. offdataai emits a complete dbt project for Fabric — dbt_project.yml, a profiles.yml stub for the fabric adapter (you add the connection details), sources, staging, marts, snapshots for SCD2 dimensions, schema tests, and seed CSVs.

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