{
  "format": "dataset-manifest/1",
  "slug": "mental-health-support-app",
  "version": 3,
  "seed": "mental-health-support-app:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "mental-health-support-app",
    "name": "Mental Wellness Insights",
    "tagline": "Users, therapists, mood logs, activities, and engagement metrics from a mental health support platform.",
    "description": "Users track their moods and engage with various mental wellness activities on a dynamic platform that connects them with therapists. Each user creates a profile in the users table, where their unique characteristics, habits, and preferences are recorded. They can also log their mood over time in the mood_logs table, providing crucial insight into their emotional journey. Meanwhile, the therapists table includes professionals who offer guidance and support, detailing their qualifications and specialties, creating a bridge for users seeking help. To foster personal growth, users can engage in activities listed in the activities table, which outlines different therapeutic exercises designed to enhance mental health and well-being.\n\nEach interaction within this platform is tied together through relational data. For example, each mood log entry is associated with a specific user, enabling trends and patterns to be identified over time. The engagement_metrics table captures overall user interaction with the platform, including goal completion rates and participation in group discussions, highlighting how users are capitalizing on the available resources. This connectivity allows developers to explore complex relationships between users, their mood trends, and the effectiveness of various activities.\n\nQuestions that can be answered using this data include: How do users’ moods fluctuate over time in relation to their engagement in activities? What types of activities correlate with higher therapist engagement levels? Are there specific demographics that show different engagement patterns? Analyzing this synthetic data provides a playground for developers to practice building queries, generating insights, and creating visualizations that can inform mental wellness strategies, ultimately aiding the understanding of user behavior in a supportive environment.",
    "domain": "customer-support",
    "shape": "ledger",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "mental health",
      "user engagement",
      "therapy",
      "mood tracking",
      "support platform"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "A table of users who participate in the mental wellness platform. Each row represents a unique user with their details.",
        "rows": 300,
        "columns": {
          "user_id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the user."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the user."
          },
          "join_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date the user joined the platform.",
            "trend": "growing"
          },
          "active": {
            "kind": "bool",
            "trueRate": 0.8,
            "description": "Whether the user is currently active on the platform."
          }
        }
      },
      "therapists": {
        "description": "A table of therapists available on the platform. Each row represents a unique therapist.",
        "rows": 100,
        "columns": {
          "therapist_id": {
            "kind": "pk",
            "description": "Unique identifier for each therapist."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the therapist."
          },
          "specialization": {
            "kind": "enum",
            "values": [
              "CBT",
              "DBT",
              "Mindfulness",
              "Psychoanalysis"
            ],
            "description": "Therapeutic specialization of the therapist.",
            "nullable": true,
            "weights": [
              6,
              2,
              1,
              1
            ]
          },
          "availability": {
            "kind": "bool",
            "trueRate": 0.7,
            "description": "Whether the therapist is currently available for sessions.",
            "nullable": true,
            "when": {
              "column": "specialization",
              "in": [
                "CBT",
                "DBT",
                "Mindfulness",
                "Psychoanalysis"
              ]
            }
          }
        }
      },
      "mood_logs": {
        "description": "A table tracking users' mood over time. Each row represents a mood entry by a user.",
        "rows": 1000,
        "columns": {
          "log_id": {
            "kind": "pk",
            "description": "Unique identifier for each mood log entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.user_id",
            "description": "Foreign key linking to the user."
          },
          "mood": {
            "kind": "enum",
            "values": [
              "happy",
              "sad",
              "anxious",
              "calm"
            ],
            "weights": [
              0.4,
              0.3,
              0.2,
              0.1
            ],
            "description": "Mood of the user at the time of logging."
          },
          "log_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the mood was logged.",
            "nullable": true,
            "when": {
              "column": "mood",
              "in": [
                "happy",
                "sad",
                "anxious",
                "calm"
              ]
            },
            "trend": "seasonal"
          },
          "mood_intensity": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "distribution": "normal",
            "description": "Intensity of the mood on a scale from 1 to 10."
          },
          "duration_minutes": {
            "kind": "int",
            "min": 1,
            "max": 1440,
            "distribution": "normal",
            "description": "Duration in minutes that the mood was felt."
          }
        }
      },
      "activities": {
        "description": "A table of activities that users can engage in to improve their mental wellness. Each row represents an activity.",
        "rows": 50,
        "columns": {
          "activity_id": {
            "kind": "pk",
            "description": "Unique identifier for each activity."
          },
          "name": {
            "kind": "title",
            "description": "Name of the activity.",
            "nullable": true,
            "pool": [
              "meditation",
              "yoga",
              "journaling",
              "breathing",
              "exercise",
              "walking",
              "reading",
              "painting",
              "gardening",
              "cooking",
              "dancing",
              "running",
              "hiking",
              "stretching",
              "fishing",
              "knitting",
              "singing",
              "crafting",
              "volunteering",
              "traveling",
              "photography",
              "biking",
              "writing",
              "listening",
              "relaxing",
              "exploring",
              "playing",
              "meditative",
              "mindfulness",
              "self-care",
              "nature-walk",
              "goal-setting",
              "community-service",
              "therapy",
              "support-group",
              "workshop",
              "seminar",
              "retreat",
              "mind-mapping",
              "coaching",
              "counseling",
              "affirmations",
              "visualization",
              "aromatherapy",
              "pet-therapy",
              "music-therapy",
              "dance-therapy",
              "art-therapy",
              "drama-therapy"
            ],
            "min": 1,
            "max": 3
          },
          "type": {
            "kind": "enum",
            "values": [
              "exercise",
              "meditation",
              "journaling",
              "discussion"
            ],
            "description": "Type of activity.",
            "weights": [
              5,
              4,
              3,
              2
            ]
          },
          "difficulty": {
            "kind": "enum",
            "values": [
              "easy",
              "medium",
              "hard"
            ],
            "description": "Difficulty level of the activity.",
            "nullable": true,
            "when": {
              "column": "type",
              "in": [
                "exercise",
                "meditation",
                "journaling",
                "discussion"
              ]
            }
          }
        }
      },
      "engagement_metrics": {
        "description": "A table capturing the engagement of users with the platform's features. Each row represents engagement metrics for a user.",
        "rows": 300,
        "columns": {
          "engagement_id": {
            "kind": "pk",
            "description": "Unique identifier for the engagement record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.user_id",
            "description": "Foreign key linking to the user."
          },
          "activities_completed": {
            "kind": "int",
            "min": 0,
            "max": 20,
            "description": "Number of activities completed by the user.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "sessions_attended": {
            "kind": "int",
            "min": 0,
            "max": 15,
            "description": "Number of therapy sessions attended by the user.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "last_engagement_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date of the last engagement with the platform.",
            "trend": "growing"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "timestamped",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the average mood logged by users over time?",
      "How do different activities correlate with mood improvement?",
      "What percentage of users actively engage in group discussions?",
      "Which therapists have the highest engagement rates among users?"
    ],
    "suggestedQueries": [
      {
        "title": "Get all active users",
        "sql": "SELECT * FROM users WHERE active = TRUE;",
        "dialect": "postgres"
      },
      {
        "title": "Count mood logs by mood type",
        "sql": "SELECT mood, COUNT(*) FROM mood_logs GROUP BY mood;",
        "dialect": "postgres"
      },
      {
        "title": "Average activities completed by active users",
        "sql": "SELECT AVG(activities_completed) FROM engagement_metrics WHERE user_id IN (SELECT user_id FROM users WHERE active = TRUE);",
        "dialect": "postgres"
      },
      {
        "title": "Users' last engagement dates",
        "sql": "SELECT u.full_name, e.last_engagement_date FROM users u JOIN engagement_metrics e ON u.user_id = e.user_id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysis for Mental Health Research",
        "body": "Researchers can use this dataset to analyze trends in user engagement and mood over time, helping to identify effective therapeutic activities and support strategies."
      },
      {
        "title": "Training SQL Skills",
        "body": "Developers and data analysts can practice their SQL skills by querying this dataset, gaining experience with joins, aggregates, and subqueries relevant to customer support contexts."
      },
      {
        "title": "Teaching Data Literacy",
        "body": "Educators can use this dataset to teach data literacy concepts, showing students how to analyze user behavior data and derive insights that can inform mental health support strategies."
      },
      {
        "title": "Application Development for Mental Wellness",
        "body": "Software developers can utilize this dataset to build applications that track user wellness activities, mood logging, and therapist interactions, enhancing mental health support tools."
      }
    ]
  },
  "counts": {
    "activities": 50,
    "therapists": 100,
    "users": 300,
    "engagement_metrics": 300,
    "mood_logs": 1000
  },
  "stats": {
    "users": {
      "rows": 300,
      "columns": {
        "user_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 0,
          "distinct": 290,
          "min": "Alice Carter",
          "max": "Zoe Wang"
        },
        "email": {
          "nulls": 0,
          "distinct": 296
        },
        "join_date": {
          "nulls": 0,
          "distinct": 263,
          "min": "2020-01-12",
          "max": "2023-12-28"
        },
        "active": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "therapists": {
      "rows": 100,
      "columns": {
        "therapist_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 98,
          "min": "Ana Dubois",
          "max": "Zara Yilmaz"
        },
        "specialization": {
          "nulls": 11,
          "distinct": 4,
          "min": "CBT",
          "max": "Psychoanalysis"
        },
        "availability": {
          "nulls": 11,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "mood_logs": {
      "rows": 1000,
      "columns": {
        "log_id": {
          "nulls": 0,
          "distinct": 1000,
          "min": 1,
          "max": 1000
        },
        "user_id": {
          "nulls": 0,
          "distinct": 290,
          "min": 1,
          "max": 300
        },
        "mood": {
          "nulls": 0,
          "distinct": 4,
          "min": "anxious",
          "max": "sad"
        },
        "log_date": {
          "nulls": 0,
          "distinct": 704,
          "min": "2020-01-02",
          "max": "2023-12-31"
        },
        "mood_intensity": {
          "nulls": 0,
          "distinct": 8,
          "min": 2,
          "max": 9
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 567,
          "min": 117,
          "max": 1319
        }
      }
    },
    "activities": {
      "rows": 50,
      "columns": {
        "activity_id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "name": {
          "nulls": 4,
          "distinct": 44
        },
        "type": {
          "nulls": 0,
          "distinct": 4,
          "min": "discussion",
          "max": "meditation"
        },
        "difficulty": {
          "nulls": 0,
          "distinct": 3,
          "min": "easy",
          "max": "medium"
        }
      }
    },
    "engagement_metrics": {
      "rows": 300,
      "columns": {
        "engagement_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 182,
          "min": 3,
          "max": 299
        },
        "activities_completed": {
          "nulls": 29,
          "distinct": 21,
          "min": 0,
          "max": 20
        },
        "sessions_attended": {
          "nulls": 27,
          "distinct": 16,
          "min": 0,
          "max": 15
        },
        "last_engagement_date": {
          "nulls": 0,
          "distinct": 263,
          "min": "2020-01-05",
          "max": "2023-12-30"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/activities.csv",
      "format": "csv",
      "table": "activities",
      "key": "datasets/mental-health-support-app/v3/csv/activities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/csv/activities.csv",
      "bytes": 1922,
      "sha256": "d93172c6a70999d6c57be521f584d394f363bca26eb913f84c295a3f1491050d",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/therapists.csv",
      "format": "csv",
      "table": "therapists",
      "key": "datasets/mental-health-support-app/v3/csv/therapists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/csv/therapists.csv",
      "bytes": 2699,
      "sha256": "31d20df6357fea41b52c643f87594a55d4cb46c2622bab8f57150edcb1361245",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/mental-health-support-app/v3/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/csv/users.csv",
      "bytes": 17209,
      "sha256": "9b69febe0f0e9021443a756a2e52dda44b2f06b70ff8ba7aca1bfeb07f74c174",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/engagement_metrics.csv",
      "format": "csv",
      "table": "engagement_metrics",
      "key": "datasets/mental-health-support-app/v3/csv/engagement_metrics.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/csv/engagement_metrics.csv",
      "bytes": 7135,
      "sha256": "b9c5116a9a49d50d5391dcfa040746966fa78c6c0e798c09be2bfeb4288b6c3d",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/mood_logs.csv",
      "format": "csv",
      "table": "mood_logs",
      "key": "datasets/mental-health-support-app/v3/csv/mood_logs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/csv/mood_logs.csv",
      "bytes": 31328,
      "sha256": "1073f1176de2a6fbebe4155b7491a12cdb9abbe8185ce7e9c4d4e37fb19e5119",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "mental-health-support-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/mental-health-support-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/mental-health-support-app.json",
      "bytes": 287433,
      "sha256": "a704672068e7ad1a4004590d5ee8177bbb9bfe4cca32b4a2bc07181575a62ec8",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/sql/postgres.sql",
      "bytes": 89218,
      "sha256": "e14d29d83fb44b77bbe89cae9b984bceea3019ef3d87913c60591571d2064495",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/sql/mysql.sql",
      "bytes": 87304,
      "sha256": "0815d4101767d6bde1e3de674571870b886d0870ede95c6ad8c69e66874a8c00",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/sql/mssql.sql",
      "bytes": 91162,
      "sha256": "82d8f19b78b402b53bf210111a2373337330eb137ca1bfb4c6c63ed203efaaeb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/sql/sqlite.sql",
      "bytes": 87148,
      "sha256": "3f57c0a24ac094ace5e8f09fece0f1b8e904d45c078c7fffaba5eeb19b5aa3ef",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/prisma/seed.ts",
      "bytes": 218644,
      "sha256": "a698b32f3a9765f79eb49f1567aac428d2193e85030229820ef105746c6889d1",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/mental-health-support-app/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/mental-health-support-app/v3/django/fixtures.json",
      "bytes": 352221,
      "sha256": "cb9e25307f9ea6b1886f48f06eac4d2785e5f4ecdd27d10140adec7ab8b7f2d8",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767606031,
  "updatedAt": 1789095937941
}
