{
  "format": "dataset-manifest/1",
  "slug": "hr-expense-and-resource-management",
  "version": 3,
  "seed": "hr-expense-and-resource-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "hr-expense-and-resource-management",
    "name": "HR Expense and Resource Management",
    "tagline": "Departments, employees, expense reports, leave requests, and software licenses from an HR management system.",
    "description": "Employees manage various aspects of workforce logistics, overseeing budgets and tracking expenses while administering employee benefits in a busy human resources department. This operation revolves around distinct departments that tackle job postings, expense reports, employee leave requests, and the software licenses necessary to support these functions. The data reflects the everyday transactions that occur within this dynamic environment, highlighting both routine expense reports and leave types alongside specialized software licenses for particular projects and unexpected leave requests, which provide insightful contrasts in the dataset.\n\nThe tables within this dataset interrelate to provide a comprehensive view of HR operation. The 'departments' table captures information about each department, detailing the unique functions and budgets allocated to them. Each department is linked to 'employees,' where each row signifies a specific employee's details, including their role, which ties back to the department they serve. The 'expense_reports' table tracks financial transactions connected to employee activities, allowing for a thorough analysis of spending across departments. Similarly, 'leave_requests' logs the types of leave taken by employees, connecting back to individual employee records while reflecting departmental staffing dynamics. Lastly, the 'software_licenses' table records licenses purchased or allocated to departments and projects, linking back to specific software needs of the employees and their respective departments.\n\nThis dataset answers crucial questions about workforce management, such as how budget allocations influence employee leave, which departments incur the most expenses, and how software licensing aligns with employee productivity. It provides a valuable resource for practitioners to analyze trends in HR expenses and resource management, enabling them to derive insights that can lead to optimized operations. Note that the data is synthetic, created to offer a realistic yet fictional representation of HR processes.",
    "domain": "hr",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "HR",
      "expenses",
      "employee management",
      "leave requests",
      "budget tracking",
      "software licenses",
      "departments",
      "job postings"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "departments": {
        "description": "This table contains information about the different departments in the organization, linking to employees and expense reports.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each department."
          },
          "name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the department.",
            "pool": [
              "finance",
              "marketing",
              "humanresources",
              "it",
              "sales",
              "research",
              "development",
              "operations",
              "legal",
              "administration",
              "customer",
              "support",
              "training",
              "analytics",
              "compliance",
              "strategy",
              "design",
              "project",
              "communications",
              "procurement",
              "quality"
            ]
          },
          "budget": {
            "kind": "decimal",
            "min": 10000,
            "max": 500000,
            "scale": 2,
            "description": "The allocated budget for the department.",
            "nullable": true,
            "distribution": "long-tail"
          }
        }
      },
      "employees": {
        "description": "This table lists all employees, their departments, and their roles within the organization.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each employee."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the employee."
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "description": "References the department to which the employee belongs."
          },
          "role": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The role or job title of the employee.",
            "nullable": true,
            "pool": [
              "manager",
              "analyst",
              "developer",
              "designer",
              "coordinator",
              "assistant",
              "specialist",
              "director",
              "consultant",
              "administrator",
              "executive",
              "officer",
              "representative",
              "engineer",
              "strategist",
              "trainer",
              "researcher",
              "technician",
              "lead",
              "associate",
              "intern"
            ]
          }
        }
      },
      "expense_reports": {
        "description": "This table tracks expenses submitted by employees, detailing the department, amount, and purpose of the expense.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each expense report."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "description": "References the employee who submitted the expense report."
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "description": "References the department associated with the expense."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 10000,
            "scale": 2,
            "description": "The amount claimed in the expense report.",
            "distribution": "long-tail"
          },
          "purpose": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "A brief description of the expense purpose.",
            "nullable": true,
            "pool": [
              "travel",
              "training",
              "supplies",
              "equipment",
              "entertainment",
              "marketing",
              "consulting",
              "research",
              "maintenance",
              "utilities",
              "meals",
              "software",
              "subscriptions",
              "printing",
              "transportation",
              "office",
              "events",
              "professional",
              "services",
              "communication",
              "development"
            ]
          }
        }
      },
      "leave_requests": {
        "description": "This table holds details of leave requests made by employees, linking to their respective departments and employees.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each leave request."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.id",
            "description": "References the employee requesting leave."
          },
          "leave_type": {
            "kind": "enum",
            "values": [
              "sick",
              "vacation",
              "personal",
              "unpaid"
            ],
            "description": "The type of leave requested.",
            "weights": [
              6,
              4,
              2,
              1
            ]
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Start date of the leave.",
            "nullable": true,
            "when": {
              "column": "leave_type",
              "in": [
                "sick",
                "vacation",
                "personal",
                "unpaid"
              ]
            },
            "trend": "seasonal"
          },
          "end_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "End date of the leave.",
            "nullable": true,
            "when": {
              "column": "leave_type",
              "in": [
                "sick",
                "vacation",
                "personal",
                "unpaid"
              ]
            },
            "trend": "seasonal"
          }
        }
      },
      "software_licenses": {
        "description": "This table tracks software licenses associated with departments, including purchase details and renewal dates.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each software license."
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "description": "References the department that owns the software license."
          },
          "software_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the software.",
            "pool": [
              "zoom",
              "slack",
              "microsoft",
              "google",
              "salesforce",
              "jira",
              "trello",
              "asana",
              "adobe",
              "sap",
              "oracle",
              "quickbooks",
              "hubspot",
              "tableau",
              "notion",
              "evernote",
              "mailchimp",
              "canvas",
              "wordpress",
              "dropbox",
              "github"
            ]
          },
          "purchase_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the software was purchased.",
            "nullable": true,
            "trend": "growing"
          },
          "renewal_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31",
            "description": "Date when the software license needs to be renewed.",
            "nullable": true,
            "trend": "growing"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average expense reported by employees in each department?",
      "Which leave type is most commonly requested by employees?",
      "How do software license costs impact departmental budgets?",
      "What are the peak months for employee leave requests?",
      "Are there any correlations between employee roles and the number of leave requests?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Employees and Departments",
        "sql": "SELECT e.full_name, d.name FROM employees e JOIN departments d ON e.department_id = d.id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Expenses by Department",
        "sql": "SELECT d.name, AVG(er.amount) AS average_expense FROM expense_reports er JOIN departments d ON er.department_id = d.id GROUP BY d.name;",
        "dialect": "postgres"
      },
      {
        "title": "Leave Requests Count by Type",
        "sql": "SELECT leave_type, COUNT(*) AS request_count FROM leave_requests GROUP BY leave_type;",
        "dialect": "postgres"
      },
      {
        "title": "Total Software License Costs by Department",
        "sql": "SELECT d.name, SUM(er.amount) AS total_licenses FROM software_licenses sl JOIN departments d ON sl.department_id = d.id GROUP BY d.name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Reporting",
        "body": "HR analysts can use this dataset to generate various reports on employee expenses, leave patterns, and software licensing costs, providing insights into departmental performance and resource allocation."
      },
      {
        "title": "Budget Planning",
        "body": "Finance teams can leverage the expense and budget data to forecast future spending, ensuring that departments stay within their financial limits while making informed decisions about resource allocation."
      },
      {
        "title": "Operational Efficiency",
        "body": "HR managers can analyze leave requests and expense reports to identify trends, helping them to optimize scheduling and ensure adequate coverage during peak leave times."
      },
      {
        "title": "Software License Management",
        "body": "IT departments can track software licenses across departments to manage renewals efficiently and ensure compliance, while also assessing the cost implications on departmental budgets."
      }
    ]
  },
  "counts": {
    "departments": 50,
    "employees": 200,
    "expense_reports": 400,
    "leave_requests": 300,
    "software_licenses": 100
  },
  "stats": {
    "departments": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "name": {
          "nulls": 0,
          "distinct": 46
        },
        "budget": {
          "nulls": 5,
          "distinct": 45,
          "min": 10218.47,
          "max": 469943.2
        }
      }
    },
    "employees": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 196,
          "min": "Amir Lopez",
          "max": "Zoe Wright"
        },
        "department_id": {
          "nulls": 0,
          "distinct": 48,
          "min": 1,
          "max": 50
        },
        "role": {
          "nulls": 26,
          "distinct": 127
        }
      }
    },
    "expense_reports": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 174,
          "min": 1,
          "max": 200
        },
        "department_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "amount": {
          "nulls": 0,
          "distinct": 400,
          "min": 10.62,
          "max": 9994.34
        },
        "purpose": {
          "nulls": 41,
          "distinct": 254
        }
      }
    },
    "leave_requests": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 152,
          "min": 1,
          "max": 200
        },
        "leave_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "personal",
          "max": "vacation"
        },
        "start_date": {
          "nulls": 0,
          "distinct": 198,
          "min": "2023-01-01",
          "max": "2023-12-31"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 192,
          "min": "2023-01-02",
          "max": "2023-12-31"
        }
      }
    },
    "software_licenses": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "department_id": {
          "nulls": 0,
          "distinct": 45,
          "min": 1,
          "max": 50
        },
        "software_name": {
          "nulls": 0,
          "distinct": 81
        },
        "purchase_date": {
          "nulls": 8,
          "distinct": 87,
          "min": "2020-01-12",
          "max": "2023-12-30"
        },
        "renewal_date": {
          "nulls": 11,
          "distinct": 83,
          "min": "2023-01-15",
          "max": "2025-12-26"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/departments.csv",
      "format": "csv",
      "table": "departments",
      "key": "datasets/hr-expense-and-resource-management/v3/csv/departments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/csv/departments.csv",
      "bytes": 1610,
      "sha256": "f194e953883876fab0f7680dcc6cf620d372ed4528c2445457e1e8452708e506",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/hr-expense-and-resource-management/v3/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/csv/employees.csv",
      "bytes": 7119,
      "sha256": "d936ca6beaa41341e8ea95ff507094bd0bc59f7fcac98e90734ed368d647fc9f",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/expense_reports.csv",
      "format": "csv",
      "table": "expense_reports",
      "key": "datasets/hr-expense-and-resource-management/v3/csv/expense_reports.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/csv/expense_reports.csv",
      "bytes": 15228,
      "sha256": "9e4d8ac5c22112550c37db85d265d251dfa3a8f79e83e692ac2efe7ff9eefd5f",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/leave_requests.csv",
      "format": "csv",
      "table": "leave_requests",
      "key": "datasets/hr-expense-and-resource-management/v3/csv/leave_requests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/csv/leave_requests.csv",
      "bytes": 11124,
      "sha256": "e3b36a961ee778c512f8c175d75f4740d01f67b92e154252cfa4ca8bea0c2d35",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/software_licenses.csv",
      "format": "csv",
      "table": "software_licenses",
      "key": "datasets/hr-expense-and-resource-management/v3/csv/software_licenses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/csv/software_licenses.csv",
      "bytes": 4324,
      "sha256": "1569d9f9854307291e5c79f2d862bdabe1f80ec62d8b6e9191f42c9696617570",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "hr-expense-and-resource-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/hr-expense-and-resource-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/hr-expense-and-resource-management.json",
      "bytes": 148965,
      "sha256": "26bcd203c2d151e89c52e9f31b320ecca6a1946f0aa203e36a28080381a1d28c",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/sql/postgres.sql",
      "bytes": 56920,
      "sha256": "934b6ac83d3004da30a571cd06114bc0b25f0c86ea63f7a90f5cd2c4fdf2c5ab",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/sql/mysql.sql",
      "bytes": 56317,
      "sha256": "48ca287d5352a0e3fddd5d7eeda8dc2164ba4536f9644a315c0e310baea19b81",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/sql/mssql.sql",
      "bytes": 58644,
      "sha256": "7ccfed89877f1ab27acb4bd29de89708c402551642034272a5a7d4b9793be988",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/sql/sqlite.sql",
      "bytes": 56037,
      "sha256": "e9c24f0ae4759495c51a0286da8a49f64b086c33bb170e37ca202a34f4f0d081",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/prisma/seed.ts",
      "bytes": 115472,
      "sha256": "daed0b04225157b4a4fa3216dc6cd11e4040a7c07ba38852d05bac8ef10c4fb9",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/hr-expense-and-resource-management/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hr-expense-and-resource-management/v3/django/fixtures.json",
      "bytes": 196740,
      "sha256": "667e3f4fe2080db133aeb7c694eed963d658f6b332d241a8ad9acd9f26c62391",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766525783,
  "updatedAt": 1788798045350
}
