{
  "format": "dataset-manifest/1",
  "slug": "human-resources-operations",
  "version": 2,
  "seed": "human-resources-operations:1",
  "spec": {
    "format": "dataset/1",
    "slug": "human-resources-operations",
    "name": "Human Resources Operations",
    "tagline": "Employee performance, asset management, customer transactions, and maintenance data from a diverse HR operation.",
    "description": "Employees manage daily operations and interact with customers to enhance service quality and performance. They utilize various company assets to carry out their tasks effectively, ensuring that all operations run smoothly. The data captured in this business reflects employee roles, asset management, customer transactions, maintenance efforts, and associated financial activities such as payments, painting a holistic picture of human resources operations.\n\nThe tables within this dataset interconnect to form a comprehensive view of the business. The 'employees' table contains records of individual employees, detailing their roles and performance metrics. Each employee is linked to 'transactions' through customer interactions, illustrating the impact of their work on service delivery and customer satisfaction. The 'assets' table catalogs the resources available to employees, ranging from office supplies to specialized equipment specific to certain teams. Maintenance records from the 'maintenance' table track the upkeep of these assets, providing insights into resource reliability and operational efficiency. Additionally, customer data in the 'customers' table showcases the clientele being served, allowing for analysis of trends in customer transactions, which can relate back to employee performance and asset utilization.\n\nThis dataset is ideal for exploring questions related to employee efficiency, customer interactions, and resource allocation within an HR context. Practitioners can analyze how different employees perform their tasks, the frequency of asset usage, and how these factors correlate with customer satisfaction and financial transactions. By experimenting with this synthetic data, developers can hone their skills in data analysis, creating queries and visualizations that reveal patterns and insights crucial for optimizing human resources operations.",
    "domain": "hr",
    "shape": "star-schema",
    "useCases": [
      "bi-dashboards",
      "analytics-demo"
    ],
    "keywords": [
      "human resources",
      "employee performance",
      "asset management",
      "customer transactions",
      "maintenance",
      "financial activities"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "employees": {
        "description": "This table contains information about employees working in the organization. Each row represents a unique employee, linking to performance evaluations and departments.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each employee."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the employee."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the employee."
          },
          "department": {
            "kind": "enum",
            "values": [
              "Sales",
              "Marketing",
              "Engineering",
              "HR",
              "Finance"
            ],
            "description": "Department the employee works in.",
            "weights": [
              5,
              3,
              4,
              2,
              1
            ]
          },
          "hire_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the employee was hired.",
            "nullable": true,
            "when": {
              "column": "department",
              "in": [
                "Sales",
                "Marketing",
                "Engineering",
                "HR",
                "Finance"
              ]
            },
            "trend": "growing"
          },
          "performance_score": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Performance score of the employee on a scale of 1 to 10.",
            "nullable": true,
            "distribution": "high"
          }
        }
      },
      "assets": {
        "description": "This table lists the assets utilized by employees in various departments. Each row corresponds to a unique asset that employees can assign to their tasks.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each asset."
          },
          "asset_name": {
            "kind": "productName",
            "description": "Name of the asset.",
            "nullable": true,
            "when": {
              "column": "asset_type",
              "in": [
                "Equipment",
                "Software",
                "Vehicle"
              ]
            }
          },
          "asset_type": {
            "kind": "enum",
            "values": [
              "Equipment",
              "Software",
              "Vehicle"
            ],
            "description": "Type of asset.",
            "weights": [
              6,
              3,
              1
            ]
          },
          "department": {
            "kind": "enum",
            "values": [
              "Sales",
              "Marketing",
              "Engineering",
              "HR",
              "Finance"
            ],
            "description": "Department responsible for the asset.",
            "weights": [
              6,
              4,
              3,
              2,
              1
            ]
          },
          "acquisition_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date the asset was acquired.",
            "nullable": true,
            "trend": "seasonal"
          }
        }
      },
      "customers": {
        "description": "This table captures customer information, linking their transactions to employee interactions. Each row represents a unique customer.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the customer."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the customer."
          },
          "join_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the customer joined.",
            "trend": "growing"
          }
        }
      },
      "transactions": {
        "description": "This table records customer transactions, detailing the interactions between employees and customers. Each row reflects a unique transaction.",
        "rows": 1000,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Foreign key linking to the customer who made the transaction."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "description": "Foreign key linking to the employee who handled the transaction."
          },
          "transaction_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the transaction occurred.",
            "dayProfile": "waking"
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 10000,
            "scale": 2,
            "description": "Amount of money for the transaction.",
            "distribution": "long-tail"
          }
        }
      },
      "maintenance": {
        "description": "This table tracks maintenance activities related to assets, linking them to employees responsible for upkeep. Each row indicates a unique maintenance record.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each maintenance record."
          },
          "asset_id": {
            "kind": "fk",
            "ref": "assets.id",
            "description": "Foreign key linking to the asset being maintained."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "description": "Foreign key linking to the employee responsible for maintenance."
          },
          "maintenance_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when maintenance was performed.",
            "dayProfile": "business"
          },
          "notes": {
            "kind": "sentence",
            "max": 250,
            "description": "Notes regarding the maintenance activity.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average performance score by department?",
      "Which assets are most frequently used by employees?",
      "How do customer transactions vary by employee?",
      "What are the common maintenance issues for different asset types?",
      "How does the number of transactions correlate with employee performance?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Employees and Transactions",
        "sql": "SELECT e.full_name, t.amount FROM employees e JOIN transactions t ON e.id = t.employee_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Performance Score by Department",
        "sql": "SELECT department, AVG(performance_score) FROM employees GROUP BY department;",
        "dialect": "postgres"
      },
      {
        "title": "Count Transactions per Customer",
        "sql": "SELECT c.full_name, COUNT(t.id) FROM customers c LEFT JOIN transactions t ON c.id = t.customer_id GROUP BY c.full_name;",
        "dialect": "postgres"
      },
      {
        "title": "Maintenance Activity Summary",
        "sql": "SELECT a.asset_name, COUNT(m.id) FROM maintenance m JOIN assets a ON m.asset_id = a.id GROUP BY a.asset_name;",
        "dialect": "postgres"
      },
      {
        "title": "Transactions Over Time",
        "sql": "SELECT DATE(transaction_date) AS transaction_day, COUNT(*) FROM transactions GROUP BY transaction_day ORDER BY transaction_day;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Analyst Dashboard",
        "body": "HR analysts can utilize this dataset to build dashboards that track employee performance across departments. By analyzing performance scores and correlating them with asset utilization, they can identify trends and improve resource allocation."
      },
      {
        "title": "Customer Interaction Reports",
        "body": "Customer service managers can generate reports that highlight interactions between employees and customers. By examining transaction data, they can gauge service quality and enhance training programs for employees based on customer feedback."
      },
      {
        "title": "Asset Management Optimization",
        "body": "Facility managers can use this data to monitor asset maintenance activities. By analyzing maintenance records, they can prioritize repairs and ensure that the right assets are available for employee tasks, ultimately improving efficiency."
      },
      {
        "title": "Financial Performance Analysis",
        "body": "Financial analysts can leverage transaction data to assess the organization's revenue streams. By analyzing customer transactions and correlating them with employee performance, they can provide insights into which departments drive the most sales."
      }
    ]
  },
  "counts": {
    "assets": 200,
    "customers": 300,
    "employees": 500,
    "maintenance": 150,
    "transactions": 1000
  },
  "stats": {
    "employees": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "full_name": {
          "nulls": 0,
          "distinct": 486,
          "min": "Alice Baker",
          "max": "Zoe Tanaka"
        },
        "email": {
          "nulls": 0,
          "distinct": 496
        },
        "department": {
          "nulls": 0,
          "distinct": 5,
          "min": "Engineering",
          "max": "Sales"
        },
        "hire_date": {
          "nulls": 0,
          "distinct": 422,
          "min": "2020-01-01",
          "max": "2023-12-30"
        },
        "performance_score": {
          "nulls": 43,
          "distinct": 10,
          "min": 1,
          "max": 10
        }
      }
    },
    "assets": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "asset_name": {
          "nulls": 0,
          "distinct": 159,
          "min": "Classic Backpack",
          "max": "Wireless Umbrella"
        },
        "asset_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "Equipment",
          "max": "Vehicle"
        },
        "department": {
          "nulls": 0,
          "distinct": 5,
          "min": "Engineering",
          "max": "Sales"
        },
        "acquisition_date": {
          "nulls": 25,
          "distinct": 162,
          "min": "2020-01-03",
          "max": "2023-12-26"
        }
      }
    },
    "customers": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 0,
          "distinct": 291,
          "min": "Alice Garcia",
          "max": "Zoe Mendes"
        },
        "email": {
          "nulls": 0,
          "distinct": 295
        },
        "join_date": {
          "nulls": 0,
          "distinct": 274,
          "min": "2020-01-01",
          "max": "2023-12-29"
        }
      }
    },
    "transactions": {
      "rows": 1000,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 287,
          "min": 1,
          "max": 300
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 429,
          "min": 1,
          "max": 500
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 1000,
          "min": "2020-01-01 21:25:27",
          "max": "2023-12-31 13:32:01"
        },
        "amount": {
          "nulls": 0,
          "distinct": 997,
          "min": 1,
          "max": 9978.19
        }
      }
    },
    "maintenance": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "asset_id": {
          "nulls": 0,
          "distinct": 108,
          "min": 1,
          "max": 200
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 133,
          "min": 1,
          "max": 499
        },
        "maintenance_date": {
          "nulls": 0,
          "distinct": 150,
          "min": "2020-01-07 20:01:07",
          "max": "2023-12-25 17:32:27"
        },
        "notes": {
          "nulls": 11,
          "distinct": 139
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/assets.csv",
      "format": "csv",
      "table": "assets",
      "key": "datasets/human-resources-operations/v2/csv/assets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/csv/assets.csv",
      "bytes": 9435,
      "sha256": "479b4552648a9f6901f0b425f0bf147f4c26e7cba0e3a30d7a8b9205e3cfab5f",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/human-resources-operations/v2/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/csv/customers.csv",
      "bytes": 15570,
      "sha256": "56bae5d771e6ef98644fbe46049c56ce97871c6bda989e55910f7e4e4899b07c",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/human-resources-operations/v2/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/csv/employees.csv",
      "bytes": 31066,
      "sha256": "deb8d35fe2ce449569646cb80f34c6914738048486fd4965f499492a2b7dddd9",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance.csv",
      "format": "csv",
      "table": "maintenance",
      "key": "datasets/human-resources-operations/v2/csv/maintenance.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/csv/maintenance.csv",
      "bytes": 12636,
      "sha256": "a158d65a1698f54b650a4ec5049d9b2cc0a5ffbf5abde013a615e0fb12aa34df",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/human-resources-operations/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/csv/transactions.csv",
      "bytes": 39893,
      "sha256": "181edae999b811aa6ae8118817e6d25605d21893d6bc775e2f6dd86b84d443d2",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "human-resources-operations.json",
      "format": "json",
      "table": null,
      "key": "datasets/human-resources-operations/v2/human-resources-operations.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/human-resources-operations.json",
      "bytes": 358040,
      "sha256": "7e117bf4e77ec79a213b64b36359d1a726ee926c87c12aa5c6c858604bb27131",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/human-resources-operations/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/sql/postgres.sql",
      "bytes": 143890,
      "sha256": "8142626a690f8a4b956d7436b8a6a24fb2c78e5db4b3521ea92ba354c0d96cc2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/human-resources-operations/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/sql/mysql.sql",
      "bytes": 143323,
      "sha256": "d4bc517fc01fbe4df65f6c86bad960b69d9d04fec65b9337da207fa4e66b6b1e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/human-resources-operations/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/sql/mssql.sql",
      "bytes": 148625,
      "sha256": "e3457be22d0cbac084da38e7109f52d6d7ee7da291e8c2272ffe0a8dfeaa62ff",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/human-resources-operations/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/sql/sqlite.sql",
      "bytes": 143089,
      "sha256": "c603cdfad0f0b1a68068811c49c90bad3b5245214911e8bfaa4f862bd1a00d5a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/human-resources-operations/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/prisma/seed.ts",
      "bytes": 294830,
      "sha256": "f39e5fc32daa0b4921536f11edee34af3028e677bbc14eadb7a300d040c18088",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/human-resources-operations/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/human-resources-operations/v2/django/fixtures.json",
      "bytes": 453910,
      "sha256": "7bf85e69c458e23a5419fdb6c958205301f5c2006838c86c55a5b15bf62984e4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767513039,
  "updatedAt": 1788784378880
}
