{
  "format": "dataset-manifest/1",
  "slug": "financial-flow-insights",
  "version": 3,
  "seed": "financial-flow-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "financial-flow-insights",
    "name": "Financial Flow Insights",
    "tagline": "Employee payments, bank transactions, payroll deductions, and vendor interactions in an HR financial environment.",
    "description": "Employees work diligently to ensure that all financial transactions related to compensation and business expenses are processed accurately and timely. They monitor payments made to staff and vendors, ensuring that all owed amounts are settled according to contractual obligations. The operations are facilitated by various records that capture essential details about each employee, including their salaries, corresponding payroll deductions, and interactions with external vendors, thereby maintaining a comprehensive financial ecosystem.\n\nEach row in the employees table represents an individual staff member, comprising their unique identifiers, roles, and compensation details. The payments table outlines the monetary disbursements made to employees and vendors, detailing the amounts, dates, and purposes of each transaction. Bank transactions record the actual flow of funds, linking closely to the payments made, while payroll deductions capture specifics about any withholdings from salaries, such as taxes or benefits. Lastly, the vendors table documents the third-party entities providing services or products, highlighting their payment terms and any relevant contractual obligations.\n\nThis interconnected structure allows for various queries that uncover valuable insights. For example, developers can analyze payment trends, evaluate the efficiency of payroll processes, and identify discrepancies in financial reporting. They can also explore how vendor payments correlate with overall employee satisfaction or operational costs. Practicing on this data provides opportunities to work with relational databases, facilitating joins and aggregations that yield meaningful outputs.\n\nThis dataset is synthetic, designed to offer a realistic practice environment while maintaining data confidentiality. By diving into these financial flow insights, users can sharpen their analytical skills and gain practical experience in handling HR-related financial data.",
    "domain": "hr",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "financial transactions",
      "HR management",
      "payments",
      "expenses",
      "vendors",
      "collaborators",
      "budgeting",
      "insights"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "employees": {
        "description": "This table contains details about employees, including their roles and departments. Each employee can have multiple financial interactions.",
        "rows": 150,
        "columns": {
          "employee_id": {
            "kind": "pk",
            "description": "Unique identifier for each employee."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the employee."
          },
          "department": {
            "kind": "enum",
            "values": [
              "HR",
              "Finance",
              "IT",
              "Marketing"
            ],
            "description": "Department the employee belongs to.",
            "weights": [
              5,
              3,
              2,
              1
            ]
          },
          "position": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Job title or position of the employee.",
            "nullable": true,
            "pool": [
              "manager",
              "analyst",
              "director",
              "coordinator",
              "specialist",
              "consultant",
              "assistant",
              "executive",
              "lead",
              "officer",
              "administrator",
              "representative",
              "developer",
              "strategist",
              "engineer",
              "associate",
              "technician",
              "clerk",
              "supervisor",
              "researcher",
              "trainer"
            ]
          }
        }
      },
      "payments": {
        "description": "This table records payments made to employees, including salaries and bonuses, linked to the employees table.",
        "rows": 300,
        "columns": {
          "payment_id": {
            "kind": "pk",
            "description": "Unique identifier for each payment."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.employee_id",
            "description": "Reference to the employee receiving the payment."
          },
          "amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 10000,
            "scale": 2,
            "description": "The amount of the payment.",
            "distribution": "long-tail"
          },
          "payment_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date the payment was made.",
            "trend": "growing"
          }
        },
        "via": "employee_id"
      },
      "bank_transactions": {
        "description": "This table logs all bank transactions relevant to the organization, including deposits and withdrawals.",
        "rows": 200,
        "columns": {
          "transaction_id": {
            "kind": "pk",
            "description": "Unique identifier for each bank transaction."
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "deposit",
              "withdrawal"
            ],
            "description": "Type of bank transaction.",
            "weights": [
              7,
              3
            ]
          },
          "amount": {
            "kind": "decimal",
            "min": 50,
            "max": 5000,
            "scale": 2,
            "description": "The amount of the transaction.",
            "nullable": true,
            "when": {
              "column": "transaction_type",
              "in": [
                "deposit"
              ]
            },
            "distribution": "long-tail"
          },
          "transaction_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date the transaction occurred.",
            "trend": "seasonal"
          }
        }
      },
      "payroll_deductions": {
        "description": "This table details payroll deductions applied to employee payments, including taxes and benefits.",
        "rows": 250,
        "columns": {
          "deduction_id": {
            "kind": "pk",
            "description": "Unique identifier for each deduction."
          },
          "employee_id": {
            "kind": "fk",
            "ref": "employees.employee_id",
            "description": "Reference to the employee associated with the deduction."
          },
          "deduction_type": {
            "kind": "enum",
            "values": [
              "tax",
              "benefit"
            ],
            "description": "Type of payroll deduction.",
            "weights": [
              6,
              4
            ]
          },
          "amount": {
            "kind": "decimal",
            "min": 50,
            "max": 1500,
            "scale": 2,
            "description": "The amount deducted from the employee's salary.",
            "nullable": true,
            "when": {
              "column": "deduction_type",
              "in": [
                "tax"
              ]
            },
            "distribution": "long-tail"
          },
          "deduction_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date the deduction was processed.",
            "trend": "growing"
          }
        },
        "via": "employee_id"
      },
      "vendors": {
        "description": "This table contains information about vendors that provide services or products to the organization.",
        "rows": 100,
        "columns": {
          "vendor_id": {
            "kind": "pk",
            "description": "Unique identifier for each vendor."
          },
          "company_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "The name of the vendor company.",
            "pool": [
              "solutions",
              "services",
              "technologies",
              "consulting",
              "systems",
              "group",
              "partners",
              "analytics",
              "resources",
              "development",
              "international",
              "management",
              "holdings",
              "ventures",
              "capital",
              "network",
              "design",
              "software",
              "strategies",
              "infrastructure",
              "innovation"
            ]
          },
          "contact_person": {
            "kind": "fullName",
            "description": "Contact person at the vendor company.",
            "nullable": true
          },
          "contact_email": {
            "kind": "email",
            "from": "contact_person",
            "description": "Email address of the contact person.",
            "nullable": true
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "categorical",
      "self-referencing"
    ],
    "analysisQuestions": [
      "What are the most common payroll deduction types and their average amounts?",
      "How do payment amounts vary across different departments?",
      "What patterns can be observed in bank transactions over the year?",
      "Which vendors are most frequently transacted with, and what is the average transaction amount?",
      "How do payment frequencies align with employee roles?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Payments with Employees",
        "sql": "SELECT e.full_name, p.amount FROM employees e JOIN payments p ON e.employee_id = p.employee_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Payroll Deductions by Type",
        "sql": "SELECT deduction_type, AVG(amount) FROM payroll_deductions GROUP BY deduction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Monthly Payment Summary",
        "sql": "SELECT DATE_TRUNC('month', payment_date) AS month, SUM(amount) FROM payments GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Bank Transaction Trends",
        "sql": "SELECT transaction_type, COUNT(*) AS transaction_count FROM bank_transactions GROUP BY transaction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Vendor Transaction Analysis",
        "sql": "SELECT v.company_name, SUM(pt.amount) FROM vendors v JOIN payments pt ON v.vendor_id = pt.vendor_id GROUP BY v.company_name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "HR Training Sessions",
        "body": "HR managers can use this dataset to train new team members on financial management practices. By exploring the data, trainees can learn how to analyze payroll deductions and understand the impact of various financial transactions on employee compensation."
      },
      {
        "title": "Budget Strategy Workshops",
        "body": "Finance teams can utilize this dataset in workshops aimed at developing budgeting strategies. By analyzing the patterns of payments and deductions, teams can identify areas for cost-saving measures and better financial planning."
      },
      {
        "title": "Vendor Management Optimization",
        "body": "Procurement specialists can leverage this dataset to enhance vendor management processes. By examining transaction data, they can identify the most frequently engaged vendors and negotiate better terms based on historical transaction volumes."
      },
      {
        "title": "Performance Analysis",
        "body": "Data analysts in HR can employ this dataset to conduct performance analysis regarding employee compensation. By correlating payments with employee roles and departments, they can obtain insights into compensation equity and competitiveness."
      }
    ]
  },
  "counts": {
    "bank_transactions": 200,
    "employees": 150,
    "payments": 300,
    "payroll_deductions": 250,
    "vendors": 100
  },
  "stats": {
    "employees": {
      "rows": 150,
      "columns": {
        "employee_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "full_name": {
          "nulls": 0,
          "distinct": 150,
          "min": "Alice Shah",
          "max": "Zara Zhang"
        },
        "department": {
          "nulls": 0,
          "distinct": 4,
          "min": "Finance",
          "max": "Marketing"
        },
        "position": {
          "nulls": 11,
          "distinct": 109
        }
      }
    },
    "payments": {
      "rows": 300,
      "columns": {
        "payment_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 130,
          "min": 1,
          "max": 150
        },
        "amount": {
          "nulls": 0,
          "distinct": 300,
          "min": 1000,
          "max": 9957.4
        },
        "payment_date": {
          "nulls": 0,
          "distinct": 204,
          "min": "2023-01-06",
          "max": "2023-12-31"
        }
      }
    },
    "bank_transactions": {
      "rows": 200,
      "columns": {
        "transaction_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "deposit",
          "max": "withdrawal"
        },
        "amount": {
          "nulls": 65,
          "distinct": 134,
          "min": 50.06,
          "max": 4874.2
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 147,
          "min": "2023-01-02",
          "max": "2023-12-27"
        }
      }
    },
    "payroll_deductions": {
      "rows": 250,
      "columns": {
        "deduction_id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "employee_id": {
          "nulls": 0,
          "distinct": 118,
          "min": 1,
          "max": 150
        },
        "deduction_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "benefit",
          "max": "tax"
        },
        "amount": {
          "nulls": 101,
          "distinct": 149,
          "min": 51.92,
          "max": 1458.82
        },
        "deduction_date": {
          "nulls": 0,
          "distinct": 179,
          "min": "2023-01-01",
          "max": "2023-12-31"
        }
      }
    },
    "vendors": {
      "rows": 100,
      "columns": {
        "vendor_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "company_name": {
          "nulls": 0,
          "distinct": 82
        },
        "contact_person": {
          "nulls": 11,
          "distinct": 89,
          "min": "Alice Demir",
          "max": "Zoe Singh"
        },
        "contact_email": {
          "nulls": 18,
          "distinct": 82
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/bank_transactions.csv",
      "format": "csv",
      "table": "bank_transactions",
      "key": "datasets/financial-flow-insights/v3/csv/bank_transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/csv/bank_transactions.csv",
      "bytes": 6009,
      "sha256": "56d11b0dac0ee4edeebae299a9720aa648b9db384a69a14024db272e49a1238a",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employees.csv",
      "format": "csv",
      "table": "employees",
      "key": "datasets/financial-flow-insights/v3/csv/employees.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/csv/employees.csv",
      "bytes": 6011,
      "sha256": "dc3a273c583a1f13baab9dd8d6617228ea0c403f185fa3d96bcfef5cf7fed5fa",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/financial-flow-insights/v3/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/csv/payments.csv",
      "bytes": 8114,
      "sha256": "1cd292906183e0548013fd2b0119a47a9013b0a47bf3550c21ab1d1f0534b277",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payroll_deductions.csv",
      "format": "csv",
      "table": "payroll_deductions",
      "key": "datasets/financial-flow-insights/v3/csv/payroll_deductions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/csv/payroll_deductions.csv",
      "bytes": 7314,
      "sha256": "139dcb6d5b58aac51de40225dbc77b71a87ea3c23300063a3049dc3b09c9f074",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/financial-flow-insights/v3/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/csv/vendors.csv",
      "bytes": 5632,
      "sha256": "f0236909be5a68dd2924cfb4e9dfbd505eb8ce76c242b19925143778996df258",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "financial-flow-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/financial-flow-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/financial-flow-insights.json",
      "bytes": 142107,
      "sha256": "7752b5de70059eaca943ed54a2802afe5d375f4758d460dce585bd872e6e7972",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/sql/postgres.sql",
      "bytes": 49697,
      "sha256": "b3485c06d35b4136b5ffc3219c38c07d651a188eeeb43f8b78b3c98bd6841b33",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/sql/mysql.sql",
      "bytes": 49028,
      "sha256": "d3c11a89503d2fa5ddc3f7a8daf8f6a4204981cd923526d787233973bd968060",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/sql/mssql.sql",
      "bytes": 51289,
      "sha256": "2e531bf93973f4684155a39cff9ba880675979574affdadcc8e1356a67fe1278",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/sql/sqlite.sql",
      "bytes": 48857,
      "sha256": "e118c0deb69507f15746c51988891999d33db91fe916fe12f2ce93f9118cae76",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/prisma/seed.ts",
      "bytes": 114294,
      "sha256": "09f9c8dc899109e231bd543e7ff62b03375ca59cc099fef71da6fe693f9e950b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/financial-flow-insights/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-flow-insights/v3/django/fixtures.json",
      "bytes": 180135,
      "sha256": "ea165dfd64b7c75fd9c67da671a19bb919480ba97efeace7d4ba51bfbb5940ef",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767954678,
  "updatedAt": 1788783926117
}
