{
  "format": "dataset-manifest/1",
  "slug": "debt-management-and-repayment-app",
  "version": 4,
  "seed": "debt-management-and-repayment-app:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "debt-management-and-repayment-app",
    "name": "Debt Repayment Insights",
    "tagline": "Understand debt management with insights on repayment strategies and financial impacts.",
    "description": "Users create personalized repayment plans and engage with creditors to manage their debts effectively. They navigate through various financial strategies, such as adjusting repayment schedules and understanding interest rates, while simultaneously addressing disputes and setting milestones to track their progress. This continual interaction reflects the complexities of debt management, showcasing the various pathways individuals can take to achieve financial stability. \n\nThe dataset features several interconnected tables: 'users' includes individual profiles of those in debt, detailing their financial backgrounds and interactions; 'creditors' represents the financial institutions and lenders involved, outlining their terms and conditions; 'repayment_plans' captures the customized strategies users devise to pay back their debts, including amounts, schedules, and interest rates; 'disputes' logs instances where users face challenges or disagreements with creditors, providing insight into common issues; and 'milestones' tracks the key achievements in users' repayment journeys, marking significant progress points. Each row within these tables provides a facet of the broader debt management process, with foreign keys linking users to their respective creditors, repayment plans, and recorded disputes. \n\nThis dataset answers critical questions about debt management: What repayment strategies are most effective? How do different creditors' terms impact user repayment behavior? What common disputes arise, and how do they affect milestones? By analyzing this synthetic data, developers can practice building insights around financial decision-making, explore user behavior patterns, and simulate various debt repayment scenarios, enhancing their understanding of financial technology applications.",
    "domain": "fintech",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "debt management",
      "repayment plans",
      "financial insights",
      "creditors",
      "disputes",
      "income sources"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains information about users managing their debt. Each user has a unique identifier and is linked to their repayment plans and creditors.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the user."
          },
          "income_source": {
            "kind": "enum",
            "values": [
              "salary",
              "freelance",
              "investment",
              "other"
            ],
            "description": "Primary source of income for the user.",
            "weights": [
              6,
              2,
              1,
              1
            ]
          },
          "credit_score": {
            "kind": "int",
            "min": 300,
            "max": 850,
            "distribution": "normal",
            "description": "User's credit score, ranging from 300 to 850."
          },
          "debt_to_income_ratio": {
            "kind": "decimal",
            "min": 0.1,
            "max": 0.6,
            "scale": 2,
            "distribution": "long-tail",
            "description": "Ratio of user's total debt to their income."
          }
        }
      },
      "creditors": {
        "description": "This table lists the creditors associated with users. Each creditor is a financial institution or lender linked to a user.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the creditor."
          },
          "name": {
            "kind": "company",
            "description": "Name of the creditor or financial institution."
          },
          "type": {
            "kind": "enum",
            "values": [
              "bank",
              "credit union",
              "private lender",
              "online lender"
            ],
            "description": "Type of creditor.",
            "weights": [
              5,
              3,
              2,
              1
            ]
          },
          "average_interest_rate": {
            "kind": "decimal",
            "min": 0.01,
            "max": 0.3,
            "scale": 2,
            "distribution": "normal",
            "description": "Average interest rate charged by the creditor."
          },
          "total_loans": {
            "kind": "int",
            "min": 1,
            "max": 500,
            "distribution": "normal",
            "description": "Total number of loans issued by the creditor."
          }
        }
      },
      "repayment_plans": {
        "description": "This table details the repayment plans associated with users, including amounts, interest rates, and statuses.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the repayment plan."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Identifier linking to the user managing the debt."
          },
          "creditor_id": {
            "kind": "fk",
            "ref": "creditors.id",
            "description": "Identifier linking to the creditor associated with this plan."
          },
          "amount": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "description": "Total amount of the repayment plan.",
            "distribution": "long-tail"
          },
          "interest_rate": {
            "kind": "decimal",
            "min": 0.01,
            "max": 0.25,
            "scale": 4,
            "description": "Annual interest rate applied to the repayment plan.",
            "distribution": "normal"
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "completed",
              "defaulted"
            ],
            "description": "Current status of the repayment plan.",
            "weights": [
              7,
              2,
              1
            ]
          }
        }
      },
      "disputes": {
        "description": "This table records disputes related to repayment plans, capturing any conflicts between users and creditors.",
        "rows": {
          "per": "repayment_plans",
          "via": "repayment_plan_id",
          "min": 0,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the dispute."
          },
          "repayment_plan_id": {
            "kind": "fk",
            "ref": "repayment_plans.id",
            "description": "Identifier linking to the associated repayment plan."
          },
          "description": {
            "kind": "sentence",
            "max": 100,
            "description": "Brief description of the dispute."
          },
          "resolved": {
            "kind": "bool",
            "trueRate": 0.5,
            "description": "Indicates whether the dispute has been resolved."
          },
          "amount_in_dispute": {
            "kind": "decimal",
            "min": 0,
            "max": 10000,
            "scale": 2,
            "distribution": "long-tail",
            "description": "Total amount being disputed in the repayment plan."
          },
          "dispute_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "dayProfile": "business",
            "description": "Date when the dispute was raised."
          }
        }
      },
      "milestones": {
        "description": "This table outlines significant milestones in the repayment process, helping users track their progress.",
        "rows": {
          "per": "repayment_plans",
          "via": "repayment_plan_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the milestone."
          },
          "repayment_plan_id": {
            "kind": "fk",
            "ref": "repayment_plans.id",
            "description": "Identifier linking to the associated repayment plan."
          },
          "date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the milestone was achieved.",
            "dayProfile": "business"
          },
          "description": {
            "kind": "sentence",
            "max": 100,
            "description": "Description of the milestone."
          },
          "milestone_value": {
            "kind": "decimal",
            "min": 100,
            "max": 10000,
            "scale": 2,
            "distribution": "normal",
            "description": "Financial value associated with the milestone."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common repayment statuses among users?",
      "How do interest rates vary across different creditors?",
      "What percentage of disputes are resolved successfully?",
      "Which income sources correlate with faster debt repayment?",
      "What milestones are most frequently achieved by users?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Their Repayment Plans",
        "sql": "SELECT users.full_name, repayment_plans.amount, repayment_plans.status FROM users JOIN repayment_plans ON users.id = repayment_plans.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Average Interest Rate by Creditor Type",
        "sql": "SELECT creditors.type, AVG(repayment_plans.interest_rate) FROM repayment_plans JOIN creditors ON repayment_plans.creditor_id = creditors.id GROUP BY creditors.type;",
        "dialect": "postgres"
      },
      {
        "title": "Count Disputes by Repayment Status",
        "sql": "SELECT repayment_plans.status, COUNT(disputes.id) FROM repayment_plans LEFT JOIN disputes ON repayment_plans.id = disputes.repayment_plan_id GROUP BY repayment_plans.status;",
        "dialect": "postgres"
      },
      {
        "title": "Find Milestones Achieved in a Given Month",
        "sql": "SELECT milestones.date, milestones.description FROM milestones WHERE milestones.date BETWEEN '2023-01-01' AND '2023-01-31';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "SQL Practice for Financial Analysts",
        "body": "Financial analysts can use this dataset to enhance their SQL skills by querying user repayment patterns and creditor performance. By exploring the relationships between various tables, they can create insightful reports on debt management."
      },
      {
        "title": "Teaching Personal Finance Concepts",
        "body": "Educators can leverage this dataset to teach students about personal finance management and debt repayment strategies. The realistic scenarios enable learners to understand the impact of different financial decisions."
      },
      {
        "title": "Dashboard Creation for Debt Management Tools",
        "body": "Developers creating debt management applications can use this dataset to prototype dashboards that visualize user progress, repayment plans, and milestones. This can help in designing more effective financial tools."
      },
      {
        "title": "Analyzing Dispute Trends",
        "body": "Researchers can analyze the dispute data in this dataset to identify trends and common issues that users face when managing debt. This analysis can lead to insights on how to improve creditor-user relationships."
      }
    ]
  },
  "counts": {
    "creditors": 100,
    "users": 200,
    "repayment_plans": 485,
    "disputes": 472,
    "milestones": 1067
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 196,
          "min": "Alice Vargas",
          "max": "Zoe Jensen"
        },
        "income_source": {
          "nulls": 0,
          "distinct": 4,
          "min": "freelance",
          "max": "salary"
        },
        "credit_score": {
          "nulls": 0,
          "distinct": 147,
          "min": 346,
          "max": 786
        },
        "debt_to_income_ratio": {
          "nulls": 0,
          "distinct": 45,
          "min": 0.1,
          "max": 0.6
        }
      }
    },
    "creditors": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 92,
          "min": "Acme Analytics",
          "max": "Willow Works"
        },
        "type": {
          "nulls": 0,
          "distinct": 4,
          "min": "bank",
          "max": "private lender"
        },
        "average_interest_rate": {
          "nulls": 0,
          "distinct": 19,
          "min": 0.07,
          "max": 0.25
        },
        "total_loans": {
          "nulls": 0,
          "distinct": 82,
          "min": 105,
          "max": 438
        }
      }
    },
    "repayment_plans": {
      "rows": 485,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 485,
          "min": 1,
          "max": 485
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "creditor_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "amount": {
          "nulls": 0,
          "distinct": 484,
          "min": 100.05,
          "max": 9994.76
        },
        "interest_rate": {
          "nulls": 0,
          "distinct": 408,
          "min": 0.0453,
          "max": 0.2188
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "active",
          "max": "defaulted"
        }
      }
    },
    "disputes": {
      "rows": 472,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 472,
          "min": 1,
          "max": 472
        },
        "repayment_plan_id": {
          "nulls": 0,
          "distinct": 251,
          "min": 2,
          "max": 485
        },
        "description": {
          "nulls": 0,
          "distinct": 468
        },
        "resolved": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        },
        "amount_in_dispute": {
          "nulls": 0,
          "distinct": 472,
          "min": 0.1,
          "max": 9863.12
        },
        "dispute_date": {
          "nulls": 0,
          "distinct": 472,
          "min": "2022-01-01 18:46:04",
          "max": "2023-12-27 09:01:18"
        }
      }
    },
    "milestones": {
      "rows": 1067,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 1067,
          "min": 1,
          "max": 1067
        },
        "repayment_plan_id": {
          "nulls": 0,
          "distinct": 485,
          "min": 1,
          "max": 485
        },
        "date": {
          "nulls": 0,
          "distinct": 1067,
          "min": "2022-01-01 10:10:51",
          "max": "2023-12-31 12:32:36"
        },
        "description": {
          "nulls": 0,
          "distinct": 1045
        },
        "milestone_value": {
          "nulls": 0,
          "distinct": 1065,
          "min": 783.39,
          "max": 9083.63
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/creditors.csv",
      "format": "csv",
      "table": "creditors",
      "key": "datasets/debt-management-and-repayment-app/v4/csv/creditors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/csv/creditors.csv",
      "bytes": 3707,
      "sha256": "ceea368cbfdcd8ce520493bb69d8d9a7aaf4b59b401b9c21667d8e686e7ea6ad",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/debt-management-and-repayment-app/v4/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/csv/users.csv",
      "bytes": 6755,
      "sha256": "1f95a224e61662fdb0651979cb1feddcbd2d60b856c2bd194ed194c3b4561ec1",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/repayment_plans.csv",
      "format": "csv",
      "table": "repayment_plans",
      "key": "datasets/debt-management-and-repayment-app/v4/csv/repayment_plans.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/csv/repayment_plans.csv",
      "bytes": 16430,
      "sha256": "607eb497146c6a38a8382e1928009b35459d7391d55ff88477b9eb032a8a73ac",
      "rows": 485,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/disputes.csv",
      "format": "csv",
      "table": "disputes",
      "key": "datasets/debt-management-and-repayment-app/v4/csv/disputes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/csv/disputes.csv",
      "bytes": 46120,
      "sha256": "20a150fd4b3daca9d6e16fad857588e8c9780059fa508cfed1c2f675ef347fd0",
      "rows": 472,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/milestones.csv",
      "format": "csv",
      "table": "milestones",
      "key": "datasets/debt-management-and-repayment-app/v4/csv/milestones.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/csv/milestones.csv",
      "bytes": 99357,
      "sha256": "0280cd89939e1125796733f4406e2a3a739f8a27f6f95495ac743943602b2ccd",
      "rows": 1067,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "debt-management-and-repayment-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/debt-management-and-repayment-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/debt-management-and-repayment-app.json",
      "bytes": 464606,
      "sha256": "e6d91415b643bd94ffcdb64395542073be83214f2b0ea2eb84ce64424cd8deb2",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/sql/postgres.sql",
      "bytes": 208177,
      "sha256": "c2f4dc78a88f606d37fbf6c098b1fa1abb00146fe83b11b992a361207df2f4bb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/sql/mysql.sql",
      "bytes": 205982,
      "sha256": "c24437303f4f516063fea24b008c45a0c231d217e89a0fc981e2d67e1f7faa91",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/sql/mssql.sql",
      "bytes": 210482,
      "sha256": "a8e472336df1a38c5752f3754e46246c10a4ab192708b4b3901d6227e556f267",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/sql/sqlite.sql",
      "bytes": 205758,
      "sha256": "f68658735034b4ced097c4be1909bdafdf045a6d950f59c304aac8d97303bf6b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/prisma/seed.ts",
      "bytes": 397282,
      "sha256": "b54066ccdf1dcf09d9cd0b4c679947ef05871ac619afeec1f86dc01901b38f55",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/debt-management-and-repayment-app/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/debt-management-and-repayment-app/v4/django/fixtures.json",
      "bytes": 571284,
      "sha256": "b5a7680de1665fabd3907ede6523c7d7b2961dbe92c16288fede79f9ce6e9547",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767818149,
  "updatedAt": 1789095756710
}
