{
  "format": "dataset-manifest/1",
  "slug": "database-administrators",
  "version": 3,
  "seed": "database-administrators:1",
  "spec": {
    "format": "dataset/1",
    "slug": "database-administrators",
    "name": "Database Efficiency Insights",
    "tagline": "Disk volumes, maintenance logs, user credentials, and alert records for optimizing database performance.",
    "description": "Database administrators optimize performance and reliability of database systems daily. They manage disk volumes, monitor patch histories, and analyze performance metrics to ensure that operations run smoothly. Activities include auditing user credentials, overseeing replication setups, and coordinating ongoing maintenance windows, all of which are crucial for maintaining seamless database functionality. During peak usage periods, instances of critical alerts and change requests arise, prompting administrators to act swiftly, while most records reflect routine maintenance activities and standard user interactions.\n\nThe data contains several interconnected tables. The 'disk_volumes' table holds records of storage allocations and their performance metrics, with each row detailing an individual disk's usage statistics. The 'maintenance' table tracks scheduled updates and repairs, linking to the 'disk_volumes' table through a foreign key that identifies the specific disk being maintained. Within this structure, the 'user_credentials' table stores information on the individuals accessing the database, allowing for analysis of user activity patterns and security protocols. The 'replication_setups' table outlines configurations for data redundancy, connecting with both the 'disk_volumes' and 'maintenance' tables to provide insights into backup strategies and their effectiveness. Lastly, 'alert_logs' capture critical incidents and alerts that arise, relating back to user activity and maintenance actions, thus providing context for database performance and incidents.\n\nThis dataset is perfect for developers looking to practice querying and analyzing data in a realistic business environment. Questions about user access patterns, maintenance efficiency, and alert response times can be explored using this synthetic data. Additionally, you can examine how various maintenance activities impact database performance over time, providing a rich ground for honing SQL and data analysis skills.",
    "domain": "hr",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "database",
      "administration",
      "performance",
      "maintenance",
      "alerts",
      "replication",
      "user_credentials"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "disk_volumes": {
        "description": "This table contains information about different disk volumes used in the database environment. Each row links to a unique volume identifier and provides details on its usage and status.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the disk volume."
          },
          "volume_name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the disk volume.",
            "pool": [
              "data",
              "backup",
              "archive",
              "primary",
              "secondary",
              "temp",
              "snapshot",
              "replica",
              "volume",
              "storage",
              "disk",
              "system",
              "media",
              "cloud",
              "local",
              "remote",
              "drive",
              "partition",
              "filesystem",
              "cache",
              "mirror"
            ]
          },
          "capacity_gb": {
            "kind": "int",
            "min": 100,
            "max": 10000,
            "description": "Total capacity of the disk volume in gigabytes."
          },
          "used_space_gb": {
            "kind": "int",
            "min": 0,
            "max": 10000,
            "description": "Amount of used space on the disk volume in gigabytes.",
            "distribution": "long-tail"
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "inactive",
              "maintenance"
            ],
            "description": "Current status of the disk volume.",
            "weights": [
              8,
              2,
              1
            ]
          }
        }
      },
      "maintenance": {
        "description": "This table records scheduled maintenance activities for the database. Each maintenance event is linked to a specific disk volume and includes the time and type of maintenance performed.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the maintenance event."
          },
          "disk_volume_id": {
            "kind": "fk",
            "ref": "disk_volumes.id",
            "description": "Foreign key linking to the disk volume being maintained."
          },
          "scheduled_time": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Scheduled date and time for the maintenance event.",
            "dayProfile": "business"
          },
          "maintenance_type": {
            "kind": "enum",
            "values": [
              "upgrade",
              "repair",
              "check",
              "backup"
            ],
            "description": "Type of maintenance being performed.",
            "weights": [
              5,
              3,
              2,
              1
            ]
          }
        }
      },
      "user_credentials": {
        "description": "This table stores information about users who have access to the database. Each credential entry is linked to a specific user and includes their role and status.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the user credential."
          },
          "username": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Username of the database user.",
            "pool": [
              "admin",
              "user",
              "guest",
              "manager",
              "developer",
              "analyst",
              "operator",
              "support",
              "tester",
              "editor",
              "viewer",
              "contributor",
              "owner",
              "superuser",
              "client",
              "member",
              "team",
              "lead",
              "account",
              "service"
            ]
          },
          "password_hash": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Hashed password for the user.",
            "pool": [
              "hash",
              "secure",
              "encrypted",
              "salted",
              "protected",
              "encoded",
              "token",
              "credential",
              "key",
              "string",
              "cipher",
              "digest",
              "algorithm",
              "secret",
              "authentication",
              "verification",
              "access",
              "login",
              "password",
              "user",
              "data"
            ]
          },
          "role": {
            "kind": "enum",
            "values": [
              "admin",
              "developer",
              "analyst",
              "viewer"
            ],
            "description": "Role assigned to the user.",
            "weights": [
              4,
              3,
              2,
              1
            ]
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "inactive"
            ],
            "description": "Current status of the user credential.",
            "weights": [
              7,
              3
            ]
          }
        }
      },
      "replication_setups": {
        "description": "This table tracks the replication setups within the database environment. Each entry is linked to a specific disk volume and includes details about the replication status.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the replication setup."
          },
          "disk_volume_id": {
            "kind": "fk",
            "ref": "disk_volumes.id",
            "description": "Foreign key linking to the disk volume being replicated."
          },
          "replication_type": {
            "kind": "enum",
            "values": [
              "synchronous",
              "asynchronous"
            ],
            "description": "Type of replication setup.",
            "weights": [
              7,
              1
            ]
          },
          "status": {
            "kind": "enum",
            "values": [
              "active",
              "failed",
              "pending"
            ],
            "description": "Current status of the replication.",
            "weights": [
              6,
              2,
              1
            ]
          }
        }
      },
      "alert_logs": {
        "description": "This table captures alerts generated from the database system. Each alert is linked to a specific disk volume and provides information on alert type and timestamp.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the alert log entry."
          },
          "disk_volume_id": {
            "kind": "fk",
            "ref": "disk_volumes.id",
            "description": "Foreign key linking to the disk volume associated with the alert."
          },
          "alert_type": {
            "kind": "enum",
            "values": [
              "critical",
              "warning",
              "info"
            ],
            "description": "Type of alert generated."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "Date and time when the alert was generated.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "self-referencing"
    ],
    "analysisQuestions": [
      "What is the average used space across all disk volumes?",
      "How often do maintenance windows overlap with peak usage times?",
      "Which types of alerts are most frequently triggered?",
      "What is the status distribution of disk volumes?",
      "How many users have admin access compared to other roles?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Disk Volumes and Maintenance Records",
        "sql": "SELECT dv.volume_name, m.maintenance_type FROM disk_volumes dv JOIN maintenance m ON dv.id = m.disk_volume_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Alerts by Type",
        "sql": "SELECT alert_type, COUNT(*) FROM alert_logs GROUP BY alert_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Used Space for Active Volumes",
        "sql": "SELECT AVG(used_space_gb) FROM disk_volumes WHERE status = 'active';",
        "dialect": "postgres"
      },
      {
        "title": "Maintenance Events Over Time",
        "sql": "SELECT DATE(scheduled_time) AS date, COUNT(*) FROM maintenance GROUP BY date;",
        "dialect": "postgres"
      },
      {
        "title": "User Role Distribution",
        "sql": "SELECT role, COUNT(*) FROM user_credentials GROUP BY role;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Database Performance Analysis",
        "body": "Database administrators can utilize this dataset to analyze performance metrics across various disk volumes. By examining the relationship between disk usage and maintenance events, they can identify trends and optimize resource allocation."
      },
      {
        "title": "User Access Management",
        "body": "HR teams can leverage the user_credentials table to review access levels assigned to employees. This allows for better management of user roles and ensuring that only authorized personnel have access to sensitive database systems."
      },
      {
        "title": "Alert Monitoring",
        "body": "Database teams can monitor alert logs to identify recurring issues within the database environment. By analyzing the types and frequencies of alerts, they can prioritize resources for maintenance and troubleshooting."
      },
      {
        "title": "Replication Setup Review",
        "body": "This dataset provides insights into replication setups, which can be crucial for ensuring data integrity and availability. Database administrators can assess the effectiveness of current configurations and make necessary adjustments."
      }
    ]
  },
  "counts": {
    "disk_volumes": 200,
    "alert_logs": 200,
    "maintenance": 150,
    "replication_setups": 100,
    "user_credentials": 300
  },
  "stats": {
    "disk_volumes": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "volume_name": {
          "nulls": 0,
          "distinct": 150
        },
        "capacity_gb": {
          "nulls": 0,
          "distinct": 198,
          "min": 134,
          "max": 9938
        },
        "used_space_gb": {
          "nulls": 0,
          "distinct": 192,
          "min": 0,
          "max": 9840
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "active",
          "max": "maintenance"
        }
      }
    },
    "maintenance": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "disk_volume_id": {
          "nulls": 0,
          "distinct": 103,
          "min": 3,
          "max": 200
        },
        "scheduled_time": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-01 09:04:09",
          "max": "2024-12-23 16:17:35"
        },
        "maintenance_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "backup",
          "max": "upgrade"
        }
      }
    },
    "user_credentials": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "username": {
          "nulls": 0,
          "distinct": 206
        },
        "password_hash": {
          "nulls": 0,
          "distinct": 205
        },
        "role": {
          "nulls": 0,
          "distinct": 4,
          "min": "admin",
          "max": "viewer"
        },
        "status": {
          "nulls": 0,
          "distinct": 2,
          "min": "active",
          "max": "inactive"
        }
      }
    },
    "replication_setups": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "disk_volume_id": {
          "nulls": 0,
          "distinct": 77,
          "min": 4,
          "max": 200
        },
        "replication_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "asynchronous",
          "max": "synchronous"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "active",
          "max": "pending"
        }
      }
    },
    "alert_logs": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "disk_volume_id": {
          "nulls": 0,
          "distinct": 121,
          "min": 6,
          "max": 199
        },
        "alert_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "critical",
          "max": "warning"
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-02 14:12:13",
          "max": "2024-12-28 20:34:49"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/disk_volumes.csv",
      "format": "csv",
      "table": "disk_volumes",
      "key": "datasets/database-administrators/v3/csv/disk_volumes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/csv/disk_volumes.csv",
      "bytes": 7264,
      "sha256": "6f5d74d55741ccf10909d55f50521d047232d941e24b4174a95d84d3584a3d3a",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/alert_logs.csv",
      "format": "csv",
      "table": "alert_logs",
      "key": "datasets/database-administrators/v3/csv/alert_logs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/csv/alert_logs.csv",
      "bytes": 7082,
      "sha256": "5df7d43f659c2c890e82bdff1d0ca357c982b9674aa166dd6337acfeff9e1702",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance.csv",
      "format": "csv",
      "table": "maintenance",
      "key": "datasets/database-administrators/v3/csv/maintenance.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/csv/maintenance.csv",
      "bytes": 5317,
      "sha256": "2feec18f16e4efb241044765782091d3ad37da9bdddd7362422878f076fab4b8",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/replication_setups.csv",
      "format": "csv",
      "table": "replication_setups",
      "key": "datasets/database-administrators/v3/csv/replication_setups.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/csv/replication_setups.csv",
      "bytes": 2710,
      "sha256": "c51e7524aad38a3f7ca9916334f8fd2b37332368f15e932a6d5d033947a56998",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/user_credentials.csv",
      "format": "csv",
      "table": "user_credentials",
      "key": "datasets/database-administrators/v3/csv/user_credentials.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/csv/user_credentials.csv",
      "bytes": 15225,
      "sha256": "3ca4b733d1e64b0cd828536211cf9a8e3daf104a500c38a279be6cafac5170ab",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "database-administrators.json",
      "format": "json",
      "table": null,
      "key": "datasets/database-administrators/v3/database-administrators.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/database-administrators.json",
      "bytes": 136456,
      "sha256": "7ece4d4d273eaf889c076dacd7ed995305fce2dc5a712ecc8cfc89c183a6f53f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/database-administrators/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/sql/postgres.sql",
      "bytes": 54377,
      "sha256": "1d015ff52d91fff97365941e496ee9d9f0d88f937053ede8e746d8256da7f21b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/database-administrators/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/sql/mysql.sql",
      "bytes": 53770,
      "sha256": "1c185501c401fbcc2467f647a6feb6eaa00990c31268a40c134f5d034fd8580e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/database-administrators/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/sql/mssql.sql",
      "bytes": 56641,
      "sha256": "80dc5f86e87c491398f714eaf8bc9bfc5a29c6857af30bef296066320528808d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/database-administrators/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/sql/sqlite.sql",
      "bytes": 53546,
      "sha256": "05ad9d588a8fa1eaaac130cecb58edfc4d60e5821be7563e71fe15f0c8974cf0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/database-administrators/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/prisma/seed.ts",
      "bytes": 110646,
      "sha256": "3d052e6c3cd28825fa414a615afb1ce8b7953e7f8f675725dc1809541681646f",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/database-administrators/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/database-administrators/v3/django/fixtures.json",
      "bytes": 181529,
      "sha256": "00b27a6401595e96b2f3b2ce3e0a4f24de8d74bd1d96e029efae4d0ba536a03d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767253559,
  "updatedAt": 1788783319507
}
