{
  "format": "dataset-manifest/1",
  "slug": "production-trends-data",
  "version": 1,
  "seed": "production-trends-data:1",
  "spec": {
    "format": "dataset/1",
    "slug": "production-trends-data",
    "name": "Production Trends Data",
    "tagline": "Machinery performance, product specs, workforce productivity, and production runs from a manufacturing sector operation.",
    "description": "Machinery operates at peak performance to ensure products are manufactured efficiently and meet quality standards. The workforce drives productivity, contributing to consistent output across various production runs, while supply chain logistics handle the materials needed for manufacturing. Anomalies such as machinery breakdowns are recorded, providing valuable insight into potential improvements and preventive measures. Seasonal spikes in production activity demonstrate the responsiveness of the manufacturing process to market demands, highlighting the dynamic nature of this operation.\n\nEach row in the machinery table details specific pieces of equipment, including their specifications, operational status, and any recorded malfunctions. The products table contains information about the different items produced, encompassing their features, classifications, and associated machinery used in their manufacturing. The workforce table profiles employees, offering data on their roles, productivity metrics, and training levels. Production runs capture the specifics of manufacturing batches, including output volumes, timeframes, and any anomalies. Finally, the supply chain table tracks the sourcing of materials, detailing suppliers, inventory levels, and logistics timelines.\n\nBy joining these tables, users can analyze the interplay between machinery performance and production quality, assess workforce efficiency, and scrutinize supply chain reliability. Questions such as whether machinery breakdowns correlate with dips in production output or how workforce productivity affects manufacturing timelines can be explored effectively. This synthetic dataset provides a rich resource for practicing queries and data analysis, enabling developers to hone their skills in a real-world context while working with a structured dataset.",
    "domain": "manufacturing",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "manufacturing",
      "production",
      "efficiency",
      "workforce",
      "quality control",
      "logistics",
      "analytics",
      "synthetic"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "machinery": {
        "description": "This table records the machinery used in the manufacturing process, including performance metrics and potential issues. Each row corresponds to a specific machine with its unique identifier and performance records.",
        "rows": 100,
        "columns": {
          "machinery_id": {
            "kind": "pk",
            "description": "Unique identifier for each machine."
          },
          "machine_type": {
            "kind": "enum",
            "values": [
              "CNC",
              "Lathe",
              "3D Printer",
              "Milling"
            ],
            "description": "Type of machinery used."
          },
          "last_maintenance": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date of the last maintenance performed.",
            "nullable": true,
            "when": {
              "column": "machine_type",
              "in": [
                "CNC",
                "Lathe"
              ]
            },
            "trend": "seasonal"
          },
          "performance_rating": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Performance rating of the machinery, between 0 and 100.",
            "nullable": true,
            "when": {
              "column": "machine_type",
              "in": [
                "3D Printer",
                "Milling"
              ]
            }
          }
        }
      },
      "products": {
        "description": "This table contains information about the products manufactured, detailing specifications and quality metrics. Each product is linked to specific production runs.",
        "rows": 150,
        "columns": {
          "product_id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "product_name": {
            "kind": "words",
            "min": 2,
            "max": 5,
            "description": "Name of the product."
          },
          "specification": {
            "kind": "sentence",
            "description": "Technical specifications of the product."
          },
          "quality_score": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Quality score of the product, measured from 0 to 100."
          }
        }
      },
      "workforce": {
        "description": "This table tracks the workforce involved in manufacturing processes, including productivity metrics and attendance records. Each row represents a worker's performance and their assigned machinery.",
        "rows": 200,
        "columns": {
          "worker_id": {
            "kind": "pk",
            "description": "Unique identifier for each worker."
          },
          "worker_name": {
            "kind": "fullName",
            "description": "Full name of the worker."
          },
          "productivity_score": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Productivity score of the worker, measured from 0 to 100."
          },
          "attendance_rate": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Attendance rate of the worker, a value between 0 and 1."
          }
        }
      },
      "production_runs": {
        "description": "This table records the production runs, linking machinery, products, and workforce involved in each run. It captures the performance and any anomalies during production.",
        "rows": {
          "per": "machinery",
          "via": "machinery_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "run_id": {
            "kind": "pk",
            "description": "Unique identifier for each production run."
          },
          "machinery_id": {
            "kind": "fk",
            "ref": "machinery.machinery_id",
            "description": "Identifier for the machinery used in this production run."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.product_id",
            "description": "Identifier for the product produced during this run."
          },
          "worker_id": {
            "kind": "fk",
            "ref": "workforce.worker_id",
            "description": "Identifier for the worker responsible for this production run."
          },
          "start_time": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Start time of the production run.",
            "dayProfile": "business",
            "trend": "growing"
          },
          "end_time": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "End time of the production run.",
            "dayProfile": "business"
          },
          "anomaly_reported": {
            "kind": "bool",
            "trueRate": 0.1,
            "description": "Indicates whether an anomaly was reported during the production run."
          }
        }
      },
      "supply_chain": {
        "description": "This table captures logistics and supply chain metrics, detailing the suppliers, delivery times, and material quality. It links to products and tracks the supply chain efficiency.",
        "rows": 80,
        "columns": {
          "supply_id": {
            "kind": "pk",
            "description": "Unique identifier for each supply chain entry."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.product_id",
            "description": "Identifier for the product supplied."
          },
          "supplier_name": {
            "kind": "words",
            "min": 2,
            "max": 4,
            "description": "Name of the supplier."
          },
          "delivery_time": {
            "kind": "int",
            "min": 1,
            "max": 30,
            "description": "Delivery time in days."
          },
          "material_quality": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Quality score of the supplied materials, from 0 to 100."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "How does machinery performance impact production efficiency?",
      "What is the relationship between workforce productivity and product quality?",
      "Which suppliers provide the highest quality materials?",
      "How often do machinery breakdowns occur during high-demand seasons?",
      "What trends can be observed in production runs over time?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Production Runs with Machinery",
        "sql": "SELECT pr.run_id, m.machine_type FROM production_runs pr JOIN machinery m ON pr.machinery_id = m.machinery_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Product Quality by Worker",
        "sql": "SELECT w.worker_name, AVG(p.quality_score) as avg_quality FROM workforce w JOIN production_runs pr ON w.worker_id = pr.worker_id JOIN products p ON pr.product_id = p.product_id GROUP BY w.worker_name;",
        "dialect": "postgres"
      },
      {
        "title": "Count Anomalies in Production Runs",
        "sql": "SELECT COUNT(*) FROM production_runs WHERE anomaly_reported = TRUE;",
        "dialect": "postgres"
      },
      {
        "title": "Average Delivery Time by Supplier",
        "sql": "SELECT supplier_name, AVG(delivery_time) as avg_delivery_time FROM supply_chain GROUP BY supplier_name;",
        "dialect": "postgres"
      },
      {
        "title": "Production Trends Over Time",
        "sql": "SELECT date_trunc('month', start_time) as month, COUNT(*) as production_count FROM production_runs GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Manufacturing Analytics",
        "body": "Manufacturing analysts can use this dataset to explore relationships between machinery performance and production efficiency. By analyzing the data, they can identify trends that help optimize machinery maintenance schedules, thereby reducing downtime and increasing overall productivity."
      },
      {
        "title": "Educational Purposes",
        "body": "Instructors can leverage this dataset in educational settings to teach students about data analytics and SQL queries within the context of manufacturing operations. Students will gain hands-on experience in querying complex datasets, drawing insights that are relevant to real-world manufacturing challenges."
      },
      {
        "title": "Supply Chain Management",
        "body": "Supply chain managers can utilize this dataset to evaluate the quality of materials supplied and their impact on product quality. By analyzing supplier performance, they can make informed decisions about vendor selection and inventory management, enhancing the overall supply chain efficiency."
      },
      {
        "title": "Workforce Productivity Analysis",
        "body": "HR professionals can explore workforce productivity scores across different production runs. By correlating this data with production efficiency and quality metrics, they can develop strategies to improve employee performance and satisfaction in the manufacturing environment."
      }
    ]
  },
  "counts": {
    "machinery": 100,
    "products": 150,
    "supply_chain": 80,
    "workforce": 200,
    "production_runs": 173
  },
  "stats": {
    "machinery": {
      "rows": 100,
      "columns": {
        "machinery_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "machine_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "3D Printer",
          "max": "Milling"
        },
        "last_maintenance": {
          "nulls": 48,
          "distinct": 51,
          "min": "2020-01-19",
          "max": "2023-12-19"
        },
        "performance_rating": {
          "nulls": 52,
          "distinct": 48,
          "min": 1.57,
          "max": 98.59
        }
      }
    },
    "products": {
      "rows": 150,
      "columns": {
        "product_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "product_name": {
          "nulls": 0,
          "distinct": 150
        },
        "specification": {
          "nulls": 0,
          "distinct": 150
        },
        "quality_score": {
          "nulls": 0,
          "distinct": 149,
          "min": 0.24,
          "max": 99.71
        }
      }
    },
    "workforce": {
      "rows": 200,
      "columns": {
        "worker_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "worker_name": {
          "nulls": 0,
          "distinct": 196,
          "min": "Alice Demir",
          "max": "Zoe Walker"
        },
        "productivity_score": {
          "nulls": 0,
          "distinct": 199,
          "min": 0.23,
          "max": 97.77
        },
        "attendance_rate": {
          "nulls": 0,
          "distinct": 86,
          "min": 0.01,
          "max": 0.99
        }
      }
    },
    "production_runs": {
      "rows": 173,
      "columns": {
        "run_id": {
          "nulls": 0,
          "distinct": 173,
          "min": 1,
          "max": 173
        },
        "machinery_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "product_id": {
          "nulls": 0,
          "distinct": 104,
          "min": 1,
          "max": 150
        },
        "worker_id": {
          "nulls": 0,
          "distinct": 118,
          "min": 1,
          "max": 197
        },
        "start_time": {
          "nulls": 0,
          "distinct": 173,
          "min": "2022-01-01 14:33:49",
          "max": "2023-12-31 10:48:14"
        },
        "end_time": {
          "nulls": 0,
          "distinct": 173,
          "min": "2022-01-02 10:47:17",
          "max": "2023-12-31 12:01:34"
        },
        "anomaly_reported": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "supply_chain": {
      "rows": 80,
      "columns": {
        "supply_id": {
          "nulls": 0,
          "distinct": 80,
          "min": 1,
          "max": 80
        },
        "product_id": {
          "nulls": 0,
          "distinct": 64,
          "min": 1,
          "max": 149
        },
        "supplier_name": {
          "nulls": 0,
          "distinct": 80
        },
        "delivery_time": {
          "nulls": 0,
          "distinct": 26,
          "min": 1,
          "max": 30
        },
        "material_quality": {
          "nulls": 0,
          "distinct": 80,
          "min": 1.37,
          "max": 99.72
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/machinery.csv",
      "format": "csv",
      "table": "machinery",
      "key": "datasets/production-trends-data/v1/csv/machinery.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/csv/machinery.csv",
      "bytes": 2139,
      "sha256": "6204ac94c83e3f3a0a873b00c841c12877013374358e09be5364f170f6719436",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/production-trends-data/v1/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/csv/products.csv",
      "bytes": 13554,
      "sha256": "2f386bc41b02c78bba99c864533f0dd8b5c4bc039de2874511050985f74ab8d9",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/supply_chain.csv",
      "format": "csv",
      "table": "supply_chain",
      "key": "datasets/production-trends-data/v1/csv/supply_chain.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/csv/supply_chain.csv",
      "bytes": 3012,
      "sha256": "d3dff8eaa96a489fe2c5d7fcfa314daec36c7e0e54b8c99da6dd3e641331e51e",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/workforce.csv",
      "format": "csv",
      "table": "workforce",
      "key": "datasets/production-trends-data/v1/csv/workforce.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/csv/workforce.csv",
      "bytes": 5561,
      "sha256": "9773c136509b8809cd5ed766f11877ca3cfc374a2fee41ee9867b4f13858c3a8",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/production_runs.csv",
      "format": "csv",
      "table": "production_runs",
      "key": "datasets/production-trends-data/v1/csv/production_runs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/csv/production_runs.csv",
      "bytes": 10429,
      "sha256": "4e272ea8b775ad26b1a7d6f3b28d4f8bfc740fd1ff3987f46e5d998169ec8d14",
      "rows": 173,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "production-trends-data.json",
      "format": "json",
      "table": null,
      "key": "datasets/production-trends-data/v1/production-trends-data.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/production-trends-data.json",
      "bytes": 122933,
      "sha256": "6bfd858358a9fc8d6a6028ee1e96181d52e1ed22f7a0c3d492557f5f9473b992",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/production-trends-data/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/sql/postgres.sql",
      "bytes": 47049,
      "sha256": "e62e6a9f0a9ed0b05dbd36558da2dcf6f31c3849a506b50b5ebfc25cd799937f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/production-trends-data/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/sql/mysql.sql",
      "bytes": 45727,
      "sha256": "157569b200b0dce6a7c0358542faf28badc5297130f0c031b0a97ef2378f49e0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/production-trends-data/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/sql/mssql.sql",
      "bytes": 47144,
      "sha256": "7650b07e0887d08f323ac240242888f3d9812655397fb856885baf22ab60f8da",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/production-trends-data/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/sql/sqlite.sql",
      "bytes": 45498,
      "sha256": "11ea08fafcba5ec79306b53e90a0314387d593f46dec36635eed8ffe77730ed3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/production-trends-data/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/prisma/seed.ts",
      "bytes": 104626,
      "sha256": "14fe55f8a872522c6dd8649efd03b176a2f7a5456524918bcaf1849de7007148",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/production-trends-data/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/production-trends-data/v1/django/fixtures.json",
      "bytes": 150840,
      "sha256": "b2f9e15ead93dfcc6c7cba1fc71d8f5cfd35ca11169490e035eba9f0dbd4bb7b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734170510,
  "updatedAt": 1788734170510
}
