{
  "format": "dataset-manifest/1",
  "slug": "ecommerce-backup-insights",
  "version": 4,
  "seed": "ecommerce-backup-insights:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "ecommerce-backup-insights",
    "name": "Ecommerce Backup Insights",
    "tagline": "User accounts, backup schedules, files, and system performance metrics in ecommerce data management.",
    "description": "Users interact with the ecommerce platform to browse, purchase, and manage their accounts. Each user account in the 'users' table is linked to various backup activities, highlighting the relationship between user engagement and data protection measures. In a typical operation, scheduled backups are crucial to ensure that user data and transactional records are secure. The 'backup_schedules' table outlines the frequency and timing of these backups, while the 'backup_files' table catalogs the actual files generated during these operations, including their size and type. System performance is monitored through the 'system_performance' table, assessing how well the system handles data loads during peak times such as product launches and major sales events. These launches are documented in the 'product_launches' table, providing context for spikes in user activity and backup demands, as seen in the 'backup_activity' table, which records the frequency and volume of backups during these critical periods. This interconnectedness of tables allows developers to explore the intricate relationships between user behavior, backup strategies, and overall system performance. The dataset can help answer questions such as how user activity impacts backup schedules, what types of files are most frequently backed up, and how system performance varies during high-traffic events. This is an excellent opportunity for developers to practice data handling and analysis skills. The data is synthetic, simulating realistic ecommerce scenarios to facilitate your learning.",
    "domain": "ecommerce",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "ecommerce",
      "backup",
      "data management",
      "transactions",
      "user data",
      "system performance"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains user accounts with essential details such as email and account creation date. Each user can have multiple backup records linked to their activities.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "email": {
            "kind": "email",
            "description": "User's email address, used for account recovery."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the user account was created.",
            "dayProfile": "waking"
          },
          "last_login": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "The last time the user logged into their account."
          }
        }
      },
      "backup_schedules": {
        "description": "This table holds information on the schedules for backups initiated by users. Each record indicates the frequency of backups and the next scheduled backup time.",
        "rows": 180,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each backup schedule."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user who owns this backup schedule."
          },
          "backup_frequency": {
            "kind": "enum",
            "values": [
              "daily",
              "weekly",
              "monthly"
            ],
            "description": "Frequency of the scheduled backup.",
            "weights": [
              10,
              4,
              1
            ]
          },
          "next_backup": {
            "kind": "datetime",
            "after": "user_id.created_at",
            "withinDays": 30,
            "description": "Next scheduled backup time.",
            "nullable": true,
            "when": {
              "column": "backup_frequency",
              "in": [
                "daily",
                "weekly",
                "monthly"
              ]
            }
          },
          "backup_time": {
            "kind": "time",
            "from": "00:00:00",
            "to": "23:59:59",
            "description": "The time of day when the backup is scheduled to occur."
          }
        }
      },
      "backup_files": {
        "description": "This table records details about each backup file created, including the size and type of data being backed up.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each backup file."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user associated with this backup file."
          },
          "file_size": {
            "kind": "decimal",
            "min": 0.1,
            "max": 50,
            "scale": 2,
            "distribution": "long-tail",
            "description": "Size of the backup file in MB.",
            "nullable": true,
            "when": {
              "column": "file_type",
              "in": [
                "transaction",
                "user_data",
                "system_archive"
              ]
            }
          },
          "file_type": {
            "kind": "enum",
            "values": [
              "transaction",
              "user_data",
              "system_archive"
            ],
            "description": "Type of data stored in the backup file.",
            "weights": [
              6,
              3,
              1
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the backup file was created."
          }
        }
      },
      "system_performance": {
        "description": "This table captures system performance metrics during backup processes, allowing for analysis of efficiency and potential issues.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each performance record."
          },
          "backup_file_id": {
            "kind": "fk",
            "ref": "backup_files.id",
            "description": "Reference to the backup file associated with this performance record."
          },
          "duration": {
            "kind": "int",
            "min": 1,
            "max": 120,
            "description": "Duration of the backup process in minutes.",
            "distribution": "normal"
          },
          "success": {
            "kind": "bool",
            "trueRate": 0.95,
            "description": "Indicates whether the backup was successful."
          },
          "error_count": {
            "kind": "int",
            "min": 0,
            "max": 50,
            "distribution": "normal",
            "description": "Number of errors encountered during the backup process."
          },
          "average_speed": {
            "kind": "decimal",
            "min": 0.1,
            "max": 10,
            "scale": 2,
            "distribution": "normal",
            "description": "Average speed of the backup process in MB/min."
          }
        }
      },
      "product_launches": {
        "description": "This table logs product launches which may affect backup activity and frequency due to increased data transactions.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product launch."
          },
          "product_name": {
            "kind": "productName",
            "description": "Name of the product being launched."
          },
          "launch_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the product launch."
          }
        }
      },
      "backup_activity": {
        "description": "This table records the backup activity levels over time, providing insights into trends and peaks in backup demands.",
        "rows": 365,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each activity record."
          },
          "date": {
            "kind": "date",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date of the recorded backup activity.",
            "trend": "seasonal"
          },
          "total_backups": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Total number of backups performed on this date.",
            "distribution": "long-tail"
          },
          "peak_time": {
            "kind": "time",
            "from": "00:00:00",
            "to": "23:59:59",
            "description": "The time of day when backup activity is at its highest."
          },
          "user_count": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "distribution": "normal",
            "description": "Number of users who performed backups on this date."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "timestamped",
      "monetary",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the average size of backup files created by users?",
      "How does backup frequency correlate with successful backups?",
      "When do most product launches occur, and how do they impact backup activity?",
      "What patterns can be observed in backup durations over time?",
      "Which file types are most commonly backed up and how often?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Backup Files",
        "sql": "SELECT users.email, backup_files.file_size FROM users JOIN backup_files ON users.id = backup_files.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Total Backups by Frequency",
        "sql": "SELECT backup_schedules.backup_frequency, COUNT(backup_files.id) AS backup_count FROM backup_schedules JOIN backup_files ON backup_schedules.user_id = backup_files.user_id GROUP BY backup_schedules.backup_frequency;",
        "dialect": "postgres"
      },
      {
        "title": "Average Backup Duration",
        "sql": "SELECT AVG(duration) FROM system_performance;",
        "dialect": "postgres"
      },
      {
        "title": "Backups During Product Launches",
        "sql": "SELECT product_launches.product_name, COUNT(backup_files.id) AS backups_during_launch FROM product_launches LEFT JOIN backup_files ON product_launches.launch_date = backup_files.created_at GROUP BY product_launches.product_name;",
        "dialect": "postgres"
      },
      {
        "title": "Daily Backup Activity Trends",
        "sql": "SELECT date, SUM(total_backups) FROM backup_activity GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Database Administrators",
        "body": "Database administrators can use this dataset to practice SQL queries and optimize backup strategies. They can analyze how frequently backups occur and the size of files generated, leading to improved backup schedules tailored to user needs."
      },
      {
        "title": "Software Developers",
        "body": "Software developers can leverage this dataset for ORM seeding in applications that manage user accounts and backup processes. This synthetic data allows them to test features related to user management and system performance metrics."
      },
      {
        "title": "Data Analysts",
        "body": "Data analysts can utilize this dataset to explore trends in backup activities related to product launches. By examining the correlation between product launches and backup frequency, they can provide insights into system demands during peak times."
      },
      {
        "title": "Business Intelligence Professionals",
        "body": "Business intelligence professionals can use the dataset to create dashboards that visualize backup performance metrics. They can analyze success rates of backups and identify periods where system performance may be compromised."
      }
    ]
  },
  "counts": {
    "backup_activity": 365,
    "product_launches": 100,
    "users": 200,
    "backup_files": 500,
    "backup_schedules": 180,
    "system_performance": 300
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "email": {
          "nulls": 0,
          "distinct": 200
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2022-01-01 12:40:59",
          "max": "2023-12-26 19:39:42"
        },
        "last_login": {
          "nulls": 0,
          "distinct": 200,
          "min": "2022-01-04 14:42:13",
          "max": "2023-12-30 19:26:31"
        }
      }
    },
    "backup_schedules": {
      "rows": 180,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 180,
          "min": 1,
          "max": 180
        },
        "user_id": {
          "nulls": 0,
          "distinct": 122,
          "min": 1,
          "max": 200
        },
        "backup_frequency": {
          "nulls": 0,
          "distinct": 3,
          "min": "daily",
          "max": "weekly"
        },
        "next_backup": {
          "nulls": 0,
          "distinct": 180,
          "min": "2022-01-13 06:32:49",
          "max": "2024-01-11 12:51:40"
        },
        "backup_time": {
          "nulls": 0,
          "distinct": 180,
          "min": "00:12:19",
          "max": "23:55:20"
        }
      }
    },
    "backup_files": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "user_id": {
          "nulls": 0,
          "distinct": 185,
          "min": 1,
          "max": 200
        },
        "file_size": {
          "nulls": 0,
          "distinct": 453,
          "min": 0.1,
          "max": 49.89
        },
        "file_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "system_archive",
          "max": "user_data"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-05 03:32:21",
          "max": "2023-12-30 12:32:00"
        }
      }
    },
    "system_performance": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "backup_file_id": {
          "nulls": 0,
          "distinct": 223,
          "min": 5,
          "max": 500
        },
        "duration": {
          "nulls": 0,
          "distinct": 74,
          "min": 17,
          "max": 107
        },
        "success": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        },
        "error_count": {
          "nulls": 0,
          "distinct": 36,
          "min": 5,
          "max": 44
        },
        "average_speed": {
          "nulls": 0,
          "distinct": 217,
          "min": 1.13,
          "max": 8.56
        }
      }
    },
    "product_launches": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "product_name": {
          "nulls": 0,
          "distinct": 88,
          "min": "Classic Camera",
          "max": "Wireless Router"
        },
        "launch_date": {
          "nulls": 0,
          "distinct": 100,
          "min": "2022-01-05 17:41:47",
          "max": "2023-12-13 10:24:05"
        }
      }
    },
    "backup_activity": {
      "rows": 365,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 365,
          "min": 1,
          "max": 365
        },
        "date": {
          "nulls": 0,
          "distinct": 290,
          "min": "2022-01-01",
          "max": "2023-12-29"
        },
        "total_backups": {
          "nulls": 0,
          "distinct": 97,
          "min": 0,
          "max": 100
        },
        "peak_time": {
          "nulls": 0,
          "distinct": 365,
          "min": "00:10:57",
          "max": "23:59:20"
        },
        "user_count": {
          "nulls": 0,
          "distinct": 66,
          "min": 7,
          "max": 85
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/backup_activity.csv",
      "format": "csv",
      "table": "backup_activity",
      "key": "datasets/ecommerce-backup-insights/v4/csv/backup_activity.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/backup_activity.csv",
      "bytes": 11134,
      "sha256": "55504bb3e7d16dd7cd54f7c0596f97b6d8c99805a60da942d24d4ba0a9c2f9b4",
      "rows": 365,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/product_launches.csv",
      "format": "csv",
      "table": "product_launches",
      "key": "datasets/ecommerce-backup-insights/v4/csv/product_launches.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/product_launches.csv",
      "bytes": 3933,
      "sha256": "d632471f29b79aed34287c0d7d551163ec9eb848e9fe1bdd810b3de0e6b0723d",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/ecommerce-backup-insights/v4/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/users.csv",
      "bytes": 13728,
      "sha256": "f0a897379de00496bed45bf9f463087213edc7376f74fa86a5b395ae2d5b0d4e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/backup_files.csv",
      "format": "csv",
      "table": "backup_files",
      "key": "datasets/ecommerce-backup-insights/v4/csv/backup_files.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/backup_files.csv",
      "bytes": 22767,
      "sha256": "4ddc15ef8105321a9e67c70b9e14145e3858e14cfe334e2b9656e602920a7aed",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/backup_schedules.csv",
      "format": "csv",
      "table": "backup_schedules",
      "key": "datasets/ecommerce-backup-insights/v4/csv/backup_schedules.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/backup_schedules.csv",
      "bytes": 7841,
      "sha256": "50c09212f0bb6cba08320f0163862818468bcd1bace3230342f378dd87b6cf0c",
      "rows": 180,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/system_performance.csv",
      "format": "csv",
      "table": "system_performance",
      "key": "datasets/ecommerce-backup-insights/v4/csv/system_performance.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/csv/system_performance.csv",
      "bytes": 7403,
      "sha256": "6cb1fb220fbe3b922e595a682f11ac9597861606562098f4296fa557b57e09b8",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ecommerce-backup-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/ecommerce-backup-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/ecommerce-backup-insights.json",
      "bytes": 245447,
      "sha256": "eef610cc0a49e239d45fd9dad4c7af8b869fd50351fd8ef2301559ddaa9ac2ff",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/sql/postgres.sql",
      "bytes": 92699,
      "sha256": "603fe877dd66d21f7c3621251761a51d6967cf2cdfc96cbb9f222b27b6cb3014",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/sql/mysql.sql",
      "bytes": 91047,
      "sha256": "4bb277d4101593021e7f92622273b8acb15c45fd6da5c3bdceea4d3bc0554263",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/sql/mssql.sql",
      "bytes": 94553,
      "sha256": "a18aedb13b5182c507bd54327c0666b2d69a7230ddc0d053814e5517ecfda53e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/sql/sqlite.sql",
      "bytes": 90847,
      "sha256": "1ca4477160d9418887ef2b9f6acb0cdd8fcfbe501c6de28acaaf96c24e60b86b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/prisma/seed.ts",
      "bytes": 202696,
      "sha256": "f40e3fabeec7e748a90e335f0ea5078aefc1f5528de032463d6bb26e5533102e",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ecommerce-backup-insights/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-backup-insights/v4/django/fixtures.json",
      "bytes": 325921,
      "sha256": "f378c5bc20d45fe7b3310be97e977778bfa6d7601651448629d2121bec99f3bf",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766955604,
  "updatedAt": 1789095776182
}
