{
  "format": "dataset-manifest/1",
  "slug": "manufacturing-operations-dataset",
  "version": 1,
  "seed": "manufacturing-operations-dataset:1",
  "spec": {
    "format": "dataset/1",
    "slug": "manufacturing-operations-dataset",
    "name": "Manufacturing Operations Dataset",
    "tagline": "Production orders, inventory levels, and resource management metrics from a manufacturing environment.",
    "description": "Manufacturing environments thrive on efficiency and effective resource management. This dataset models essential aspects of manufacturing operations, focusing on sales orders, inventory levels, production schedules, and the necessary materials for operations. Rows in this dataset represent unique production orders, encompassing details such as order dates, customer information, material requirements, and employee skill sets. The tables allow for analysis of how efficiently production can be planned and executed, highlighting areas where downtimes and skill shortages may affect output. Users can explore trends in sales orders and inventory levels, revealing insights into popular products and potential supply chain issues. The data is synthetic, giving developers a safe space to practice SQL queries and ORM seeding without real-world implications.",
    "domain": "manufacturing",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "manufacturing",
      "production",
      "inventory",
      "sales orders",
      "scheduling",
      "materials",
      "employee skills",
      "efficiency"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "production_orders": {
        "description": "Each row represents a unique production order, detailing customer info, materials needed, and employee skills involved.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each production order."
          },
          "order_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the production order was placed.",
            "trend": "growing"
          },
          "customer_name": {
            "kind": "fullName",
            "description": "Full name of the customer placing the order."
          },
          "product_name": {
            "kind": "productName",
            "description": "Name of the product being manufactured."
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 1000,
            "description": "Quantity of products to be produced."
          },
          "inventory_level": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Current inventory level of the product."
          },
          "material_required": {
            "kind": "words",
            "min": 3,
            "max": 10,
            "description": "Materials necessary for the production of the product.",
            "nullable": true
          },
          "employee_skills": {
            "kind": "words",
            "min": 5,
            "max": 15,
            "description": "Skills required from employees to fulfill the order.",
            "nullable": true
          },
          "downtime_hours": {
            "kind": "decimal",
            "min": 0,
            "max": 24,
            "description": "Downtime in hours due to various factors.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "monetary",
      "timestamped",
      "free-text",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common materials required for production?",
      "How does inventory level affect order fulfillment times?",
      "Which products experience the highest turnover in sales orders?",
      "What skills do employees most frequently possess for the production orders?",
      "How often does downtime affect production schedules?"
    ],
    "suggestedQueries": [
      {
        "title": "Join production orders with inventory levels",
        "sql": "SELECT * FROM production_orders WHERE inventory_level > 0;",
        "dialect": "postgres"
      },
      {
        "title": "Count of orders by product name",
        "sql": "SELECT product_name, COUNT(*) FROM production_orders GROUP BY product_name;",
        "dialect": "postgres"
      },
      {
        "title": "Average downtime hours per order",
        "sql": "SELECT AVG(downtime_hours) FROM production_orders;",
        "dialect": "postgres"
      },
      {
        "title": "Orders placed in the last month",
        "sql": "SELECT * FROM production_orders WHERE order_date >= CURRENT_DATE - INTERVAL '30 days';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "SQL Practitioners",
        "body": "Developers looking to enhance their SQL skills can utilize this dataset to practice various query types, including joins, aggregations, and date filtering, making it ideal for honing their data manipulation abilities."
      },
      {
        "title": "ORM Developers",
        "body": "Software engineers working on ORM frameworks can seed their databases with this synthetic production orders data, allowing them to test relationships, constraints, and retrieval functionalities in a controlled environment."
      },
      {
        "title": "Business Analysts",
        "body": "Analysts can leverage this dataset to understand production dynamics, identify bottlenecks, and optimize inventory levels based on customer demand and production schedules, aiding in strategic decision-making."
      }
    ]
  },
  "counts": {
    "production_orders": 500
  },
  "stats": {
    "production_orders": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "order_date": {
          "nulls": 0,
          "distinct": 350,
          "min": "2022-01-01",
          "max": "2023-12-30"
        },
        "customer_name": {
          "nulls": 0,
          "distinct": 474,
          "min": "Alice Bauer",
          "max": "Zoe Zhang"
        },
        "product_name": {
          "nulls": 0,
          "distinct": 320,
          "min": "Classic Backpack",
          "max": "Wireless Watch"
        },
        "quantity": {
          "nulls": 0,
          "distinct": 390,
          "min": 4,
          "max": 1000
        },
        "inventory_level": {
          "nulls": 0,
          "distinct": 303,
          "min": 0,
          "max": 500
        },
        "material_required": {
          "nulls": 61,
          "distinct": 439
        },
        "employee_skills": {
          "nulls": 43,
          "distinct": 457
        },
        "downtime_hours": {
          "nulls": 55,
          "distinct": 408,
          "min": 0,
          "max": 23.99
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/production_orders.csv",
      "format": "csv",
      "table": "production_orders",
      "key": "datasets/manufacturing-operations-dataset/v1/csv/production_orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/csv/production_orders.csv",
      "bytes": 77625,
      "sha256": "d038d4613882d901be5c2102d847a7097b3d0309c1a1b38a2c53ddc8796efd7f",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "manufacturing-operations-dataset.json",
      "format": "json",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/manufacturing-operations-dataset.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/manufacturing-operations-dataset.json",
      "bytes": 190918,
      "sha256": "2785f2e8d1d574d08943706c14b1379d51a3fe40e333196a1578cd4e197fcc1c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/sql/postgres.sql",
      "bytes": 91316,
      "sha256": "ea7e48b30a25075c2001b6fd6fe8759ffba301ce7dc51175924e0c250fa8b2f2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/sql/mysql.sql",
      "bytes": 91191,
      "sha256": "f6f3f41c6ca7f5b4f2c9c523f9b9045bbb10169c3dc1cd37e6d9a914ea081cec",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/sql/mssql.sql",
      "bytes": 93670,
      "sha256": "256f4ee0730a5e7656a79da4c1e0567258ec9dcbf9d42d56ac1171e4942d94c3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/sql/sqlite.sql",
      "bytes": 91151,
      "sha256": "0819188a135233dc866e7f54a46c7084ef5d722cd375d8a4d11a93962cd58510",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/prisma/seed.ts",
      "bytes": 158601,
      "sha256": "b52ac86c96bbf4f76c4247901b832b785c33f9b4e9ae6f82f20965423b9b06cb",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/manufacturing-operations-dataset/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/manufacturing-operations-dataset/v1/django/fixtures.json",
      "bytes": 217830,
      "sha256": "29358a95f13ef86c7b4edd66b8d87227e2f6c88cb648d548a4baaa4c564f48c7",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788733994830,
  "updatedAt": 1788733994830
}
