{
  "dataset_generator": {
    "brief": {
      "business_context": "An independent craft brewery that brews its own beers, sells kegs and cases to bars and bottle shops across several territories, and runs a taproom.",
      "dialect": "mariadb",
      "dirty_modes": [],
      "field_complexity": "moderate",
      "include_dirty_data": false,
      "naming_style": "camelCase",
      "row_scale": "medium",
      "schema_name": "",
      "seed": 23,
      "table_count": [
        7,
        10
      ]
    },
    "business_context": "Ironroot Craft Brewery is an independent craft brewery that brews a rotating lineup of ales, lagers, and seasonal specialties. It sells kegs and cases wholesale to bars and bottle shops across multiple regional territories, and also operates an on-site taproom where customers can purchase pints and growlers directly. The business tracks its brewing production, product catalog, wholesale customers, sales orders, and taproom transactions.",
    "defects": [],
    "design": {
      "business_context": "Ironroot Craft Brewery is an independent craft brewery that brews a rotating lineup of ales, lagers, and seasonal specialties. It sells kegs and cases wholesale to bars and bottle shops across multiple regional territories, and also operates an on-site taproom where customers can purchase pints and growlers directly. The business tracks its brewing production, product catalog, wholesale customers, sales orders, and taproom transactions.",
      "design_notes": "The schema separates wholesale distribution (accounts, orders, order lines) from taproom sales, with beers and batches forming the production backbone. A junction table links beers to their style tags for flexible categorization.",
      "dialect": "mariadb",
      "display_name": "Ironroot Craft Brewery",
      "naming_style": "camelCase",
      "schema": "craftBrewery",
      "tables": [
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "styleId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [
                "IPA",
                "Pale Ale",
                "Stout",
                "Porter",
                "Lager",
                "Wheat Beer",
                "Sour",
                "Amber Ale"
              ],
              "decimals": 2,
              "description": "The name of the beer style family.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "styleName",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "A short description of the style's flavor profile and characteristics.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "description",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(255)",
              "start": "",
              "type": "sentence",
              "unique": false,
              "weights": []
            }
          ],
          "description": "Lookup table of broad beer style categories such as IPA, Stout, or Lager. Each beer belongs to one style.",
          "is_junction": false,
          "name": "styles",
          "row_count": 12,
          "singular_label": "Style",
          "size_class": "lookup",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The marketed name of the beer, e.g. 'Redrock Amber'.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerName",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(120)",
              "start": "",
              "type": "text",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The broad style family this beer belongs to.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "styleId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "styles",
              "references_column": "styleId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 1,
              "description": "Alcohol by volume percentage.",
              "distribution": "normal",
              "end": "",
              "expression": "",
              "maximum": 12.5,
              "minimum": 3.2,
              "name": "abv",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DECIMAL(12,1)",
              "start": "",
              "type": "decimal",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "International Bitterness Units \u2014 a measure of hop bitterness.",
              "distribution": "normal",
              "end": "",
              "expression": "",
              "maximum": 120.0,
              "minimum": 5.0,
              "name": "ibu",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "int",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Whether this beer is currently being brewed and available for sale.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "isActive",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "TINYINT(1)",
              "start": "",
              "type": "bool",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One row per distinct beer recipe in the brewery's catalog, including seasonal and retired recipes.",
          "is_junction": false,
          "name": "beers",
          "row_count": 260,
          "singular_label": "Beer",
          "size_class": "dimension",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "batchId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The beer recipe brewed in this batch.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "beers",
              "references_column": "beerId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Internal production code for the batch, e.g. BT-2847-AK.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "batchCode",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "BT-####-@@",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(30)",
              "start": "",
              "type": "code",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The date brewing began for this batch.",
              "distribution": "seasonal",
              "end": "2025-06-30",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "brewDate",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DATE",
              "start": "2021-01-01",
              "type": "date",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 0,
              "description": "Total volume produced in this batch in litres.",
              "distribution": "normal",
              "end": "",
              "expression": "",
              "maximum": 2000.0,
              "minimum": 200.0,
              "name": "volumeLitres",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DECIMAL(12,0)",
              "start": "",
              "type": "decimal",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Fermenting",
                "Conditioning",
                "Packaged",
                "Depleted"
              ],
              "decimals": 2,
              "description": "Current stage of this batch in the production pipeline.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "status",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One row per brewing batch. A single beer recipe may be brewed many times across different batches.",
          "is_junction": false,
          "name": "batches",
          "row_count": 1200,
          "singular_label": "Batch",
          "size_class": "fact",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "territoryId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [
                "North Metro",
                "South Metro",
                "East Coast",
                "West Coast",
                "Central Plains",
                "Mountain Region",
                "Gulf Coast",
                "Pacific Northwest"
              ],
              "decimals": 2,
              "description": "The name of the sales territory.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "territoryName",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The brewery's account manager responsible for this territory.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "salesRep",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(100)",
              "start": "",
              "type": "full_name",
              "unique": false,
              "weights": []
            }
          ],
          "description": "Lookup table of sales territories the brewery distributes into, such as geographic regions or states.",
          "is_junction": false,
          "name": "territories",
          "row_count": 12,
          "singular_label": "Territory",
          "size_class": "lookup",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "accountId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The trading name of the bar, restaurant, or bottle shop.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "accountName",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(120)",
              "start": "",
              "type": "company",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The sales territory this account falls within.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "territoryId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "territories",
              "references_column": "territoryId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "City where the account is located.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "city",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "city",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Primary contact phone number for the account.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "phone",
              "null_rate": 0.08,
              "nullable": true,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(20)",
              "start": "",
              "type": "phone",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Bar",
                "Restaurant",
                "Bottle Shop",
                "Hotel",
                "Sports Venue"
              ],
              "decimals": 2,
              "description": "The type of establishment this account operates as.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "accountType",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One row per wholesale customer \u2014 a bar, restaurant, or bottle shop that orders kegs or cases from the brewery.",
          "is_junction": false,
          "name": "accounts",
          "row_count": 260,
          "singular_label": "Account",
          "size_class": "dimension",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "orderId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The wholesale account that placed this order.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "accountId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "accounts",
              "references_column": "accountId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The date the order was placed.",
              "distribution": "seasonal",
              "end": "2025-06-30",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "orderDate",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DATE",
              "start": "2022-01-01",
              "type": "date",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Actual delivery date; null if not yet delivered.",
              "distribution": "uniform",
              "end": "2025-07-07",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "deliveryDate",
              "null_rate": 0.15,
              "nullable": true,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DATE",
              "start": "2022-01-05",
              "type": "date",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Pending",
                "Confirmed",
                "Shipped",
                "Delivered",
                "Cancelled"
              ],
              "decimals": 2,
              "description": "Current fulfillment status of the order.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "status",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One wholesale order placed by an account. An order contains one or more line items for specific products.",
          "is_junction": false,
          "name": "orders",
          "row_count": 1200,
          "singular_label": "Order",
          "size_class": "fact",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "orderLineId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The parent wholesale order this line belongs to.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "orderId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "orders",
              "references_column": "orderId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The beer being ordered on this line.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "beers",
              "references_column": "beerId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Half Keg",
                "Quarter Keg",
                "Sixth Keg",
                "24-Case Cans",
                "12-Case Bottles"
              ],
              "decimals": 2,
              "description": "The packaging format ordered \u2014 keg size or case type.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "packageType",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Number of units (kegs or cases) ordered.",
              "distribution": "pareto",
              "end": "",
              "expression": "",
              "maximum": 50.0,
              "minimum": 1.0,
              "name": "quantity",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "int",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Price per unit charged to the account in dollars.",
              "distribution": "normal",
              "end": "",
              "expression": "",
              "maximum": 280.0,
              "minimum": 35.0,
              "name": "unitPrice",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DECIMAL(12,2)",
              "start": "",
              "type": "money",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Total value of this order line, calculated as quantity \u00d7 unitPrice.",
              "distribution": "uniform",
              "end": "",
              "expression": "quantity * unitPrice",
              "maximum": null,
              "minimum": null,
              "name": "lineTotal",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DECIMAL(12,2)",
              "start": "",
              "type": "computed",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One row per beer product line within a wholesale order, capturing quantity and pricing.",
          "is_junction": false,
          "name": "orderLines",
          "row_count": 1200,
          "singular_label": "Order Line",
          "size_class": "fact",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "taproomSaleId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The beer sold in this taproom transaction.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "beers",
              "references_column": "beerId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Date and time the taproom sale occurred.",
              "distribution": "seasonal",
              "end": "2025-06-30",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "saleDate",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DATETIME",
              "start": "2022-01-01",
              "type": "datetime",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Pint",
                "Half Pint",
                "Flight",
                "Growler Fill",
                "Crowler"
              ],
              "decimals": 2,
              "description": "The serving format purchased by the taproom customer.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "servingType",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Number of servings sold in this transaction.",
              "distribution": "pareto",
              "end": "",
              "expression": "",
              "maximum": 8.0,
              "minimum": 1.0,
              "name": "quantity",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "int",
              "unique": false,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "Total dollar amount collected for this taproom transaction.",
              "distribution": "pareto",
              "end": "",
              "expression": "",
              "maximum": 80.0,
              "minimum": 4.0,
              "name": "saleAmount",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "DECIMAL(12,2)",
              "start": "",
              "type": "money",
              "unique": false,
              "weights": []
            }
          ],
          "description": "One row per taproom transaction \u2014 a customer purchasing pints, flights, or growlers at the brewery's on-site taproom.",
          "is_junction": false,
          "name": "taproomSales",
          "row_count": 1200,
          "singular_label": "Taproom Sale",
          "size_class": "fact",
          "unique_together": []
        },
        {
          "columns": [
            {
              "categories": [],
              "decimals": 2,
              "description": "",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerTagId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "INT",
              "start": "",
              "type": "pk",
              "unique": true,
              "weights": []
            },
            {
              "categories": [],
              "decimals": 2,
              "description": "The beer receiving this tag.",
              "distribution": "zipf",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "beerId",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "beers",
              "references_column": "beerId",
              "sql_type": "INT",
              "start": "",
              "type": "fk",
              "unique": false,
              "weights": []
            },
            {
              "categories": [
                "Hoppy",
                "Malty",
                "Citrus",
                "Dark",
                "Smoky",
                "Fruity",
                "Spiced",
                "Crisp"
              ],
              "decimals": 2,
              "description": "A short descriptor applied to the beer for menu and search filtering.",
              "distribution": "uniform",
              "end": "",
              "expression": "",
              "maximum": null,
              "minimum": null,
              "name": "tagName",
              "null_rate": 0.0,
              "nullable": false,
              "pattern": "",
              "references": "",
              "references_column": "",
              "sql_type": "VARCHAR(60)",
              "start": "",
              "type": "category",
              "unique": false,
              "weights": []
            }
          ],
          "description": "Junction table linking beers to descriptive flavor or ingredient tags, enabling many-to-many beer-to-tag categorization.",
          "is_junction": true,
          "name": "beerTags",
          "row_count": 260,
          "singular_label": "Beer Tag",
          "size_class": "dimension",
          "unique_together": []
        }
      ]
    },
    "dialect": "mariadb",
    "display_name": "Ironroot Craft Brewery",
    "naming_style": "camelCase",
    "narrative": {
      "column_meanings": {
        "accounts.accountType": "The type of business the wholesale customer operates, such as Bar, Restaurant, or Bottle Shop. This helps the brewery segment and analyze its customer base.",
        "batches.batchCode": "A short human-readable identifier assigned by the brewery to track and reference a specific batch during production, such as on tank labels or production logs.",
        "batches.status": "Where this batch currently sits in the production pipeline \u2014 Fermenting and Conditioning mean it is not yet ready, Packaged means it is ready to sell, and Depleted means it has been fully sold or consumed.",
        "batches.volumeLitres": "The total volume of beer produced in this batch, measured in litres.",
        "beerTags.tagName": "A single descriptive label applied to the beer, drawn from a defined set of flavor and ingredient descriptors such as Hoppy, Citrus, or Smoky.",
        "beers.abv": "Alcohol by volume expressed as a percentage, indicating the strength of the beer recipe.",
        "beers.ibu": "International Bitterness Units \u2014 a numeric scale measuring how bitter the beer tastes; higher numbers mean more bitterness.",
        "beers.isActive": "Whether this recipe is currently being brewed and sold. Retired or discontinued recipes remain in the catalog but are flagged inactive.",
        "orderLines.lineTotal": "The total charge for this line, calculated by multiplying the quantity ordered by the unit price.",
        "orderLines.packageType": "The physical format in which the beer is being ordered \u2014 for example, a Half Keg for draught service or a 24-Case of cans for retail shelves.",
        "orderLines.unitPrice": "The price charged per single unit of the specified package type at the time the order was placed.",
        "orders.deliveryDate": "The date the order is scheduled to be \u2014 or was actually \u2014 delivered to the account.",
        "orders.orderDate": "The date the wholesale account placed the order with the brewery.",
        "orders.status": "The current fulfillment stage of the order, moving from Pending through Confirmed, Shipped, and Delivered, or Cancelled if the order did not proceed.",
        "taproomSales.saleAmount": "The total dollar amount collected from the customer for this taproom transaction.",
        "taproomSales.saleDate": "The exact date and time the taproom transaction was completed, recorded to the minute so the brewery can analyze traffic patterns throughout the day.",
        "taproomSales.servingType": "The format in which the beer was served at the taproom \u2014 for example, a Pint poured at the bar or a Growler Fill for a customer taking beer home.",
        "territories.salesRep": "The full name of the sales representative responsible for maintaining relationships with wholesale accounts in this territory."
      },
      "company_story": "Ironroot Craft Brewery is an independent craft brewery that produces a rotating lineup of ales, lagers, and seasonal specialties. It sells kegs and cases wholesale to bars, restaurants, bottle shops, hotels, and sports venues spread across multiple regional territories. The brewery also runs an on-site taproom where anyone can walk up and order pints, flights, or growlers directly. With a catalog of over 260 distinct beer recipes and more than a thousand batches brewed, Ironroot is a mid-sized regional operation with both a B2B wholesale arm and a direct consumer-facing taproom.",
      "operations": "On the production side, the brewery takes a beer recipe and brews it into a physical batch, which moves through stages \u2014 fermenting, conditioning, packaging, and eventually depletion as it sells out. Once packaged, that beer becomes available for sale through two channels. In the wholesale channel, a sales rep manages accounts in their territory; when a bar or bottle shop is ready to reorder, they place a wholesale order that lists exactly which beers, in which package format, and at what quantity they want delivered. In the taproom channel, staff ring up individual transactions whenever a customer orders a pint or growler at the bar, and each transaction records which beer was served and how.",
      "relationships_prose": "Every beer recipe belongs to one broad style category, and each recipe can be brewed into many separate batches over time. On the wholesale side, accounts are grouped into territories, and when an account places an order, that order breaks down into individual line items \u2014 one per beer and package type combination. On the taproom side, each sales transaction ties back directly to a specific beer recipe, recording exactly which beer was served. Beers can carry multiple flavor tags, and the same tag can appear on many different beers, so the beerTags table connects those two sides together.",
      "source": "ai",
      "table_meanings": {
        "accounts": "One row for every wholesale customer the brewery sells to \u2014 bars, restaurants, bottle shops, hotels, and sports venues. Each account belongs to one sales territory and is served by that territory's sales rep.",
        "batches": "One row for every physical brewing run the brewery has executed. Because a popular recipe might be brewed dozens of times, this table tracks each individual batch separately \u2014 when it was brewed, how many litres were produced, and where it currently stands in the production process.",
        "beerTags": "One row for every flavor or ingredient tag applied to a beer. Because a single beer can carry multiple tags (for example, both Hoppy and Citrus) and the same tag applies to many beers, this table links the two together, enabling searches and groupings by flavor profile.",
        "beers": "One row for every distinct beer recipe the brewery has ever created, including beers that are currently on tap, beers that rotate in seasonally, and recipes that have been retired. This is the central product catalog that everything else references.",
        "orderLines": "One row for each distinct beer-and-package combination within a wholesale order. A single order from a bar might include a half keg of one beer and two cases of another, which would appear as two separate rows here.",
        "orders": "One row for every wholesale order placed by an account. An order captures when it was placed, when delivery is expected, and its current fulfillment status from initial receipt through to delivery or cancellation. The individual beers and quantities within that order are recorded separately in orderLines.",
        "styles": "A short reference list of the broad beer style categories Ironroot uses to classify its recipes \u2014 things like IPA, Stout, or Lager. Every beer in the catalog is assigned to exactly one style from this list.",
        "taproomSales": "One row for every transaction rung up at the on-site taproom. Rather than wholesale cases or kegs, these transactions capture individual servings \u2014 pints, half pints, flights, growler fills, and crowlers \u2014 sold directly to visitors at the brewery.",
        "territories": "A short reference list of the geographic sales territories the brewery distributes into. Each territory has a dedicated sales rep who owns the relationships with wholesale accounts in that area."
      }
    },
    "relationships": [
      {
        "cardinality": "1:N",
        "from_column": "styleId",
        "from_table": "beers",
        "optional": false,
        "to_column": "styleId",
        "to_table": "styles"
      },
      {
        "cardinality": "1:N",
        "from_column": "beerId",
        "from_table": "batches",
        "optional": false,
        "to_column": "beerId",
        "to_table": "beers"
      },
      {
        "cardinality": "1:N",
        "from_column": "territoryId",
        "from_table": "accounts",
        "optional": false,
        "to_column": "territoryId",
        "to_table": "territories"
      },
      {
        "cardinality": "1:N",
        "from_column": "accountId",
        "from_table": "orders",
        "optional": false,
        "to_column": "accountId",
        "to_table": "accounts"
      },
      {
        "cardinality": "1:N",
        "from_column": "orderId",
        "from_table": "orderLines",
        "optional": false,
        "to_column": "orderId",
        "to_table": "orders"
      },
      {
        "cardinality": "1:N",
        "from_column": "beerId",
        "from_table": "orderLines",
        "optional": false,
        "to_column": "beerId",
        "to_table": "beers"
      },
      {
        "cardinality": "1:N",
        "from_column": "beerId",
        "from_table": "taproomSales",
        "optional": false,
        "to_column": "beerId",
        "to_table": "beers"
      },
      {
        "cardinality": "N:M",
        "from_column": "beerId",
        "from_table": "beerTags",
        "optional": false,
        "to_column": "beerId",
        "to_table": "beers"
      }
    ],
    "version": "1.0.0"
  },
  "name": "craftBrewery",
  "schema": "craftBrewery",
  "source": "Agoge dataset generator 1.0.0 (seed 23) \u2014 fully synthetic",
  "tables": [
    {
      "approx_rows": 12,
      "columns": [
        {
          "key": "PRI",
          "name": "styleId",
          "type": "int"
        },
        {
          "key": "UNI",
          "name": "styleName",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "description",
          "type": "varchar"
        }
      ],
      "name": "styles"
    },
    {
      "approx_rows": 260,
      "columns": [
        {
          "key": "PRI",
          "name": "beerId",
          "type": "int"
        },
        {
          "key": "UNI",
          "name": "beerName",
          "type": "varchar"
        },
        {
          "key": "MUL",
          "name": "styleId",
          "type": "int"
        },
        {
          "key": "",
          "name": "abv",
          "type": "decimal"
        },
        {
          "key": "",
          "name": "ibu",
          "type": "int"
        },
        {
          "key": "",
          "name": "isActive",
          "type": "tinyint"
        }
      ],
      "name": "beers"
    },
    {
      "approx_rows": 1200,
      "columns": [
        {
          "key": "PRI",
          "name": "batchId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "beerId",
          "type": "int"
        },
        {
          "key": "UNI",
          "name": "batchCode",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "brewDate",
          "type": "date"
        },
        {
          "key": "",
          "name": "volumeLitres",
          "type": "decimal"
        },
        {
          "key": "",
          "name": "status",
          "type": "varchar"
        }
      ],
      "name": "batches"
    },
    {
      "approx_rows": 12,
      "columns": [
        {
          "key": "PRI",
          "name": "territoryId",
          "type": "int"
        },
        {
          "key": "UNI",
          "name": "territoryName",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "salesRep",
          "type": "varchar"
        }
      ],
      "name": "territories"
    },
    {
      "approx_rows": 260,
      "columns": [
        {
          "key": "PRI",
          "name": "accountId",
          "type": "int"
        },
        {
          "key": "",
          "name": "accountName",
          "type": "varchar"
        },
        {
          "key": "MUL",
          "name": "territoryId",
          "type": "int"
        },
        {
          "key": "",
          "name": "city",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "phone",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "accountType",
          "type": "varchar"
        }
      ],
      "name": "accounts"
    },
    {
      "approx_rows": 1200,
      "columns": [
        {
          "key": "PRI",
          "name": "orderId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "accountId",
          "type": "int"
        },
        {
          "key": "",
          "name": "orderDate",
          "type": "date"
        },
        {
          "key": "",
          "name": "deliveryDate",
          "type": "date"
        },
        {
          "key": "",
          "name": "status",
          "type": "varchar"
        }
      ],
      "name": "orders"
    },
    {
      "approx_rows": 1200,
      "columns": [
        {
          "key": "PRI",
          "name": "orderLineId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "orderId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "beerId",
          "type": "int"
        },
        {
          "key": "",
          "name": "packageType",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "quantity",
          "type": "int"
        },
        {
          "key": "",
          "name": "unitPrice",
          "type": "decimal"
        },
        {
          "key": "",
          "name": "lineTotal",
          "type": "decimal"
        }
      ],
      "name": "orderLines"
    },
    {
      "approx_rows": 1200,
      "columns": [
        {
          "key": "PRI",
          "name": "taproomSaleId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "beerId",
          "type": "int"
        },
        {
          "key": "",
          "name": "saleDate",
          "type": "datetime"
        },
        {
          "key": "",
          "name": "servingType",
          "type": "varchar"
        },
        {
          "key": "",
          "name": "quantity",
          "type": "int"
        },
        {
          "key": "",
          "name": "saleAmount",
          "type": "decimal"
        }
      ],
      "name": "taproomSales"
    },
    {
      "approx_rows": 260,
      "columns": [
        {
          "key": "PRI",
          "name": "beerTagId",
          "type": "int"
        },
        {
          "key": "MUL",
          "name": "beerId",
          "type": "int"
        },
        {
          "key": "",
          "name": "tagName",
          "type": "varchar"
        }
      ],
      "name": "beerTags"
    }
  ]
}