{
  "format": "dataset-manifest/1",
  "slug": "real-time-public-safety-and-emergency-alerts-app",
  "version": 4,
  "seed": "real-time-public-safety-and-emergency-alerts-app:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "real-time-public-safety-and-emergency-alerts-app",
    "name": "Emergency Response Insights",
    "tagline": "Real-time updates for emergency alerts and public safety.",
    "description": "Real-time updates during emergencies are crucial for effective responses, and this application specializes in just that. It operates by collecting and analyzing data on incidents that demand immediate attention, from natural disasters like hurricanes to public safety threats such as hazardous material spills. Essential to this operational framework are the prevailing weather conditions that could impact both the severity of incidents and the efficacy of response efforts. Critical infrastructure locations are mapped to ensure that emergency services can be dispatched efficiently, while users who rely on alerts for safety updates are profiled to enhance communication strategies. \n\nThe dataset comprises five interconnected tables: users, incidents, weather_conditions, infrastructure, and alerts. Each row in the users table represents an individual or organization subscribed to receive alerts, allowing for targeted communication during crises. The incidents table contains records of various emergency situations, detailing the nature and urgency of each event. Weather_conditions provides real-time updates that can influence incident severity and response strategies. The infrastructure table maps out vital resources, such as hospitals or emergency services, critical for effective response. Finally, alerts serve as the communication link, disseminating information about incidents and relevant weather conditions to users. \n\nThis dataset allows developers to explore critical questions such as: How do weather conditions correlate with the frequency and severity of incidents? What are the response times to different types of emergencies? How can user engagement with alerts be improved? Practicing with this synthetic data provides an excellent opportunity to understand the complexities of emergency response systems and develop applications that enhance community safety and preparedness.",
    "domain": "iot",
    "shape": "time-series",
    "useCases": [
      "analytics-demo",
      "bi-dashboards"
    ],
    "keywords": [
      "emergency response",
      "public safety",
      "real-time alerts",
      "weather conditions",
      "incident analysis",
      "user profiles"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table holds user profiles who receive emergency alerts. Each user is linked to incidents based on their location and preferences.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user."
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number of the user."
          },
          "city": {
            "kind": "city",
            "description": "City where the user resides."
          },
          "alert_preferences": {
            "kind": "enum",
            "values": [
              "weather",
              "safety",
              "both"
            ],
            "description": "User's preferences for types of alerts.",
            "weights": [
              6,
              2,
              2
            ]
          }
        }
      },
      "incidents": {
        "description": "This table captures various emergency incidents, detailing their nature and severity. Each incident is linked to users who might be affected based on their location.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each incident."
          },
          "incident_type": {
            "kind": "enum",
            "values": [
              "weather",
              "hazardous_spill",
              "fire",
              "crime"
            ],
            "description": "Type of emergency incident.",
            "weights": [
              5,
              3,
              1,
              1
            ]
          },
          "severity": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Severity level of the incident from 1 (low) to 5 (high).",
            "distribution": "high"
          },
          "location": {
            "kind": "city",
            "description": "City where the incident occurred."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the incident was reported.",
            "dayProfile": "waking"
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user linked to the incident."
          }
        }
      },
      "weather_conditions": {
        "description": "This table provides real-time weather data that may affect emergency response. It links to incidents based on their occurrence time.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each weather report."
          },
          "temperature": {
            "kind": "decimal",
            "min": -30,
            "max": 50,
            "scale": 1,
            "description": "Current temperature in degrees Celsius.",
            "distribution": "normal"
          },
          "precipitation": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 1,
            "description": "Precipitation level in millimeters.",
            "distribution": "long-tail"
          },
          "wind_speed": {
            "kind": "decimal",
            "min": 0,
            "max": 150,
            "scale": 1,
            "description": "Wind speed in kilometers per hour.",
            "distribution": "long-tail"
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time of the weather report."
          }
        }
      },
      "infrastructure": {
        "description": "This table catalogs critical infrastructure locations that may be affected during emergencies, linked to incidents in the vicinity.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each infrastructure location."
          },
          "name": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Name of the critical infrastructure.",
            "pool": [
              "bridge",
              "hospital",
              "fire-station",
              "power-plant",
              "water-treatment",
              "police-station",
              "telecommunication",
              "emergency-center",
              "roadway",
              "substation",
              "network-node",
              "data-center",
              "transport-hub",
              "control-room",
              "dispatch",
              "shelter",
              "facility",
              "refuge",
              "command-post",
              "station",
              "base",
              "outpost",
              "unit",
              "rescue",
              "response",
              "service",
              "infrastructure",
              "system",
              "network",
              "operation",
              "location",
              "site",
              "area",
              "zone",
              "region",
              "sector",
              "district",
              "division",
              "platform",
              "terminal",
              "field",
              "camp",
              "complex",
              "center",
              "node",
              "link",
              "route",
              "path",
              "way",
              "networking",
              "grid",
              "hub",
              "stationary",
              "outreach",
              "emergency",
              "supply",
              "logistics"
            ]
          },
          "type": {
            "kind": "enum",
            "values": [
              "hospital",
              "fire_station",
              "police_station",
              "shelter"
            ],
            "description": "Type of infrastructure.",
            "weights": [
              4,
              3,
              2,
              1
            ]
          },
          "location": {
            "kind": "city",
            "description": "City where the infrastructure is located."
          },
          "capacity": {
            "kind": "int",
            "min": 1,
            "max": 1000,
            "description": "Maximum capacity of the infrastructure.",
            "distribution": "long-tail"
          }
        }
      },
      "alerts": {
        "description": "This table contains records of alerts sent to users regarding incidents, linked to both user profiles and incidents.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each alert."
          },
          "alert_type": {
            "kind": "enum",
            "values": [
              "notification",
              "warning",
              "update"
            ],
            "description": "Type of alert sent to users.",
            "weights": [
              7,
              2,
              1
            ]
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user receiving the alert."
          },
          "incident_id": {
            "kind": "fk",
            "ref": "incidents.id",
            "description": "Reference to the incident related to the alert."
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the alert was sent.",
            "dayProfile": "waking",
            "trend": "growing"
          },
          "response_time_minutes": {
            "kind": "int",
            "min": 1,
            "max": 60,
            "distribution": "normal",
            "description": "Time taken to respond to the alert in minutes."
          },
          "alert_priority": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high"
            ],
            "weights": [
              30,
              50,
              20
            ],
            "description": "Priority level of the alert."
          },
          "acknowledged": {
            "kind": "bool",
            "trueRate": 0.7,
            "description": "Indicates whether the user acknowledged the alert."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What types of incidents occur most frequently in certain weather conditions?",
      "How do user alert preferences correlate with the severity of incidents?",
      "Which infrastructure locations are most affected during emergencies?",
      "What is the average response time for alerts based on incident type?",
      "How does the distribution of incidents vary by time of day or week?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Alerts",
        "sql": "SELECT u.full_name, a.alert_type FROM users u JOIN alerts a ON u.id = a.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Incidents by Type",
        "sql": "SELECT i.incident_type, COUNT(*) FROM incidents i GROUP BY i.incident_type;",
        "dialect": "postgres"
      },
      {
        "title": "Find Alerts Related to Specific Incidents",
        "sql": "SELECT a.alert_type, i.incident_type FROM alerts a JOIN incidents i ON a.incident_id = i.id WHERE i.severity >= 4;",
        "dialect": "postgres"
      },
      {
        "title": "Average Temperature During Incidents",
        "sql": "SELECT AVG(w.temperature) FROM weather_conditions w JOIN incidents i ON w.timestamp = i.timestamp;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Emergency Management Officials",
        "body": "Emergency management officials can utilize this dataset to analyze historical incident patterns and improve response strategies. By understanding the frequency and types of incidents, officials can allocate resources more effectively and enhance community preparedness."
      },
      {
        "title": "Data Analysts in Public Safety",
        "body": "Data analysts working in public safety can leverage this dataset to create dashboards that visualize incident trends over time. By correlating weather conditions with incident occurrences, they can identify potential risk factors and develop proactive measures."
      },
      {
        "title": "App Developers for Emergency Alerts",
        "body": "Developers creating applications designed to alert users during emergencies can use this dataset for testing and refining their features. By simulating real-world scenarios, they can ensure that their applications provide timely and accurate information to users."
      },
      {
        "title": "Researchers in Social Behavior",
        "body": "Researchers studying the social behavior of communities during emergencies can analyze user engagement with alerts. This dataset can provide insights into how different demographics respond to alerts and how this impacts community resilience."
      }
    ]
  },
  "counts": {
    "infrastructure": 100,
    "users": 150,
    "incidents": 300,
    "alerts": 400,
    "weather_conditions": 200
  },
  "stats": {
    "users": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "full_name": {
          "nulls": 0,
          "distinct": 148,
          "min": "Amir Reyes",
          "max": "Zoe Wright"
        },
        "phone": {
          "nulls": 0,
          "distinct": 145
        },
        "city": {
          "nulls": 0,
          "distinct": 56,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "alert_preferences": {
          "nulls": 0,
          "distinct": 3,
          "min": "both",
          "max": "weather"
        }
      }
    },
    "incidents": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "incident_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "crime",
          "max": "weather"
        },
        "severity": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "location": {
          "nulls": 0,
          "distinct": 62,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-10 22:05:16",
          "max": "2023-12-29 21:53:48"
        },
        "user_id": {
          "nulls": 0,
          "distinct": 128,
          "min": 1,
          "max": 150
        }
      }
    },
    "weather_conditions": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "temperature": {
          "nulls": 0,
          "distinct": 163,
          "min": -25.6,
          "max": 40
        },
        "precipitation": {
          "nulls": 0,
          "distinct": 163,
          "min": 0,
          "max": 99.9
        },
        "wind_speed": {
          "nulls": 0,
          "distinct": 178,
          "min": 0,
          "max": 149.4
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-06 13:34:55",
          "max": "2023-12-31 04:46:16"
        }
      }
    },
    "infrastructure": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "name": {
          "nulls": 0,
          "distinct": 88
        },
        "type": {
          "nulls": 0,
          "distinct": 4,
          "min": "fire_station",
          "max": "shelter"
        },
        "location": {
          "nulls": 0,
          "distinct": 53,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "capacity": {
          "nulls": 0,
          "distinct": 91,
          "min": 1,
          "max": 983
        }
      }
    },
    "alerts": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "alert_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "notification",
          "max": "warning"
        },
        "user_id": {
          "nulls": 0,
          "distinct": 139,
          "min": 1,
          "max": 150
        },
        "incident_id": {
          "nulls": 0,
          "distinct": 225,
          "min": 1,
          "max": 299
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 400,
          "min": "2020-01-04 15:16:24",
          "max": "2023-12-31 19:05:06"
        },
        "response_time_minutes": {
          "nulls": 0,
          "distinct": 44,
          "min": 8,
          "max": 54
        },
        "alert_priority": {
          "nulls": 0,
          "distinct": 3,
          "min": "high",
          "max": "medium"
        },
        "acknowledged": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/infrastructure.csv",
      "format": "csv",
      "table": "infrastructure",
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/infrastructure.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/infrastructure.csv",
      "bytes": 4342,
      "sha256": "9c1d6606d5946d68cd6917ac207d9e804f2ab1b75a3a5b95891b49aac73d368b",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/users.csv",
      "bytes": 7140,
      "sha256": "447ea4ee915ed3b57f302d4c14a7707759a9e126eaf379a25f2a5bb0e52821c3",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/incidents.csv",
      "format": "csv",
      "table": "incidents",
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/incidents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/incidents.csv",
      "bytes": 14339,
      "sha256": "16bcbd43b6b2113c1deba00c1478942c7af7102c86af49449c09b0d9c64d880b",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/alerts.csv",
      "format": "csv",
      "table": "alerts",
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/alerts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/alerts.csv",
      "bytes": 22933,
      "sha256": "d45760211e523a221b5c95066c325d0fe84baf001eea9e1ff07f58726e1ddf51",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/weather_conditions.csv",
      "format": "csv",
      "table": "weather_conditions",
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/weather_conditions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/csv/weather_conditions.csv",
      "bytes": 7800,
      "sha256": "5c16d461fabf2ec1bc91440abedaad43a31656f01300e7cc4cd6d9670518f6f4",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-time-public-safety-and-emergency-alerts-app.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/real-time-public-safety-and-emergency-alerts-app.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/real-time-public-safety-and-emergency-alerts-app.json",
      "bytes": 220700,
      "sha256": "65b246ac622d6077f7e2e9381f7192675b62ee9221953ac990e183fca6e8d11d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/postgres.sql",
      "bytes": 79013,
      "sha256": "7812f11727e5dbd3c4ba2be9fbf810cd9717c6e6e13050c405a48e8be612cd66",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/mysql.sql",
      "bytes": 77116,
      "sha256": "227ba339915427fbc0902984a6ddfca453b08735f065c9df8c76332f7e882ce8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/mssql.sql",
      "bytes": 80652,
      "sha256": "39c2a65d876b36e0b8ebb86368c500fd8eb79c0a295983f5246a8db0c6c5b81a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/sql/sqlite.sql",
      "bytes": 76931,
      "sha256": "e21894335bed451e06471e3ced9237f42034115153c0bc0e0610cbda75712024",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/prisma/seed.ts",
      "bytes": 179510,
      "sha256": "01000e15ece7364c32da0e6eb927d5dd7aa5c7ae2c7ccd49081c03056bedd36b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-time-public-safety-and-emergency-alerts-app/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-time-public-safety-and-emergency-alerts-app/v4/django/fixtures.json",
      "bytes": 271682,
      "sha256": "9efa65d2c548449aeb099eb49a2270dccca6d40270bc598feced52c95c27a2a4",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767220059,
  "updatedAt": 1789096023466
}
