{
  "format": "dataset-manifest/1",
  "slug": "fitness-tracker-data",
  "version": 2,
  "seed": "fitness-tracker-data:1",
  "spec": {
    "format": "dataset/1",
    "slug": "fitness-tracker-data",
    "name": "Fitness Tracker Data",
    "tagline": "User profiles, workouts, diet plans, equipment details, and progress logs from a fitness tracking application.",
    "description": "Users engage with a fitness tracker to manage their workout routines and nutritional intake, striving towards their specific fitness goals. Each user profile contains personal information and preferences, allowing for a tailored experience. Users log their workouts, detailing types of exercises, durations, and intensities, while also tracking their dietary plans that align with their fitness aspirations. The equipment table catalogs various tools available for workouts, enabling users to record the gear they utilize during their sessions. Over time, progress data reflects users' advancements towards their fitness objectives, showcasing metrics such as weight loss, muscle gain, or improved stamina.\n\nIn this dataset, each row in the users table represents an individual user, linked to multiple workout entries in the workouts table through a user ID. The workouts table connects to the equipment table, allowing for analysis of which equipment is most commonly used in different types of workouts. Each workout session also correlates with a specific diet plan from the diet_plans table, illustrating the relationship between dietary choices and fitness activities. Progress entries, associated with user IDs, allow for the evaluation of how effectively users are reaching their goals over time by analyzing trends and changes.\n\nThe data answers questions such as which workout routines yield the best results for various body types, how specific dietary adjustments impact overall progress, and which pieces of equipment contribute most to achieving fitness targets. It is particularly useful for practicing data analysis, exploring user behavior, or developing predictive models for fitness trends. Note that the data is synthetic, designed to provide a realistic but artificial representation of a fitness tracking environment.",
    "domain": "saas",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "fitness",
      "workout",
      "diet",
      "nutrition",
      "exercise",
      "tracker",
      "users",
      "progress",
      "equipment"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user of the fitness tracking application, capturing personal details and preferences.",
        "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": "The user's email address."
          },
          "age": {
            "kind": "int",
            "min": 18,
            "max": 65,
            "description": "The age of the user."
          },
          "gender": {
            "kind": "enum",
            "values": [
              "male",
              "female",
              "other"
            ],
            "description": "The gender of the user."
          }
        }
      },
      "workouts": {
        "description": "This table tracks individual workout sessions, including their type, duration, and the user performing them.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each workout session."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user who performed the workout."
          },
          "workout_type": {
            "kind": "enum",
            "values": [
              "cardio",
              "strength",
              "flexibility"
            ],
            "description": "The type of workout performed."
          },
          "duration_minutes": {
            "kind": "int",
            "min": 10,
            "max": 120,
            "description": "Duration of the workout in minutes.",
            "distribution": "normal"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date when the workout was performed."
          }
        }
      },
      "diet_plans": {
        "description": "This table outlines various dietary plans available for users, detailing meal structure and caloric intake.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each diet plan."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user on this diet plan."
          },
          "meal_type": {
            "kind": "enum",
            "values": [
              "breakfast",
              "lunch",
              "dinner",
              "snack"
            ],
            "description": "The type of meal."
          },
          "calories": {
            "kind": "int",
            "min": 100,
            "max": 1500,
            "description": "Caloric value of the meal.",
            "distribution": "long-tail"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date of the meal entry."
          }
        }
      },
      "equipment": {
        "description": "This table lists various exercise equipment available for workouts, linked to the user using it.",
        "rows": 20,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each piece of equipment."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user who used the equipment."
          },
          "equipment_name": {
            "kind": "sentence",
            "description": "The name of the exercise equipment."
          },
          "purchase_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "The date when the equipment was purchased.",
            "trend": "growing"
          }
        }
      },
      "progress": {
        "description": "This table tracks user progress towards fitness goals, summarizing achievements over time.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each progress entry."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user whose progress is being tracked."
          },
          "goal_type": {
            "kind": "enum",
            "values": [
              "weight_loss",
              "muscle_gain",
              "endurance"
            ],
            "description": "Type of fitness goal."
          },
          "progress_value": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Percentage of the goal achieved.",
            "distribution": "high"
          },
          "date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "The date of the progress entry."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average workout duration per user?",
      "How many users are following each type of diet plan?",
      "Which workout types are the most popular among users?",
      "What percentage of users meet their fitness goals over time?",
      "How does equipment usage correlate with progress towards fitness goals?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Workouts",
        "sql": "SELECT users.full_name, workouts.workout_type, workouts.duration_minutes FROM users JOIN workouts ON users.id = workouts.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Duration by Workout Type",
        "sql": "SELECT workout_type, AVG(duration_minutes) FROM workouts GROUP BY workout_type;",
        "dialect": "postgres"
      },
      {
        "title": "Diet Plans per User",
        "sql": "SELECT users.full_name, COUNT(diet_plans.id) AS diet_plan_count FROM users LEFT JOIN diet_plans ON users.id = diet_plans.user_id GROUP BY users.id;",
        "dialect": "postgres"
      },
      {
        "title": "Progress Tracking Over Time",
        "sql": "SELECT date, AVG(progress_value) AS average_progress FROM progress GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      },
      {
        "title": "Equipment Usage and Goal Achievement",
        "sql": "SELECT equipment.equipment_name, AVG(progress.progress_value) FROM equipment JOIN progress ON equipment.user_id = progress.user_id GROUP BY equipment.equipment_name;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Personal Trainer Analytics",
        "body": "Personal trainers can leverage this dataset to analyze their clients' workout habits and dietary choices, helping them to personalize fitness programs. By understanding which workouts yield the best results, trainers can refine their approaches and improve client outcomes."
      },
      {
        "title": "User Engagement Monitoring",
        "body": "Fitness app developers can utilize this data to measure user engagement and track the effectiveness of their features. By evaluating workout frequency and dietary adherence, they can identify areas for improvement and enhance user experience."
      },
      {
        "title": "Nutritional Research",
        "body": "Nutritionists can use this dataset to study the dietary patterns of individuals engaged in fitness activities. This can help in understanding how different meal plans affect workout performance and overall fitness goals."
      },
      {
        "title": "Equipment Popularity Studies",
        "body": "Gym managers can analyze which equipment is most frequently used by their members, allowing them to make informed decisions on equipment purchases and layout design to optimize gym usage."
      }
    ]
  },
  "counts": {
    "users": 100,
    "diet_plans": 50,
    "equipment": 20,
    "progress": 150,
    "workouts": 300
  },
  "stats": {
    "users": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 100,
          "min": "Alice Brown",
          "max": "Zoe Flores"
        },
        "email": {
          "nulls": 0,
          "distinct": 100
        },
        "age": {
          "nulls": 0,
          "distinct": 41,
          "min": 18,
          "max": 64
        },
        "gender": {
          "nulls": 0,
          "distinct": 3,
          "min": "female",
          "max": "other"
        }
      }
    },
    "workouts": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 94,
          "min": 2,
          "max": 100
        },
        "workout_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "cardio",
          "max": "strength"
        },
        "duration_minutes": {
          "nulls": 0,
          "distinct": 69,
          "min": 27,
          "max": 106
        },
        "date": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-01",
          "max": "2023-12-31"
        }
      }
    },
    "diet_plans": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "user_id": {
          "nulls": 0,
          "distinct": 39,
          "min": 1,
          "max": 96
        },
        "meal_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "breakfast",
          "max": "snack"
        },
        "calories": {
          "nulls": 0,
          "distinct": 48,
          "min": 100,
          "max": 1457
        },
        "date": {
          "nulls": 0,
          "distinct": 47,
          "min": "2023-01-18",
          "max": "2023-12-29"
        }
      }
    },
    "equipment": {
      "rows": 20,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 20,
          "min": 1,
          "max": 20
        },
        "user_id": {
          "nulls": 0,
          "distinct": 19,
          "min": 2,
          "max": 93
        },
        "equipment_name": {
          "nulls": 0,
          "distinct": 20
        },
        "purchase_date": {
          "nulls": 0,
          "distinct": 20,
          "min": "2020-07-18",
          "max": "2023-11-23"
        }
      }
    },
    "progress": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "user_id": {
          "nulls": 0,
          "distinct": 80,
          "min": 3,
          "max": 100
        },
        "goal_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "endurance",
          "max": "weight_loss"
        },
        "progress_value": {
          "nulls": 0,
          "distinct": 147,
          "min": 0.25,
          "max": 100
        },
        "date": {
          "nulls": 0,
          "distinct": 124,
          "min": "2023-01-02",
          "max": "2023-12-31"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/fitness-tracker-data/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/csv/users.csv",
      "bytes": 4953,
      "sha256": "b5b88aea7101364fe216a38c4d927dd50d5a7919e22c89b9a3f0fecf1b93f64b",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/diet_plans.csv",
      "format": "csv",
      "table": "diet_plans",
      "key": "datasets/fitness-tracker-data/v2/csv/diet_plans.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/csv/diet_plans.csv",
      "bytes": 1519,
      "sha256": "20b65daebcfb1c674cc41602951b2d715f2e773a56b2a97a478c303f8dd084b8",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/equipment.csv",
      "format": "csv",
      "table": "equipment",
      "key": "datasets/fitness-tracker-data/v2/csv/equipment.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/csv/equipment.csv",
      "bytes": 1525,
      "sha256": "a6d8cf8b85ac5548484bc76124a9525cb4f97db00ada9e957818ccbcce5cdc27",
      "rows": 20,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/progress.csv",
      "format": "csv",
      "table": "progress",
      "key": "datasets/fitness-tracker-data/v2/csv/progress.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/csv/progress.csv",
      "bytes": 5354,
      "sha256": "ba431375d516e92ea3a3c084a639cdd27db4b231864530b368b02ebf49f18ea1",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/workouts.csv",
      "format": "csv",
      "table": "workouts",
      "key": "datasets/fitness-tracker-data/v2/csv/workouts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/csv/workouts.csv",
      "bytes": 9337,
      "sha256": "1939c75a48b14df9ef0f1f659ee3c9bd6f3db58cecadf197b04be76e47104525",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "fitness-tracker-data.json",
      "format": "json",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/fitness-tracker-data.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/fitness-tracker-data.json",
      "bytes": 88365,
      "sha256": "7ae68de162e5b0560501890a6df8b73850b11f6dac35f4d98cee563da00294a0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/sql/postgres.sql",
      "bytes": 34182,
      "sha256": "a410d783d11bfecf50ea3ca5eb616f8cd5825d922eab1c12276677fd170fb058",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/sql/mysql.sql",
      "bytes": 33623,
      "sha256": "0bfed64c178b9b8b927f1e9fd51fd4a447f7742d46f193e60a40c5142421b12a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/sql/mssql.sql",
      "bytes": 35283,
      "sha256": "56c66207345c2785a71f03c8e1a544ffba2471ed32f6fcbd60605968df8868eb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/sql/sqlite.sql",
      "bytes": 33457,
      "sha256": "e83544c83625b46b079247f6d4ec3c872ea5af7f4a63ec2cba2dd4d50ee3da38",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/prisma/seed.ts",
      "bytes": 67454,
      "sha256": "c1f8f694f9e0112c9997e9fbd8ba71a0b90d40986b2c4667db3238f6afd72211",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/fitness-tracker-data/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/fitness-tracker-data/v2/django/fixtures.json",
      "bytes": 114252,
      "sha256": "b2326044ee64d67d9f8a518c3c353878902e68e6fb04f5e9d17dec645fc48d53",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767949798,
  "updatedAt": 1788778828418
}
