{
  "format": "dataset-manifest/1",
  "slug": "financial-transaction-insights",
  "version": 4,
  "seed": "financial-transaction-insights:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "financial-transaction-insights",
    "name": "Financial Transaction Insights",
    "tagline": "A synthetic dataset for analyzing financial transactions and budgets in businesses.",
    "description": "Businesses track invoices, payments, tax entries, employee expenses, and budgets to maintain financial health and operational efficiency. Each transaction offers insight into the flow of money, detailing how resources are allocated and spent. Employees submit expense reports, which are contrasted against established budgets, while invoices and payments represent the exchange of goods and services. Tax entries capture various financial obligations that a company must adhere to, ensuring compliance and accurate reporting. \n\nIn this dataset, the 'invoices' table records details of billed amounts, due dates, and associated clients. The 'payments' table reflects amounts received against those invoices. 'Tax_entries' provide necessary information for calculating tax liabilities, linking to various transactions within the invoices and payments. 'employee_expenses' detail costs incurred by employees during business operations, often needing approval against budgets, which are documented in the 'budgets' table—showing planned versus actual spending by department or project. Together, these tables create a robust framework for understanding financial transactions.\n\nThe relationships among these tables allow developers to query intricate financial scenarios. For instance, one can analyze how employee expenses affect overall budget adherence or explore patterns in invoice payments to optimize cash flow. Questions such as, \"What percentage of invoices go unpaid after 30 days?\" or, \"How do tax entries correlate with employee expenses across departments?\" can be answered using this dataset. Practicing with this synthetic data provides a safe environment to hone analytical skills without the risk of dealing with sensitive information.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "finance",
      "transactions",
      "invoices",
      "payments",
      "budgets",
      "expenses",
      "tax",
      "analytics",
      "synthetic"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "invoices": {
        "description": "This table records all sales invoices issued by the company. Each invoice is linked to a specific payment and captures essential details such as customer information and invoice status.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each invoice."
          },
          "amount": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "description": "Total amount of the invoice.",
            "distribution": "long-tail"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "paid",
              "overdue"
            ],
            "description": "Current status of the invoice.",
            "weights": [
              8,
              3,
              1
            ]
          },
          "customer_name": {
            "kind": "fullName",
            "description": "Name of the customer to whom the invoice is issued."
          },
          "issue_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date the invoice was issued.",
            "trend": "growing"
          },
          "payment_id": {
            "kind": "fk",
            "ref": "payments.id",
            "nullable": true,
            "description": "Reference to the payment made for this invoice."
          }
        }
      },
      "payments": {
        "description": "This table tracks all payments received against invoices. It captures the amount, payment method, and related invoice details.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each payment."
          },
          "amount": {
            "kind": "decimal",
            "min": 50,
            "max": 10000,
            "scale": 2,
            "description": "Amount paid.",
            "distribution": "long-tail"
          },
          "payment_method": {
            "kind": "enum",
            "values": [
              "credit_card",
              "bank_transfer",
              "cash"
            ],
            "description": "Method used for the payment.",
            "weights": [
              6,
              2,
              1
            ]
          },
          "payment_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date the payment was received.",
            "trend": "growing"
          },
          "invoice_id": {
            "kind": "fk",
            "ref": "invoices.id",
            "description": "Reference to the invoice this payment corresponds to."
          }
        }
      },
      "tax_entries": {
        "description": "This table captures tax entries related to financial transactions. It provides insights into tax obligations and payments made.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each tax entry."
          },
          "amount": {
            "kind": "decimal",
            "min": 10,
            "max": 5000,
            "scale": 2,
            "description": "Amount of tax owed or paid.",
            "distribution": "long-tail"
          },
          "entry_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date of the tax entry.",
            "trend": "seasonal"
          },
          "invoice_id": {
            "kind": "fk",
            "ref": "invoices.id",
            "nullable": true,
            "description": "Reference to the invoice associated with this tax entry."
          },
          "tax_type": {
            "kind": "enum",
            "values": [
              "sales_tax",
              "income_tax",
              "property_tax"
            ],
            "description": "Type of tax entry.",
            "weights": [
              5,
              3,
              2
            ]
          }
        }
      },
      "employee_expenses": {
        "description": "This table records expenses incurred by employees for business purposes. It helps in monitoring spending and budget adherence.",
        "rows": 120,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each expense entry."
          },
          "employee_name": {
            "kind": "fullName",
            "description": "Name of the employee who incurred the expense."
          },
          "amount": {
            "kind": "decimal",
            "min": 20,
            "max": 3000,
            "scale": 2,
            "description": "Total amount of the expense.",
            "distribution": "long-tail"
          },
          "expense_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date the expense was incurred.",
            "trend": "growing"
          },
          "description": {
            "kind": "sentence",
            "min": 5,
            "max": 50,
            "description": "Description of the expense."
          }
        }
      },
      "budgets": {
        "description": "This table outlines budget allocations for various departments within the organization. It aids in tracking spending against planned budgets.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each budget entry."
          },
          "department": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the department for which the budget is allocated.",
            "pool": [
              "Marketing",
              "Sales",
              "Finance",
              "HR",
              "IT",
              "Operations",
              "Legal",
              "Research",
              "Development",
              "CustomerService",
              "Logistics",
              "Administration",
              "Compliance",
              "Product",
              "Support",
              "Training",
              "Strategy",
              "Analytics",
              "Partnerships",
              "Innovation",
              "Quality"
            ]
          },
          "allocated_amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 50000,
            "scale": 2,
            "description": "Total budget allocated to the department.",
            "distribution": "heavy-tail"
          },
          "fiscal_year": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2022-12-31",
            "description": "Fiscal year for the budget."
          },
          "spent_amount": {
            "kind": "decimal",
            "min": 0,
            "max": 50000,
            "scale": 2,
            "description": "Total amount spent from the allocated budget.",
            "distribution": "long-tail"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "nullable",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the average time taken for invoices to be paid?",
      "How do employee expenses vary by department?",
      "What percentage of budget is typically spent by each department?",
      "Which tax types are most frequently recorded and why?",
      "How do payment methods impact the speed of invoice settlement?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Invoices and Payments",
        "sql": "SELECT i.id, i.amount, p.amount AS payment_amount FROM invoices i LEFT JOIN payments p ON i.id = p.invoice_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Payment Delay",
        "sql": "SELECT AVG(p.payment_date - i.issue_date) AS average_delay FROM invoices i JOIN payments p ON i.id = p.invoice_id GROUP BY i.id;",
        "dialect": "postgres"
      },
      {
        "title": "Total Employee Expenses by Department",
        "sql": "SELECT department, SUM(amount) AS total_expenses FROM employee_expenses GROUP BY department;",
        "dialect": "postgres"
      },
      {
        "title": "Tax Entry Analysis",
        "sql": "SELECT tax_type, COUNT(*) AS entry_count FROM tax_entries GROUP BY tax_type;",
        "dialect": "postgres"
      },
      {
        "title": "Budget vs Spending",
        "sql": "SELECT department, allocated_amount, spent_amount FROM budgets;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Analysts",
        "body": "Financial analysts can use this dataset to track and analyze spending patterns across different departments, helping identify areas for cost reduction and better budget management."
      },
      {
        "title": "Software Developers",
        "body": "Developers can utilize this synthetic dataset to seed their financial management applications, ensuring they have realistic data for testing and development purposes."
      },
      {
        "title": "Tax Consultants",
        "body": "Tax consultants may analyze the tax entries to advise businesses on compliance and potential savings, making use of the insights derived from the dataset."
      },
      {
        "title": "Budget Managers",
        "body": "Budget managers can leverage this dataset to monitor department spending against allocated budgets, facilitating more accurate forecasting and resource allocation."
      }
    ]
  },
  "counts": {
    "budgets": 80,
    "employee_expenses": 120,
    "invoices": 200,
    "payments": 150,
    "tax_entries": 100
  },
  "stats": {
    "invoices": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "amount": {
          "nulls": 0,
          "distinct": 200,
          "min": 100.07,
          "max": 9405.07
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "overdue",
          "max": "pending"
        },
        "customer_name": {
          "nulls": 0,
          "distinct": 197,
          "min": "Alice Gomez",
          "max": "Zoe Fischer"
        },
        "issue_date": {
          "nulls": 0,
          "distinct": 176,
          "min": "2022-01-04",
          "max": "2023-12-31"
        },
        "payment_id": {
          "nulls": 18,
          "distinct": 107,
          "min": 1,
          "max": 150
        }
      }
    },
    "payments": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "amount": {
          "nulls": 0,
          "distinct": 150,
          "min": 50.02,
          "max": 9343.67
        },
        "payment_method": {
          "nulls": 0,
          "distinct": 3,
          "min": "bank_transfer",
          "max": "credit_card"
        },
        "payment_date": {
          "nulls": 0,
          "distinct": 129,
          "min": "2022-02-07",
          "max": "2023-12-31"
        },
        "invoice_id": {
          "nulls": 0,
          "distinct": 103,
          "min": 1,
          "max": 199
        }
      }
    },
    "tax_entries": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "amount": {
          "nulls": 0,
          "distinct": 100,
          "min": 10.01,
          "max": 4968.33
        },
        "entry_date": {
          "nulls": 0,
          "distinct": 91,
          "min": "2022-01-03",
          "max": "2023-12-29"
        },
        "invoice_id": {
          "nulls": 11,
          "distinct": 70,
          "min": 2,
          "max": 198
        },
        "tax_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "income_tax",
          "max": "sales_tax"
        }
      }
    },
    "employee_expenses": {
      "rows": 120,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 120,
          "min": 1,
          "max": 120
        },
        "employee_name": {
          "nulls": 0,
          "distinct": 119,
          "min": "Alice Castro",
          "max": "Zoe Novak"
        },
        "amount": {
          "nulls": 0,
          "distinct": 120,
          "min": 20.46,
          "max": 2995.39
        },
        "expense_date": {
          "nulls": 0,
          "distinct": 113,
          "min": "2022-01-19",
          "max": "2023-12-30"
        },
        "description": {
          "nulls": 0,
          "distinct": 120
        }
      }
    },
    "budgets": {
      "rows": 80,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 80,
          "min": 1,
          "max": 80
        },
        "department": {
          "nulls": 0,
          "distinct": 59
        },
        "allocated_amount": {
          "nulls": 0,
          "distinct": 80,
          "min": 1000.01,
          "max": 49010.66
        },
        "fiscal_year": {
          "nulls": 0,
          "distinct": 71,
          "min": "2022-01-05",
          "max": "2022-12-28"
        },
        "spent_amount": {
          "nulls": 0,
          "distinct": 80,
          "min": 48.12,
          "max": 48407.72
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/budgets.csv",
      "format": "csv",
      "table": "budgets",
      "key": "datasets/financial-transaction-insights/v4/csv/budgets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/csv/budgets.csv",
      "bytes": 4011,
      "sha256": "524fce76e914dda52b9694518f35ba4425cf205035f9b8631024e44412d9459a",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/employee_expenses.csv",
      "format": "csv",
      "table": "employee_expenses",
      "key": "datasets/financial-transaction-insights/v4/csv/employee_expenses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/csv/employee_expenses.csv",
      "bytes": 10972,
      "sha256": "fb93d8e83bbf10082491f3c8e9a94e24540f356bcb4ab4d79ce351a00227ae8c",
      "rows": 120,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/financial-transaction-insights/v4/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/csv/invoices.csv",
      "bytes": 9194,
      "sha256": "fa2f4b8372616ac347c94a1c5a505aace24186a60633bba63c5623a945bcca47",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/financial-transaction-insights/v4/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/csv/payments.csv",
      "bytes": 5785,
      "sha256": "682679758bcd7ff13809759d05d1d1a76fb89f4551d3c7d3778227ecfca8ac78",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tax_entries.csv",
      "format": "csv",
      "table": "tax_entries",
      "key": "datasets/financial-transaction-insights/v4/csv/tax_entries.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/csv/tax_entries.csv",
      "bytes": 3690,
      "sha256": "e2eff6852939f76d911ed90c640ef161540cad31101f0e3b08c6f4bcc00d1b84",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "financial-transaction-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/financial-transaction-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/financial-transaction-insights.json",
      "bytes": 110790,
      "sha256": "e8c297b8bb8002b8f335d82d1aa6266c2fe1db41e046c90e88de25ee43a5aebd",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/sql/postgres.sql",
      "bytes": 46310,
      "sha256": "d2b96ce874798003af4badc9778e349276d2977fd5f01c9f66d640a41a744508",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/sql/mysql.sql",
      "bytes": 45745,
      "sha256": "91d4de8ec558f58c081d3bc1fb8bd2c093db4368a6a6630fc98a1d93fc9d553b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/sql/mssql.sql",
      "bytes": 47707,
      "sha256": "d4a7e48c01f412e60b84644e26b92d4e554ed05cfe554796389edadc91ea3481",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/sql/sqlite.sql",
      "bytes": 45579,
      "sha256": "d8eb48fafcd8c37b33b911d680d630738ad42558f07a32032b91fa73b497009e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/prisma/seed.ts",
      "bytes": 88281,
      "sha256": "8d05a545963dba806e7d7f847034e50290b3430cb28a6f32eef48f915161f939",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/financial-transaction-insights/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-insights/v4/django/fixtures.json",
      "bytes": 140336,
      "sha256": "99110d2e087e89ea05c6997337731b938bddf81d4e8ebb2dc58ee4eb8ff7c0c0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768821487,
  "updatedAt": 1792071028470
}
