{
  "format": "dataset-manifest/1",
  "slug": "fitness-network-connections",
  "version": 3,
  "seed": "fitness-network-connections:1",
  "spec": {
    "format": "dataset/1",
    "slug": "fitness-network-connections",
    "name": "Fitness Network Connections",
    "tagline": "User interactions, workouts, meal logs, and friendships in a health and wellness community.",
    "description": "Users engage in a vibrant fitness community, participating in diverse workouts and tracking their meals to enhance their health and wellness. Each individual records their daily water intake, logs their meals, and shares their progress, creating a dynamic environment where personal journeys are intertwined. The social aspect is emphasized through friendships formed within the network and various challenges that motivate users to push their limits and achieve their fitness goals.\n\nThe 'users' table captures essential information about each participant, including personal details, fitness goals, and preferences. The 'workouts' table logs the various exercise sessions individuals undertake, detailing workout types, durations, and intensity levels. 'meal_logs' track users' nutritional habits by documenting their meals and caloric intake. Friendships are represented in the 'friendships' table, showing how individuals connect and support each other on their fitness journeys. Lastly, 'challenges' offer a framework for users to participate in competitions or group goals, fostering engagement and accountability.\n\nA single row in the 'users' table represents an individual member of the community, while the 'workouts' table illustrates the activities they have completed. Each entry in 'meal_logs' corresponds to a user’s food intake for a specific day. The 'friendships' table connects users, allowing analysis of social interactions, while the 'challenges' table reveals the competitive spirit that drives motivation. By joining these tables, you can explore how personal data, social connections, and challenges impact overall health outcomes.\n\nThis dataset is particularly useful for answering questions related to user engagement, meal tracking behavior, workout preferences, and the influence of social interactions on fitness goals. It provides an excellent practice opportunity for developers looking to analyze relational data and understand community dynamics in a health and wellness context. Please note that all data in this dataset is synthetic, designed for practice and experimentation.",
    "domain": "restaurants",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "fitness",
      "network",
      "workout",
      "meals",
      "social",
      "community",
      "health",
      "wellness"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table holds user profiles containing personal information and health metrics. Each user has a unique ID, and their data includes body measurements and workout preferences.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user."
          },
          "age": {
            "kind": "int",
            "min": 18,
            "max": 65,
            "description": "Age of the user.",
            "distribution": "normal"
          },
          "weight": {
            "kind": "decimal",
            "min": 40,
            "max": 150,
            "scale": 1,
            "description": "Weight of the user in kilograms.",
            "distribution": "normal"
          },
          "height": {
            "kind": "decimal",
            "min": 150,
            "max": 200,
            "scale": 1,
            "description": "Height of the user in centimeters.",
            "distribution": "normal"
          },
          "workout_preference": {
            "kind": "enum",
            "values": [
              "Cardio",
              "Strength",
              "Yoga",
              "Pilates",
              "CrossFit"
            ],
            "description": "Preferred type of workout.",
            "weights": [
              5,
              3,
              2,
              1,
              1
            ]
          }
        }
      },
      "workouts": {
        "description": "This table logs workouts performed by users, linking to the user profiles. Each workout entry captures details about the type of workout, duration, and calories burned.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each workout entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the user who performed the workout."
          },
          "workout_type": {
            "kind": "enum",
            "values": [
              "Running",
              "Swimming",
              "Cycling",
              "Weightlifting"
            ],
            "description": "Type of workout performed.",
            "weights": [
              6,
              4,
              3,
              2
            ]
          },
          "duration_minutes": {
            "kind": "int",
            "min": 5,
            "max": 180,
            "description": "Duration of the workout in minutes.",
            "distribution": "normal"
          },
          "calories_burned": {
            "kind": "decimal",
            "min": 50,
            "max": 1000,
            "scale": 1,
            "description": "Calories burned during the workout.",
            "distribution": "long-tail"
          },
          "workout_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the workout was performed.",
            "trend": "growing"
          }
        }
      },
      "meal_logs": {
        "description": "This table captures meals logged by users, with details on the meal type and nutrition information. Each log links to the user who recorded the meal.",
        "rows": 800,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each meal log entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the user who logged the meal."
          },
          "meal_type": {
            "kind": "enum",
            "values": [
              "Breakfast",
              "Lunch",
              "Dinner",
              "Snack"
            ],
            "description": "Type of meal.",
            "weights": [
              4,
              5,
              6,
              3
            ]
          },
          "calories_consumed": {
            "kind": "decimal",
            "min": 100,
            "max": 2000,
            "scale": 1,
            "description": "Calories consumed in the meal.",
            "distribution": "long-tail"
          },
          "meal_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the meal was logged.",
            "trend": "seasonal"
          }
        }
      },
      "friendships": {
        "description": "This table maintains friendships between users, indicating social connections within the community. Each entry links two users.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each friendship entry."
          },
          "user_id_1": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the first user in the friendship."
          },
          "user_id_2": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the second user in the friendship."
          },
          "friendship_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the friendship was formed.",
            "trend": "growing"
          }
        }
      },
      "challenges": {
        "description": "This table logs challenges that users participate in, tracking their involvement and achievements within the community. Each entry links to a user and a challenge.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each challenge entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the user participating in the challenge."
          },
          "challenge_name": {
            "kind": "words",
            "min": 5,
            "max": 50,
            "description": "Name of the fitness challenge."
          },
          "status": {
            "kind": "enum",
            "values": [
              "Ongoing",
              "Completed",
              "Failed"
            ],
            "description": "Current status of the challenge.",
            "weights": [
              7,
              2,
              1
            ]
          },
          "start_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Start date of the challenge.",
            "trend": "growing"
          },
          "end_date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "End date of the challenge.",
            "trend": "growing"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "geospatial",
      "timestamped",
      "categorical"
    ],
    "analysisQuestions": [
      "What are the most popular workout types among users?",
      "How does meal logging frequency impact workout performance?",
      "Which users have the most friendships and how does that relate to their fitness achievements?",
      "What challenges are most commonly completed versus failed?",
      "How do user demographics influence their workout preferences?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Workouts",
        "sql": "SELECT users.full_name, workouts.workout_type FROM users JOIN workouts ON users.id = workouts.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Calories Burned per Workout Type",
        "sql": "SELECT workout_type, AVG(calories_burned) FROM workouts GROUP BY workout_type;",
        "dialect": "postgres"
      },
      {
        "title": "Count of Users by Meal Type",
        "sql": "SELECT meal_type, COUNT(DISTINCT user_id) FROM meal_logs GROUP BY meal_type;",
        "dialect": "postgres"
      },
      {
        "title": "Total Calories Consumed Over Time",
        "sql": "SELECT meal_date, SUM(calories_consumed) FROM meal_logs GROUP BY meal_date ORDER BY meal_date;",
        "dialect": "postgres"
      },
      {
        "title": "Friendship Network Analysis",
        "sql": "SELECT u1.full_name AS user1, u2.full_name AS user2 FROM friendships JOIN users u1 ON friendships.user_id_1 = u1.id JOIN users u2 ON friendships.user_id_2 = u2.id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Fitness Trainer Analytics",
        "body": "Fitness trainers can utilize this dataset to analyze workout preferences and meal tracking habits among their clients. By understanding trends in user engagement and community interaction, trainers can tailor their programs to better meet the needs of their clients and enhance their fitness journeys."
      },
      {
        "title": "Health App Development",
        "body": "Developers of health and fitness applications can use this dataset for testing and improving their products. By simulating real-world user interactions and behaviors, developers can ensure their apps effectively track workouts, meals, and social connections, leading to a more engaging user experience."
      },
      {
        "title": "Academic Research",
        "body": "Researchers studying social behaviors in fitness communities can leverage this dataset to explore connections between social interactions and fitness outcomes. By analyzing the data, they can gain insights into how friendships and challenges impact individual health journeys."
      },
      {
        "title": "Nutritionist Insights",
        "body": "Nutritionists can analyze meal logs and user profiles to identify common dietary patterns and nutritional habits within the community. This information can help inform dietary recommendations and interventions tailored to specific user groups or demographics."
      }
    ]
  },
  "counts": {
    "users": 200,
    "challenges": 400,
    "friendships": 300,
    "meal_logs": 800,
    "workouts": 600
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 198,
          "min": "Alice Martin",
          "max": "Zoe Taylor"
        },
        "age": {
          "nulls": 0,
          "distinct": 31,
          "min": 27,
          "max": 58
        },
        "weight": {
          "nulls": 0,
          "distinct": 167,
          "min": 47,
          "max": 139.7
        },
        "height": {
          "nulls": 0,
          "distinct": 145,
          "min": 154.4,
          "max": 194.3
        },
        "workout_preference": {
          "nulls": 0,
          "distinct": 5,
          "min": "Cardio",
          "max": "Yoga"
        }
      }
    },
    "workouts": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "user_id": {
          "nulls": 0,
          "distinct": 188,
          "min": 1,
          "max": 200
        },
        "workout_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "Cycling",
          "max": "Weightlifting"
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 118,
          "min": 21,
          "max": 163
        },
        "calories_burned": {
          "nulls": 0,
          "distinct": 547,
          "min": 50,
          "max": 997.8
        },
        "workout_date": {
          "nulls": 0,
          "distinct": 391,
          "min": "2022-01-02",
          "max": "2023-12-31"
        }
      }
    },
    "meal_logs": {
      "rows": 800,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 800,
          "min": 1,
          "max": 800
        },
        "user_id": {
          "nulls": 0,
          "distinct": 197,
          "min": 1,
          "max": 200
        },
        "meal_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "Breakfast",
          "max": "Snack"
        },
        "calories_consumed": {
          "nulls": 0,
          "distinct": 743,
          "min": 100,
          "max": 1996.2
        },
        "meal_date": {
          "nulls": 0,
          "distinct": 462,
          "min": "2022-01-04",
          "max": "2023-12-30"
        }
      }
    },
    "friendships": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id_1": {
          "nulls": 0,
          "distinct": 153,
          "min": 1,
          "max": 200
        },
        "user_id_2": {
          "nulls": 0,
          "distinct": 147,
          "min": 2,
          "max": 200
        },
        "friendship_date": {
          "nulls": 0,
          "distinct": 242,
          "min": "2022-01-02",
          "max": "2023-12-28"
        }
      }
    },
    "challenges": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "user_id": {
          "nulls": 0,
          "distinct": 174,
          "min": 1,
          "max": 200
        },
        "challenge_name": {
          "nulls": 0,
          "distinct": 400
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "Completed",
          "max": "Ongoing"
        },
        "start_date": {
          "nulls": 0,
          "distinct": 301,
          "min": "2022-01-04",
          "max": "2023-12-30"
        },
        "end_date": {
          "nulls": 0,
          "distinct": 320,
          "min": "2022-01-02",
          "max": "2023-12-30"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/fitness-network-connections/v3/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/csv/users.csv",
      "bytes": 7755,
      "sha256": "707690f12718804c0d51780e53f3c21ee8bb7f126e33e2875dda18192e8b2de1",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/challenges.csv",
      "format": "csv",
      "table": "challenges",
      "key": "datasets/fitness-network-connections/v3/csv/challenges.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/csv/challenges.csv",
      "bytes": 93574,
      "sha256": "e84b4c9138ed02bd6effedb934349209741c352124eaec5f44d66dd58e05f761",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/friendships.csv",
      "format": "csv",
      "table": "friendships",
      "key": "datasets/fitness-network-connections/v3/csv/friendships.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/csv/friendships.csv",
      "bytes": 6828,
      "sha256": "bb70bdb91ab9505aa9fd6d61ea4cd982df48cc9f59a40342a340f28fcbeb6c1f",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/meal_logs.csv",
      "format": "csv",
      "table": "meal_logs",
      "key": "datasets/fitness-network-connections/v3/csv/meal_logs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/csv/meal_logs.csv",
      "bytes": 26357,
      "sha256": "f008105e5ed61cd380a6cec78935b73457e0762cd41b3e9128bb095ef745ab6d",
      "rows": 800,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/workouts.csv",
      "format": "csv",
      "table": "workouts",
      "key": "datasets/fitness-network-connections/v3/csv/workouts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/csv/workouts.csv",
      "bytes": 22520,
      "sha256": "da957c8bd94f4fe10f287c6d887fb26b221d0eb898717817453e88626792f197",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "fitness-network-connections.json",
      "format": "json",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/fitness-network-connections.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/fitness-network-connections.json",
      "bytes": 440106,
      "sha256": "b38b6987ba6c5ba07fe664273cb5ea1c2ddcce39badc440d15222e138978103a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/sql/postgres.sql",
      "bytes": 194724,
      "sha256": "29d6a4dd1aff93c5f788fa904d40175454e02f4dfdf818d6bc338631cccb2dea",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/sql/mysql.sql",
      "bytes": 194159,
      "sha256": "6e4b8521e8a7c467bcaa2f6e89e45b1947d45d4608367797142acb6c1a22357b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/sql/mssql.sql",
      "bytes": 199576,
      "sha256": "e7d72300bd90885b7b7ea3cbb0704276447e63a1a85d15ddcc7545c0b306a137",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/sql/sqlite.sql",
      "bytes": 193952,
      "sha256": "a3915e742a63f5c6091b50fa7867046cb8a3e99c2c4cb65cd06ba9295287a74a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/prisma/seed.ts",
      "bytes": 355159,
      "sha256": "5b989a94be6a74172e4682a47318c589b1abcbceed048b2ab27c6623a36d588e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/fitness-network-connections/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-network-connections/v3/django/fixtures.json",
      "bytes": 540871,
      "sha256": "fb8cdda8a9ca3aa0d48ab301528d9dd6a398206af20a2c4fae9f02e1ccb61f1f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765795215,
  "updatedAt": 1788784021971
}
