{
  "format": "dataset-manifest/1",
  "slug": "financial-transaction-oversight",
  "version": 3,
  "seed": "financial-transaction-oversight:1",
  "spec": {
    "format": "dataset/1",
    "slug": "financial-transaction-oversight",
    "name": "Financial Transaction Oversight",
    "tagline": "Accounts, journal entries, vendor payments, and budgets tracking financial transactions for fintech organizations.",
    "description": "Organizations in fintech meticulously track and manage their financial transactions to ensure fiscal responsibility and transparency. This dataset revolves around accounts, journal entries, vendor payments, and budget management, detailing how funds flow through various cost centers and projects. The tables include accounts that represent different financial entities, journal entries capturing the details of transactions, vendor payments linked to external suppliers, cost centers where expenses are allocated, and budgets set for various projects. The records reflect a high volume of routine transactions linked to ongoing operations, while capital expenditures and unique vendor payments tend to be less common yet significant in their impact on overall financial health. This synthetic dataset is designed for practical use, allowing developers and analysts to simulate real-world financial oversight scenarios and improve their SQL skills.",
    "domain": "fintech",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "financial transactions",
      "ledger",
      "journal entries",
      "vendor payments",
      "budget management",
      "cost centers",
      "fintech",
      "accounting"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "accounts": {
        "description": "Each row represents a financial account, which can be a bank account or an internal ledger account used for tracking transactions.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the account."
          },
          "account_name": {
            "kind": "words",
            "max": 3,
            "description": "The name of the account.",
            "pool": [
              "savings",
              "checking",
              "investment",
              "retirement",
              "business",
              "joint",
              "trust",
              "highyield",
              "cashmanagement",
              "brokerage",
              "moneymarket",
              "credit",
              "debit",
              "foreigncurrency",
              "custodial",
              "escrow",
              "digital",
              "mobile",
              "student",
              "health"
            ],
            "min": 1
          },
          "account_type": {
            "kind": "enum",
            "values": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "expense"
            ],
            "description": "The type of the account.",
            "weights": [
              6,
              2,
              1,
              1,
              3
            ]
          },
          "balance": {
            "kind": "decimal",
            "min": 0,
            "max": 1000000,
            "scale": 2,
            "description": "Current balance of the account.",
            "distribution": "heavy-tail"
          }
        }
      },
      "journal_entries": {
        "description": "This table records individual transactions associated with accounts, including debits and credits.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the journal entry."
          },
          "account_id": {
            "kind": "fk",
            "ref": "accounts.id",
            "description": "Foreign key referencing the account involved in the transaction."
          },
          "transaction_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the transaction.",
            "dayProfile": "waking"
          },
          "amount": {
            "kind": "decimal",
            "min": -10000,
            "max": 10000,
            "scale": 2,
            "description": "Amount of the transaction, negative for debits.",
            "distribution": "long-tail"
          },
          "description": {
            "kind": "sentence",
            "max": 200,
            "description": "Description of the transaction."
          }
        }
      },
      "vendor_payments": {
        "description": "This table logs payments made to vendors for services or goods, linked to specific journal entries.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the vendor payment."
          },
          "journal_entry_id": {
            "kind": "fk",
            "ref": "journal_entries.id",
            "description": "Foreign key referencing the journal entry associated with the payment."
          },
          "vendor_name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the vendor receiving payment.",
            "pool": [
              "supplier",
              "contractor",
              "serviceprovider",
              "retailer",
              "wholesaler",
              "distributor",
              "consultant",
              "freelancer",
              "merchant",
              "vendor",
              "partner",
              "provider",
              "manufacturer",
              "broker",
              "agent",
              "developer",
              "firm",
              "institution",
              "enterprise",
              "startup"
            ],
            "min": 1
          },
          "payment_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the payment.",
            "dayProfile": "business"
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 50000,
            "scale": 2,
            "description": "Amount paid to the vendor.",
            "distribution": "long-tail"
          }
        }
      },
      "cost_centers": {
        "description": "This table tracks different cost centers within the organization where expenses are categorized.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the cost center."
          },
          "cost_center_name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the cost center.",
            "pool": [
              "operations",
              "marketing",
              "sales",
              "research",
              "development",
              "administration",
              "customer",
              "support",
              "it",
              "finance",
              "humanresources",
              "legal",
              "compliance",
              "training",
              "logistics",
              "production",
              "quality",
              "strategy",
              "analytics",
              "innovation"
            ],
            "min": 1
          },
          "budget": {
            "kind": "decimal",
            "min": 0,
            "max": 200000,
            "scale": 2,
            "description": "Budget allocated to the cost center.",
            "distribution": "heavy-tail"
          }
        }
      },
      "budgets": {
        "description": "This table defines budget targets for various projects and links them to cost centers.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the budget record."
          },
          "cost_center_id": {
            "kind": "fk",
            "ref": "cost_centers.id",
            "description": "Foreign key referencing the associated cost center."
          },
          "project_name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the project linked to the budget.",
            "pool": [
              "expansion",
              "upgrade",
              "launch",
              "development",
              "research",
              "implementation",
              "analysis",
              "evaluation",
              "design",
              "strategy",
              "marketing",
              "training",
              "integration",
              "optimization",
              "automation",
              "migration",
              "enhancement",
              "collaboration",
              "assessment",
              "innovation"
            ],
            "min": 1
          },
          "allocated_budget": {
            "kind": "decimal",
            "min": 0,
            "max": 100000,
            "scale": 2,
            "description": "Allocated budget for the project.",
            "distribution": "long-tail"
          },
          "budget_period": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Time period for the budget allocation.",
            "trend": "seasonal"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the total expenditure per cost center over the year?",
      "How do vendor payments vary by month and what trends can be identified?",
      "Which accounts have the highest balances and what are their types?",
      "Are there any budget overruns in specific projects or cost centers?",
      "How does the volume of journal entries correlate with account activity?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Accounts and Journal Entries",
        "sql": "SELECT a.account_name, j.amount FROM accounts a JOIN journal_entries j ON a.id = j.account_id;",
        "dialect": "postgres"
      },
      {
        "title": "Total Payments to Vendors",
        "sql": "SELECT vendor_name, SUM(amount) FROM vendor_payments GROUP BY vendor_name;",
        "dialect": "postgres"
      },
      {
        "title": "Budget Overruns by Cost Center",
        "sql": "SELECT c.cost_center_name, b.allocated_budget, SUM(j.amount) AS total_expenditure FROM budgets b JOIN cost_centers c ON b.cost_center_id = c.id JOIN journal_entries j ON j.id = b.id GROUP BY c.cost_center_name, b.allocated_budget HAVING SUM(j.amount) > b.allocated_budget;",
        "dialect": "postgres"
      },
      {
        "title": "Monthly Transaction Volume",
        "sql": "SELECT DATE_TRUNC('month', transaction_date) AS month, COUNT(*) AS transaction_count FROM journal_entries GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Analyst Scenario",
        "body": "A financial analyst can use this dataset to analyze spending patterns across different cost centers and identify areas where budget allocations may need adjustment. By examining vendor payments alongside journal entries, they can gain insights into operational costs and trends."
      },
      {
        "title": "Teaching SQL to Students",
        "body": "In a classroom setting, instructors can leverage this dataset to teach students SQL querying techniques. By working with realistic financial data, students can learn to write complex queries, perform joins, and aggregate data to support decision-making."
      },
      {
        "title": "Internal Auditing Practices",
        "body": "Internal auditors could utilize this dataset to ensure compliance with financial regulations and to verify the accuracy of financial reporting. They may analyze journal entries and vendor payments to identify any discrepancies or patterns that require further investigation."
      },
      {
        "title": "Budget Management Review",
        "body": "Budget managers can use this dataset to monitor and evaluate the financial performance of various projects. They can assess if the expenditures are within the allocated budgets and make necessary adjustments to future budgeting efforts based on historical data."
      }
    ]
  },
  "counts": {
    "accounts": 100,
    "cost_centers": 50,
    "budgets": 100,
    "journal_entries": 500,
    "vendor_payments": 200
  },
  "stats": {
    "accounts": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "account_name": {
          "nulls": 0,
          "distinct": 87
        },
        "account_type": {
          "nulls": 0,
          "distinct": 5,
          "min": "asset",
          "max": "revenue"
        },
        "balance": {
          "nulls": 0,
          "distinct": 100,
          "min": 0,
          "max": 966603.13
        }
      }
    },
    "journal_entries": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "account_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2023-01-04 22:50:42",
          "max": "2023-12-31 06:23:36"
        },
        "amount": {
          "nulls": 0,
          "distinct": 500,
          "min": -9999.76,
          "max": 9976.87
        },
        "description": {
          "nulls": 0,
          "distinct": 496
        }
      }
    },
    "vendor_payments": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "journal_entry_id": {
          "nulls": 0,
          "distinct": 162,
          "min": 1,
          "max": 494
        },
        "vendor_name": {
          "nulls": 0,
          "distinct": 136
        },
        "payment_date": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-02 11:59:50",
          "max": "2023-12-29 11:31:19"
        },
        "amount": {
          "nulls": 0,
          "distinct": 200,
          "min": 1.17,
          "max": 49953.41
        }
      }
    },
    "cost_centers": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "cost_center_name": {
          "nulls": 0,
          "distinct": 44
        },
        "budget": {
          "nulls": 0,
          "distinct": 50,
          "min": 0.21,
          "max": 177727.34
        }
      }
    },
    "budgets": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "cost_center_id": {
          "nulls": 0,
          "distinct": 46,
          "min": 1,
          "max": 50
        },
        "project_name": {
          "nulls": 0,
          "distinct": 77
        },
        "allocated_budget": {
          "nulls": 0,
          "distinct": 100,
          "min": 1.83,
          "max": 98186.09
        },
        "budget_period": {
          "nulls": 0,
          "distinct": 84,
          "min": "2023-01-03",
          "max": "2023-12-31"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/accounts.csv",
      "format": "csv",
      "table": "accounts",
      "key": "datasets/financial-transaction-oversight/v3/csv/accounts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/csv/accounts.csv",
      "bytes": 3957,
      "sha256": "e3cb8d67c293555195ab2f3439021cb7de76c643be46af234a3b44b5477fe32b",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/cost_centers.csv",
      "format": "csv",
      "table": "cost_centers",
      "key": "datasets/financial-transaction-oversight/v3/csv/cost_centers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/csv/cost_centers.csv",
      "bytes": 1609,
      "sha256": "e76d10a9a861cd41656006845eb238bee49ae5524c981dc0b7c6c25d8946faae",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/budgets.csv",
      "format": "csv",
      "table": "budgets",
      "key": "datasets/financial-transaction-oversight/v3/csv/budgets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/csv/budgets.csv",
      "bytes": 4736,
      "sha256": "fa0a1d83ce487c7ad016887db9c9c097d3dbc5bdd388a5581c2ec43db3cdb25a",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/journal_entries.csv",
      "format": "csv",
      "table": "journal_entries",
      "key": "datasets/financial-transaction-oversight/v3/csv/journal_entries.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/csv/journal_entries.csv",
      "bytes": 46352,
      "sha256": "5b7c7ddd16ae5a300837a36f40759cc8086248cc00f561d1b86dfec381cf020d",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendor_payments.csv",
      "format": "csv",
      "table": "vendor_payments",
      "key": "datasets/financial-transaction-oversight/v3/csv/vendor_payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/csv/vendor_payments.csv",
      "bytes": 11068,
      "sha256": "335ade1532b3740e3b2b3e24aca84a49b932842cfb68c5fa5f47881e1b10a3f7",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "financial-transaction-oversight.json",
      "format": "json",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/financial-transaction-oversight.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/financial-transaction-oversight.json",
      "bytes": 173616,
      "sha256": "8c9e5decb07c5fa4c31aa10188e23d8dc6c0161534f276271e87de49bf213298",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/sql/postgres.sql",
      "bytes": 83370,
      "sha256": "91f960ca85ab4d7d2474a4367b21940cdc190dc4053744ccab0e544e0b3b22fa",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/sql/mysql.sql",
      "bytes": 82791,
      "sha256": "0e460fb2cc66cc4aba76b37e7663a969553c8a50e5005c348652eb9192bdcfc9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/sql/mssql.sql",
      "bytes": 84996,
      "sha256": "c5a1afdc19aae47a59689a11c6b02cdfd1dcc6ac1300afea51e6fb64099dcf5d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/sql/sqlite.sql",
      "bytes": 82596,
      "sha256": "9b61d66f6eae7e14f83afd78b825157a0103221e55562ee4efb7dcfa36fd6929",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/prisma/seed.ts",
      "bytes": 151672,
      "sha256": "cbc444016d103b2bee730d51cc10a550f42a63c5ec9aebd8c1f9523788b05ffd",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/financial-transaction-oversight/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/financial-transaction-oversight/v3/django/fixtures.json",
      "bytes": 219358,
      "sha256": "7e059d6354e8df52b5650214bee37aeace270805857d730d2caa23d01e807c97",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788733887240,
  "updatedAt": 1788783995972
}
