{
  "format": "dataset-manifest/1",
  "slug": "smart-savings-and-investment-app",
  "version": 1,
  "seed": "smart-savings-and-investment-app:1",
  "spec": {
    "format": "dataset/1",
    "slug": "smart-savings-and-investment-app",
    "name": "Investment and Savings Analytics",
    "tagline": "User accounts, investment portfolios, transactions, and budgeting behavior for wealth management analytics.",
    "description": "Clients engage in wealth management and financial planning through a comprehensive savings and investment application. This dataset models user accounts, investment portfolios, transaction histories, credit scores, and budgeting behaviors, reflecting the diverse investment strategies users adopt. A common trend observed is a heavier allocation towards equities compared to fixed income, while most users maintain a basic savings account. A smaller subset actively tracks intricate investment portfolios that may include alternative assets. This synthetic dataset is designed to help developers practice SQL queries, conduct analyses, and teach financial data management, allowing for exploration of how users manage their finances over time and the relationships between their savings and investment behaviors.",
    "domain": "banking",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "investment",
      "savings",
      "portfolio",
      "transactions",
      "credit score",
      "budgeting",
      "wealth management",
      "financial planning"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains user account details, linking each user to their respective investment portfolios and transaction histories.",
        "rows": 300,
        "columns": {
          "user_id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "User's email address for account notifications."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Account creation date.",
            "dayProfile": "business"
          },
          "credit_score": {
            "kind": "int",
            "min": 300,
            "max": 850,
            "description": "User's credit score."
          }
        }
      },
      "portfolios": {
        "description": "This table includes investment portfolios for each user, detailing their asset allocation and investment strategies.",
        "rows": 250,
        "via": "user_id",
        "columns": {
          "portfolio_id": {
            "kind": "pk",
            "description": "Unique identifier for the investment portfolio."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.user_id",
            "description": "Foreign key linking to the user."
          },
          "equity_allocation": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Fraction of the portfolio allocated to equities."
          },
          "fixed_income_allocation": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Fraction of the portfolio allocated to fixed income."
          },
          "alternative_assets": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Fraction of the portfolio allocated to alternative assets."
          }
        }
      },
      "transactions": {
        "description": "This table keeps track of all financial transactions for users, linking to their respective portfolios.",
        "rows": 700,
        "via": "user_id",
        "columns": {
          "transaction_id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.user_id",
            "description": "Foreign key linking to the user."
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 10000,
            "scale": 2,
            "description": "Transaction amount."
          },
          "transaction_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-12-31",
            "description": "Date when the transaction occurred.",
            "trend": "growing"
          },
          "type": {
            "kind": "enum",
            "values": [
              "deposit",
              "withdrawal",
              "investment",
              "dividend"
            ],
            "description": "Type of transaction."
          }
        }
      },
      "budgeting": {
        "description": "This table tracks user budgeting behaviors, including their monthly income and expenditure.",
        "rows": 300,
        "via": "user_id",
        "columns": {
          "budget_id": {
            "kind": "pk",
            "description": "Unique identifier for the budgeting record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.user_id",
            "description": "Foreign key linking to the user."
          },
          "monthly_income": {
            "kind": "decimal",
            "min": 1000,
            "max": 20000,
            "scale": 2,
            "description": "User's monthly income."
          },
          "monthly_expenditure": {
            "kind": "decimal",
            "min": 0,
            "max": 20000,
            "scale": 2,
            "description": "User's monthly expenditure."
          },
          "savings_rate": {
            "kind": "decimal",
            "min": 0,
            "max": 1,
            "scale": 2,
            "description": "Fraction of income saved each month."
          }
        }
      },
      "investment_strategies": {
        "description": "This table outlines various investment strategies employed by users, linked to their portfolios.",
        "rows": 150,
        "via": "portfolio_id",
        "columns": {
          "strategy_id": {
            "kind": "pk",
            "description": "Unique identifier for each investment strategy."
          },
          "portfolio_id": {
            "kind": "fk",
            "ref": "portfolios.portfolio_id",
            "description": "Foreign key linking to the portfolio."
          },
          "strategy_type": {
            "kind": "enum",
            "values": [
              "growth",
              "income",
              "value",
              "speculative"
            ],
            "description": "Type of investment strategy."
          },
          "risk_tolerance": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high"
            ],
            "description": "User's risk tolerance level."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the average credit score among users?",
      "How do investment allocations vary between different user demographics?",
      "Which investment strategies yield the highest returns?",
      "What percentage of users exceed their monthly budget?",
      "How does the allocation between equities and fixed income change over time?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve User Information",
        "sql": "SELECT * FROM users WHERE credit_score > 700;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Transaction Amounts",
        "sql": "SELECT user_id, SUM(amount) FROM transactions GROUP BY user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Investment Strategy Analysis",
        "sql": "SELECT strategy_type, COUNT(*) FROM investment_strategies GROUP BY strategy_type;",
        "dialect": "postgres"
      },
      {
        "title": "Monthly Budget Comparison",
        "sql": "SELECT user_id, monthly_income, monthly_expenditure FROM budgeting WHERE monthly_expenditure > monthly_income;",
        "dialect": "postgres"
      },
      {
        "title": "Portfolio Performance Over Time",
        "sql": "SELECT p.portfolio_id, AVG(t.amount) FROM portfolios p JOIN transactions t ON p.user_id = t.user_id GROUP BY p.portfolio_id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Analysts",
        "body": "Financial analysts can utilize this dataset to evaluate user behavior in investment strategies, helping to identify trends in saving and spending habits. By analyzing transaction data alongside portfolio performances, they can offer tailored advice to improve financial outcomes."
      },
      {
        "title": "Educators in Finance",
        "body": "Instructors teaching finance and investment can leverage this dataset to create real-world case studies. Students can practice SQL queries, conduct statistical analyses, and better understand the dynamics of personal finance and investment management."
      },
      {
        "title": "App Developers",
        "body": "Developers building financial applications can use this dataset to test and refine features related to budgeting and investment tracking. By simulating user behaviors, they can ensure that their applications meet user needs effectively and provide valuable insights."
      },
      {
        "title": "Investment Advisors",
        "body": "Investment advisors can analyze portfolio allocations and performance metrics to recommend personalized investment strategies to their clients. By understanding the effectiveness of various investment approaches, they can enhance their advisory services."
      }
    ]
  },
  "counts": {
    "users": 300,
    "budgeting": 300,
    "portfolios": 250,
    "investment_strategies": 150,
    "transactions": 700
  },
  "stats": {
    "users": {
      "rows": 300,
      "columns": {
        "user_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 0,
          "distinct": 296,
          "min": "Alice Costa",
          "max": "Zoe Oliveira"
        },
        "email": {
          "nulls": 0,
          "distinct": 299
        },
        "created_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-07 10:31:27",
          "max": "2023-12-31 09:07:22"
        },
        "credit_score": {
          "nulls": 0,
          "distinct": 236,
          "min": 304,
          "max": 848
        }
      }
    },
    "portfolios": {
      "rows": 250,
      "columns": {
        "portfolio_id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "user_id": {
          "nulls": 0,
          "distinct": 167,
          "min": 1,
          "max": 299
        },
        "equity_allocation": {
          "nulls": 0,
          "distinct": 94,
          "min": 0.01,
          "max": 1
        },
        "fixed_income_allocation": {
          "nulls": 0,
          "distinct": 90,
          "min": 0.01,
          "max": 1
        },
        "alternative_assets": {
          "nulls": 0,
          "distinct": 96,
          "min": 0,
          "max": 1
        }
      }
    },
    "transactions": {
      "rows": 700,
      "columns": {
        "transaction_id": {
          "nulls": 0,
          "distinct": 700,
          "min": 1,
          "max": 700
        },
        "user_id": {
          "nulls": 0,
          "distinct": 271,
          "min": 1,
          "max": 300
        },
        "amount": {
          "nulls": 0,
          "distinct": 700,
          "min": 5.48,
          "max": 9997.57
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 700,
          "min": "2021-01-01 03:14:23",
          "max": "2023-12-30 09:05:57"
        },
        "type": {
          "nulls": 0,
          "distinct": 4,
          "min": "deposit",
          "max": "withdrawal"
        }
      }
    },
    "budgeting": {
      "rows": 300,
      "columns": {
        "budget_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 193,
          "min": 2,
          "max": 300
        },
        "monthly_income": {
          "nulls": 0,
          "distinct": 300,
          "min": 1157.76,
          "max": 19937.76
        },
        "monthly_expenditure": {
          "nulls": 0,
          "distinct": 300,
          "min": 24.01,
          "max": 19993.17
        },
        "savings_rate": {
          "nulls": 0,
          "distinct": 95,
          "min": 0.01,
          "max": 1
        }
      }
    },
    "investment_strategies": {
      "rows": 150,
      "columns": {
        "strategy_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "portfolio_id": {
          "nulls": 0,
          "distinct": 102,
          "min": 3,
          "max": 247
        },
        "strategy_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "growth",
          "max": "value"
        },
        "risk_tolerance": {
          "nulls": 0,
          "distinct": 3,
          "min": "high",
          "max": "medium"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/smart-savings-and-investment-app/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/csv/users.csv",
      "bytes": 19531,
      "sha256": "2bcfa340e55570522302b0f8c60d4735067ed7bcc62d57dabc073ef2fb657234",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/budgeting.csv",
      "format": "csv",
      "table": "budgeting",
      "key": "datasets/smart-savings-and-investment-app/v1/csv/budgeting.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/csv/budgeting.csv",
      "bytes": 9158,
      "sha256": "448cde2b2fd4baf95311faee3e5d6d84534dda152958eee2cced43d346d673e3",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/portfolios.csv",
      "format": "csv",
      "table": "portfolios",
      "key": "datasets/smart-savings-and-investment-app/v1/csv/portfolios.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/csv/portfolios.csv",
      "bytes": 5880,
      "sha256": "3a0344450ef352dceb6dc3be4b38ddd3ccda14289ddb7ad139f31d1719d9a7fd",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/investment_strategies.csv",
      "format": "csv",
      "table": "investment_strategies",
      "key": "datasets/smart-savings-and-investment-app/v1/csv/investment_strategies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/csv/investment_strategies.csv",
      "bytes": 3252,
      "sha256": "983f7a5fcd980122bbe7d200888e7f81adf06011b90a8326db2e4afc660a3c62",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/smart-savings-and-investment-app/v1/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/csv/transactions.csv",
      "bytes": 32322,
      "sha256": "adb6f8ec31d7aff9b7dcd627c4b0ae319c866c14e8f6adea2cbc3760124aa560",
      "rows": 700,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "smart-savings-and-investment-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/smart-savings-and-investment-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/smart-savings-and-investment-app.json",
      "bytes": 276287,
      "sha256": "cd1ddfb74ec629b428aa4d44f87339fc91433474ced57a83721602ef2ea33065",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/sql/postgres.sql",
      "bytes": 95803,
      "sha256": "3eb4796b42e5e30882776340fd0f5c994131724ea6f976fb1b8e75fc9df56030",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/sql/mysql.sql",
      "bytes": 95130,
      "sha256": "99cd5d6b7a431bbd7bdf0abde183b5e3cbd65a715079c7414083df0478539cf4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/sql/mssql.sql",
      "bytes": 98076,
      "sha256": "cbde5cc46d432b49fa0ccec049deae9e83f4922af53ece011e23d4fc54016de3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/sql/sqlite.sql",
      "bytes": 94915,
      "sha256": "cf658706cb847f6dc8bc331a0b4bedbf1802696b18658181cac4527dcb982b40",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/prisma/seed.ts",
      "bytes": 233280,
      "sha256": "676f72d43eb6b6bb90f96b96ce2cd7d10dc0dbc3c09926d0aef5411d1604314b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/smart-savings-and-investment-app/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/smart-savings-and-investment-app/v1/django/fixtures.json",
      "bytes": 341539,
      "sha256": "fe3ef841c3b90014a18f4cc2b477059ebc4063a1f6249ac6bccb9778e8b535e7",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734449446,
  "updatedAt": 1788734449446
}
