{
  "format": "dataset-manifest/1",
  "slug": "cryptocurrency-wallet",
  "version": 2,
  "seed": "cryptocurrency-wallet:1",
  "spec": {
    "format": "dataset/1",
    "slug": "cryptocurrency-wallet",
    "name": "Cryptocurrency Transactions and Users",
    "tagline": "User profiles, wallet details, transaction history, and invoices from active cryptocurrency engagements.",
    "description": "Users engage in various financial activities in the cryptocurrency space, such as trading, staking, and withdrawing fiat currency. This dataset models user wallets, transaction history, and merchant invoices associated with purchases. The relationships between users and their transactions highlight clusters of activity in staking positions and fiat deposits, while support tickets are relatively rare, indicating smooth operations for most users. The data is synthetic and offers a rich landscape for practicing SQL and ORM seeding. It can help users understand transaction flows, identify active wallets, and analyze transaction patterns over time. The tables are designed to answer questions about user engagement, transaction frequency, and financial behavior in a rapidly evolving market.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "cryptocurrency",
      "transactions",
      "users",
      "wallets",
      "trading",
      "staking",
      "fiat",
      "invoices",
      "support"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user in the cryptocurrency platform, linked to their wallet and transaction history.",
        "rows": 100,
        "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": "User's email address."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Account creation date.",
            "dayProfile": "waking"
          }
        }
      },
      "wallets": {
        "description": "Each row represents a wallet associated with a user, containing wallet balance and type.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 2,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each wallet."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "References the user who owns this wallet."
          },
          "balance": {
            "kind": "decimal",
            "min": 0,
            "max": 100000,
            "scale": 2,
            "description": "Current balance in the wallet.",
            "nullable": true,
            "when": {
              "column": "currency_type",
              "in": [
                "BTC",
                "ETH"
              ]
            },
            "distribution": "heavy-tail"
          },
          "currency_type": {
            "kind": "enum",
            "values": [
              "BTC",
              "ETH",
              "USDT",
              "LTC"
            ],
            "description": "Type of cryptocurrency held in the wallet."
          }
        }
      },
      "transactions": {
        "description": "Each row records a transaction made by a user, detailing amounts, types, and timestamps.",
        "rows": {
          "per": "wallets",
          "via": "wallet_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "wallet_id": {
            "kind": "fk",
            "ref": "wallets.id",
            "description": "References the wallet from which the transaction is made."
          },
          "amount": {
            "kind": "decimal",
            "min": 0.01,
            "max": 10000,
            "scale": 2,
            "description": "Amount involved in the transaction.",
            "nullable": true,
            "when": {
              "column": "transaction_type",
              "in": [
                "withdrawal",
                "trade"
              ]
            },
            "distribution": "long-tail"
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "deposit",
              "withdrawal",
              "trade"
            ],
            "description": "Type of transaction performed."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the transaction.",
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      },
      "invoices": {
        "description": "Each row represents an invoice generated for purchases made using cryptocurrency.",
        "rows": {
          "per": "transactions",
          "via": "transaction_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each invoice."
          },
          "transaction_id": {
            "kind": "fk",
            "ref": "transactions.id",
            "description": "References the associated transaction."
          },
          "total_amount": {
            "kind": "decimal",
            "min": 1,
            "max": 5000,
            "scale": 2,
            "description": "Total amount on the invoice.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "merchant_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the merchant from whom the purchase was made.",
            "nullable": true,
            "pool": [
              "Amazon",
              "eBay",
              "Walmart",
              "Target",
              "BestBuy",
              "Shopify",
              "Etsy",
              "Alibaba",
              "Newegg",
              "Overstock",
              "Rakuten",
              "Zalando",
              "Costco",
              "Sears",
              "Macy's",
              "Kroger",
              "Lowe's",
              "HomeDepot",
              "Nordstrom",
              "Wayfair"
            ]
          },
          "invoice_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the invoice was issued.",
            "trend": "seasonal"
          }
        }
      },
      "support_tickets": {
        "description": "Each row represents a support ticket raised by a user for assistance.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 0,
          "max": 2,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each support ticket."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "References the user who raised the ticket."
          },
          "issue": {
            "kind": "sentence",
            "min": 10,
            "max": 200,
            "description": "Description of the issue.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "closed",
                "pending"
              ]
            }
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the ticket was created.",
            "dayProfile": "business"
          },
          "status": {
            "kind": "enum",
            "values": [
              "open",
              "closed",
              "pending"
            ],
            "description": "Current status of the support ticket."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "categorical"
    ],
    "analysisQuestions": [
      "What are the most common transaction types among users?",
      "How do wallet balances change over time?",
      "Which users are most frequently raising support tickets?",
      "What is the average amount spent on purchases?",
      "How do transaction amounts vary by currency type?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Wallets",
        "sql": "SELECT users.full_name, wallets.balance FROM users JOIN wallets ON users.id = wallets.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Transactions by Type",
        "sql": "SELECT transaction_type, COUNT(*) FROM transactions GROUP BY transaction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Invoice Amount by Merchant",
        "sql": "SELECT merchant_name, AVG(total_amount) FROM invoices GROUP BY merchant_name;",
        "dialect": "postgres"
      },
      {
        "title": "User Support Ticket Status",
        "sql": "SELECT users.full_name, COUNT(support_tickets.id) AS ticket_count, support_tickets.status FROM users LEFT JOIN support_tickets ON users.id = support_tickets.user_id GROUP BY users.full_name, support_tickets.status;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Database Development",
        "body": "Developers can use this dataset to seed databases for applications that involve cryptocurrency transactions and user management. It allows for testing various features related to user wallets and transaction histories."
      },
      {
        "title": "Financial Analytics",
        "body": "Data analysts can utilize this dataset to perform exploratory data analysis on cryptocurrency transaction patterns and user behavior. This can inform investment strategies and market analysis."
      },
      {
        "title": "Educational Purposes",
        "body": "Educators can leverage this dataset in courses focused on fintech and data analysis, providing students with practical examples of real-world financial applications."
      }
    ]
  },
  "counts": {
    "users": 100,
    "support_tickets": 64,
    "wallets": 138,
    "transactions": 290,
    "invoices": 490
  },
  "stats": {
    "users": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 100,
          "min": "Alice Adams",
          "max": "Yara Kowalski"
        },
        "email": {
          "nulls": 0,
          "distinct": 100
        },
        "created_at": {
          "nulls": 0,
          "distinct": 100,
          "min": "2020-01-01 13:14:03",
          "max": "2023-12-20 21:20:31"
        }
      }
    },
    "wallets": {
      "rows": 138,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 138,
          "min": 1,
          "max": 138
        },
        "user_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "balance": {
          "nulls": 58,
          "distinct": 80,
          "min": 0.06,
          "max": 99088.25
        },
        "currency_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "BTC",
          "max": "USDT"
        }
      }
    },
    "transactions": {
      "rows": 290,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 290,
          "min": 1,
          "max": 290
        },
        "wallet_id": {
          "nulls": 0,
          "distinct": 138,
          "min": 1,
          "max": 138
        },
        "amount": {
          "nulls": 97,
          "distinct": 193,
          "min": 0.15,
          "max": 9933.29
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "deposit",
          "max": "withdrawal"
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 290,
          "min": "2023-01-01 18:44:05",
          "max": "2023-12-31 19:16:38"
        }
      }
    },
    "invoices": {
      "rows": 490,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 490,
          "min": 1,
          "max": 490
        },
        "transaction_id": {
          "nulls": 0,
          "distinct": 290,
          "min": 1,
          "max": 290
        },
        "total_amount": {
          "nulls": 40,
          "distinct": 448,
          "min": 1.02,
          "max": 4999.17
        },
        "merchant_name": {
          "nulls": 41,
          "distinct": 300
        },
        "invoice_date": {
          "nulls": 0,
          "distinct": 258,
          "min": "2023-01-02",
          "max": "2023-12-30"
        }
      }
    },
    "support_tickets": {
      "rows": 64,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 64,
          "min": 1,
          "max": 64
        },
        "user_id": {
          "nulls": 0,
          "distinct": 44,
          "min": 1,
          "max": 100
        },
        "issue": {
          "nulls": 22,
          "distinct": 42
        },
        "created_at": {
          "nulls": 0,
          "distinct": 64,
          "min": "2023-01-04 11:03:52",
          "max": "2023-12-30 12:43:30"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "closed",
          "max": "pending"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/cryptocurrency-wallet/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/csv/users.csv",
      "bytes": 6047,
      "sha256": "2a6bade9c630c5ab55d8c735808dd234c4b10bd935eab198935f7982634974c9",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/support_tickets.csv",
      "format": "csv",
      "table": "support_tickets",
      "key": "datasets/cryptocurrency-wallet/v2/csv/support_tickets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/csv/support_tickets.csv",
      "bytes": 4574,
      "sha256": "e1e2a639d3c54d72117110d0e907ee2927f3b477a239c00963161462c966a15b",
      "rows": 64,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wallets.csv",
      "format": "csv",
      "table": "wallets",
      "key": "datasets/cryptocurrency-wallet/v2/csv/wallets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/csv/wallets.csv",
      "bytes": 2301,
      "sha256": "da0d31554cd161187f1113fc64130e3da59ca29c1d2dd13ff28981ff70be5586",
      "rows": 138,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/cryptocurrency-wallet/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/csv/transactions.csv",
      "bytes": 12123,
      "sha256": "2a052427d977016feb1fbbac572a67bd702f5cadb606af954dd64f9c0f394b19",
      "rows": 290,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/invoices.csv",
      "format": "csv",
      "table": "invoices",
      "key": "datasets/cryptocurrency-wallet/v2/csv/invoices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/csv/invoices.csv",
      "bytes": 19817,
      "sha256": "40199b2e6432c410cb06bd68e405b942a81b1914617af683c35281e8b5990c90",
      "rows": 490,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "cryptocurrency-wallet.json",
      "format": "json",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/cryptocurrency-wallet.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/cryptocurrency-wallet.json",
      "bytes": 165409,
      "sha256": "472f542ba07068621c8b87feaa6c911d8f2ee0096aac67d41f1b6d5035afb92b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/sql/postgres.sql",
      "bytes": 63709,
      "sha256": "5d22d7b29a0085308d4a7128a9d19545f521473fd47832f77526b14ff8c50990",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/sql/mysql.sql",
      "bytes": 63145,
      "sha256": "a9c4f3a76d68f390316cd6d08fea67abcd36ae2ccb9047cc1e7724236bb77e83",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/sql/mssql.sql",
      "bytes": 65609,
      "sha256": "90daef6f903aed0e13077b67ad7801f1f36517b0fc7d0e7962247671de9e1892",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/sql/sqlite.sql",
      "bytes": 62932,
      "sha256": "fa113ae92fef0c1e93d6ea0bea96777f5744ccea99e50dcb16f540e0988186b9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/prisma/seed.ts",
      "bytes": 135826,
      "sha256": "bc4e172f9ed3ab3092effb4271c3fb9879184d050e13b17dcfc6f5694b37849e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/cryptocurrency-wallet/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-wallet/v2/django/fixtures.json",
      "bytes": 213055,
      "sha256": "05a145c7b569a9c4db05a6a00f921cba68e9b31340f1f26e7dbc7fbb7f42b23d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734072831,
  "updatedAt": 1788778122200
}
