{
  "format": "dataset-manifest/1",
  "slug": "ai-powered-personal-finance-planner",
  "version": 1,
  "seed": "ai-powered-personal-finance-planner:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ai-powered-personal-finance-planner",
    "name": "Personal Finance Ledger",
    "tagline": "User financial records including income, expenses, investments, savings goals, and insurance policies.",
    "description": "Users actively manage their financial journeys through a personal finance service that helps optimize income and expenditures. By tracking income predictions, monitoring investment accounts, and managing savings goals, individuals gain valuable insights into their financial health. This operation collects data on various financial transactions and interactions, offering a comprehensive view of each user's financial landscape. The interactions are not limited to income and expenses; users also regularly engage with their insurance policies, ensuring they manage risks effectively while pursuing financial stability.\n\nThe dataset consists of several interconnected tables: 'users' captures individual profiles, while 'income' and 'expenses' provide detailed records of financial inflows and outflows, respectively. The 'investments' table contains data on users' assets aimed at growing their wealth, while 'savings_goals' outlines specific targets users set for future savings. Lastly, 'insurance_policies' records the different insurance coverage each user holds, reflecting their risk management strategies. Each row in these tables represents a unique aspect of a user's financial situation, allowing for a variety of queries about their economic behavior.\n\nThis data is excellent for exploring questions such as how income and expenses correlate, what investment strategies are most common among users, and how effectively individuals are reaching their savings goals. Additionally, users' interactions with their insurance policies can highlight trends in risk management and protection choices. The dataset is synthetic, ensuring that it simulates realistic financial behaviors while maintaining user privacy. It offers a rich environment for developers to practice data analysis, financial modeling, and visualization techniques.",
    "domain": "insurance",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "personal finance",
      "income tracking",
      "expense management",
      "investment accounts",
      "savings goals",
      "insurance policies"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table holds user profiles, each representing a unique individual utilizing the finance planner. It links to other tables through user identifiers.",
        "rows": 200,
        "columns": {
          "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": "The email address of the user."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "The date when the user account was created.",
            "dayProfile": "business"
          }
        }
      },
      "income": {
        "description": "This table captures various income streams for users, linking back to the users table through user identifiers.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each income record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user."
          },
          "amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 20000,
            "scale": 2,
            "distribution": "heavy-tail",
            "description": "The amount of income in currency."
          },
          "source": {
            "kind": "words",
            "min": 3,
            "max": 50,
            "description": "Description of the income source.",
            "nullable": true
          },
          "received_at": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "The date when the income was received.",
            "trend": "growing"
          }
        }
      },
      "expenses": {
        "description": "This table records various expenses incurred by users, linked to the users table through user identifiers.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 10,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each expense record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user."
          },
          "amount": {
            "kind": "decimal",
            "min": 1,
            "max": 5000,
            "scale": 2,
            "distribution": "normal",
            "description": "The amount of the expense in currency."
          },
          "category": {
            "kind": "enum",
            "values": [
              "food",
              "transport",
              "entertainment",
              "utilities",
              "health",
              "education"
            ],
            "description": "The category of the expense.",
            "nullable": true
          },
          "incurred_at": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "The date when the expense was incurred.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "food",
                "transport",
                "entertainment",
                "utilities",
                "health",
                "education"
              ]
            },
            "trend": "growing"
          }
        }
      },
      "investments": {
        "description": "This table tracks user investments, linking back to users through user identifiers. It captures significant financial decisions.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 0,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each investment record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user."
          },
          "amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 100000,
            "scale": 2,
            "distribution": "heavy-tail",
            "description": "The amount invested in currency."
          },
          "investment_type": {
            "kind": "enum",
            "values": [
              "stocks",
              "bonds",
              "real estate",
              "mutual funds"
            ],
            "description": "Type of investment.",
            "nullable": true
          },
          "invested_at": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "The date when the investment was made.",
            "nullable": true,
            "when": {
              "column": "investment_type",
              "in": [
                "stocks",
                "bonds",
                "real estate",
                "mutual funds"
              ]
            },
            "trend": "growing"
          }
        }
      },
      "savings_goals": {
        "description": "This table represents various savings goals set by users, linking back to users through user identifiers.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each savings goal record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user."
          },
          "goal_name": {
            "kind": "words",
            "min": 3,
            "max": 50,
            "description": "The name of the savings goal.",
            "nullable": true
          },
          "target_amount": {
            "kind": "decimal",
            "min": 100,
            "max": 50000,
            "scale": 2,
            "description": "The target amount for the savings goal in currency."
          },
          "deadline": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2025-12-31",
            "description": "The target date for achieving the savings goal.",
            "trend": "seasonal"
          }
        }
      },
      "insurance_policies": {
        "description": "This table contains information about various insurance policies held by users, linking to the users table.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 0,
          "max": 2,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each insurance policy record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user."
          },
          "policy_type": {
            "kind": "enum",
            "values": [
              "health",
              "life",
              "auto",
              "home"
            ],
            "description": "Type of insurance policy."
          },
          "premium": {
            "kind": "decimal",
            "min": 50,
            "max": 2000,
            "scale": 2,
            "description": "The premium amount for the policy in currency."
          },
          "coverage_amount": {
            "kind": "decimal",
            "min": 10000,
            "max": 500000,
            "scale": 2,
            "description": "The coverage amount of the insurance policy in currency."
          },
          "start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "The date when the policy started.",
            "nullable": true,
            "when": {
              "column": "policy_type",
              "in": [
                "health",
                "life",
                "auto",
                "home"
              ]
            },
            "trend": "seasonal"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common sources of income among users?",
      "How do users categorize their expenses, and which category has the highest spending?",
      "What percentage of users have specific types of insurance policies?",
      "How do savings goals vary among different users?",
      "What trends can be observed in user investments over time?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Income",
        "sql": "SELECT users.full_name, income.amount FROM users JOIN income ON users.id = income.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Total Expenses by Category",
        "sql": "SELECT category, SUM(amount) AS total_expenses FROM expenses GROUP BY category;",
        "dialect": "postgres"
      },
      {
        "title": "Count Investments by Type",
        "sql": "SELECT investment_type, COUNT(*) AS investment_count FROM investments GROUP BY investment_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Savings Goal Amount",
        "sql": "SELECT AVG(target_amount) AS average_savings FROM savings_goals;",
        "dialect": "postgres"
      },
      {
        "title": "Insurance Policy Coverage Analysis",
        "sql": "SELECT policy_type, AVG(coverage_amount) AS average_coverage FROM insurance_policies GROUP BY policy_type;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Financial Educators",
        "body": "Financial educators can utilize this dataset to teach students about personal finance management, including budgeting, saving, investing, and understanding insurance. By analyzing the data, learners can gain insights into real-world financial scenarios and improve their financial literacy."
      },
      {
        "title": "Developers Building Financial Applications",
        "body": "Developers creating personal finance applications can use this dataset to test features like income tracking, expense categorization, and savings goal management. The realistic data allows for effective testing of functionalities and performance of financial tools."
      },
      {
        "title": "Data Analysts in Finance",
        "body": "Data analysts working in finance can leverage this dataset to perform deeper analyses on user spending habits, investment trends, and savings behaviors. Insights derived from the dataset can inform financial advising and strategies for improving user financial health."
      },
      {
        "title": "Researchers in Personal Finance",
        "body": "Researchers studying personal finance behaviors can use this dataset to conduct studies on income disparities, spending patterns, and the impact of savings goals on financial stability. The data provides a valuable resource for academic research in the field of finance."
      }
    ]
  },
  "counts": {
    "users": 200,
    "expenses": 739,
    "income": 464,
    "insurance_policies": 133,
    "investments": 190,
    "savings_goals": 447
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 197,
          "min": "Alice Brown",
          "max": "Zoe Murphy"
        },
        "email": {
          "nulls": 0,
          "distinct": 198
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-02 16:20:19",
          "max": "2023-09-27 17:24:40"
        }
      }
    },
    "income": {
      "rows": 464,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 464,
          "min": 1,
          "max": 464
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "amount": {
          "nulls": 0,
          "distinct": 463,
          "min": 1000.08,
          "max": 19982.73
        },
        "source": {
          "nulls": 45,
          "distinct": 419
        },
        "received_at": {
          "nulls": 0,
          "distinct": 378,
          "min": "2020-01-11",
          "max": "2023-09-30"
        }
      }
    },
    "expenses": {
      "rows": 739,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 739,
          "min": 1,
          "max": 739
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "amount": {
          "nulls": 0,
          "distinct": 737,
          "min": 399.89,
          "max": 4421.25
        },
        "category": {
          "nulls": 91,
          "distinct": 6,
          "min": "education",
          "max": "utilities"
        },
        "incurred_at": {
          "nulls": 91,
          "distinct": 499,
          "min": "2020-01-04",
          "max": "2023-09-21"
        }
      }
    },
    "investments": {
      "rows": 190,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 190,
          "min": 1,
          "max": 190
        },
        "user_id": {
          "nulls": 0,
          "distinct": 99,
          "min": 1,
          "max": 199
        },
        "amount": {
          "nulls": 0,
          "distinct": 189,
          "min": 1000.05,
          "max": 98679.18
        },
        "investment_type": {
          "nulls": 26,
          "distinct": 4,
          "min": "bonds",
          "max": "stocks"
        },
        "invested_at": {
          "nulls": 26,
          "distinct": 151,
          "min": "2020-01-15",
          "max": "2023-09-28"
        }
      }
    },
    "savings_goals": {
      "rows": 447,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 447,
          "min": 1,
          "max": 447
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "goal_name": {
          "nulls": 43,
          "distinct": 404
        },
        "target_amount": {
          "nulls": 0,
          "distinct": 447,
          "min": 350.88,
          "max": 49993.08
        },
        "deadline": {
          "nulls": 0,
          "distinct": 391,
          "min": "2020-01-03",
          "max": "2025-12-29"
        }
      }
    },
    "insurance_policies": {
      "rows": 133,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 133,
          "min": 1,
          "max": 133
        },
        "user_id": {
          "nulls": 0,
          "distinct": 93,
          "min": 1,
          "max": 199
        },
        "policy_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "auto",
          "max": "life"
        },
        "premium": {
          "nulls": 0,
          "distinct": 133,
          "min": 52.56,
          "max": 1994.87
        },
        "coverage_amount": {
          "nulls": 0,
          "distinct": 133,
          "min": 13077.64,
          "max": 493304
        },
        "start_date": {
          "nulls": 0,
          "distinct": 125,
          "min": "2020-01-08",
          "max": "2023-09-25"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/users.csv",
      "bytes": 12125,
      "sha256": "f037be00e04fbdd1a14072961569ed881bf9b81e6972272f95b28efe5f8300da",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/expenses.csv",
      "format": "csv",
      "table": "expenses",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/expenses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/expenses.csv",
      "bytes": 25453,
      "sha256": "8c38af4c2990b37705796d22749b2f6cb1455dbf7f4e2515942ba9799a15ade2",
      "rows": 739,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/income.csv",
      "format": "csv",
      "table": "income",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/income.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/income.csv",
      "bytes": 88741,
      "sha256": "dcea8336b15c05ee7963c9b857aa00fc1443916601905f357412839c5ad3d1ec",
      "rows": 464,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/insurance_policies.csv",
      "format": "csv",
      "table": "insurance_policies",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/insurance_policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/insurance_policies.csv",
      "bytes": 5575,
      "sha256": "4a4bf2f4064d852391ee58bf22b10b5bf85abe1702fa0d71370242a4b8f07262",
      "rows": 133,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/investments.csv",
      "format": "csv",
      "table": "investments",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/investments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/investments.csv",
      "bytes": 6640,
      "sha256": "6b45f0c558440e97c572bb0f4d6a181b89117323b5b6646aa39cd40cd89d633d",
      "rows": 190,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/savings_goals.csv",
      "format": "csv",
      "table": "savings_goals",
      "key": "datasets/ai-powered-personal-finance-planner/v1/csv/savings_goals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/csv/savings_goals.csv",
      "bytes": 83251,
      "sha256": "8e3c32bf4959d86037d01f52ad3d9e1509fd05c9f5966e15e5fff0ba199e9031",
      "rows": 447,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ai-powered-personal-finance-planner.json",
      "format": "json",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/ai-powered-personal-finance-planner.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/ai-powered-personal-finance-planner.json",
      "bytes": 451116,
      "sha256": "7637ed7d773e4d5ee601a65d5ff196ae445dc3cf7a75e3a8cec3bcc666d74e5e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/sql/postgres.sql",
      "bytes": 256948,
      "sha256": "50c68f8c5bdd45f62fae26432177c2a338614494bfd17033b1981a7aa9c566bd",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/sql/mysql.sql",
      "bytes": 256262,
      "sha256": "c45251069f826bc3371c41b54dbab5fd85029488769d85acd22b0778c3ebc294",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/sql/mssql.sql",
      "bytes": 260886,
      "sha256": "5ad43c9891135693121af9e5f41c6fd44d0399c7ba0b0a8023c08b3f0aea4f35",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/sql/sqlite.sql",
      "bytes": 256016,
      "sha256": "442937e86a2f4b7670d6e01e0025611c6dcde6412e013e8dee02c43a6e77b79b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/prisma/seed.ts",
      "bytes": 381179,
      "sha256": "705c638d4bbf81261fc6ea722d9423bcb131fa30b2c4f05d8186647fa77cd386",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ai-powered-personal-finance-planner/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ai-powered-personal-finance-planner/v1/django/fixtures.json",
      "bytes": 546982,
      "sha256": "1827b35d1ae18f0bb2065a39f8d0a31cb7d0635bf120ba629eef4715527a7dbe",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768417993,
  "updatedAt": 1788768417993
}
