{
  "format": "dataset-manifest/1",
  "slug": "community-engagement-tracker",
  "version": 1,
  "seed": "community-engagement-tracker:1",
  "spec": {
    "format": "dataset/1",
    "slug": "community-engagement-tracker",
    "name": "Community Engagement Tracker",
    "tagline": "User profiles, events, discussions, and poll participation in a vibrant neighborhood community.",
    "description": "Residents share their interests and activities, creating a thriving community environment. They participate in local events, engage in discussions, and contribute to polls that influence neighborhood initiatives. By fostering such connections, the community not only enhances social ties but also supports local businesses, ensuring a vibrant neighborhood ecosystem. Users create profiles that capture their interests and past participations, facilitating deeper engagement with events and discussions.\n\nThe dataset contains several interrelated tables that allow for a comprehensive analysis of community engagement. In the 'users' table, each row represents an individual resident, detailing their unique profile and interests. The 'events' table lists various community gatherings, where each event is a specific instance organized for participants to connect. The 'participations' table serves as a bridge between users and events, recording which users attended which events. 'Discussions' highlight the conversations among residents, while 'polls' capture opinions and preferences on various topics, allowing community decision-making. Additionally, the 'local_businesses' table features businesses in the area that may sponsor events or engage with the community in other ways.\n\nThis structured data answers various questions about community dynamics. For instance, developers can explore patterns in event participation, analyze the effectiveness of discussions and polls, and assess how local businesses interact with residents. It's a rich playground for practicing data analysis, visualization, and understanding social networks within a community context. Importantly, all the data within this tracker is synthetic, designed specifically to provide a safe environment for development and exploration.",
    "domain": "social",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "community",
      "engagement",
      "events",
      "social interactions",
      "user profiles",
      "local businesses",
      "polls",
      "discussions",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user in the neighborhood. Users can participate in multiple events and discussions, linking to their activities through foreign keys.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The user's full name."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The user's email address."
          },
          "join_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date the user joined the platform."
          },
          "interests": {
            "kind": "words",
            "max": 50,
            "description": "User's interests separated by commas.",
            "nullable": true
          }
        }
      },
      "events": {
        "description": "Events organized within the neighborhood, where users can participate. Each event can attract multiple users and has varying participation rates.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each event."
          },
          "title": {
            "kind": "sentence",
            "max": 100,
            "description": "The title of the event."
          },
          "event_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "dayProfile": "business",
            "description": "The date and time of the event."
          },
          "location": {
            "kind": "words",
            "max": 50,
            "description": "The location where the event is held."
          },
          "description": {
            "kind": "paragraph",
            "max": 300,
            "description": "A brief description of the event.",
            "nullable": true
          }
        }
      },
      "participations": {
        "description": "Tracks user participation in events. Each entry links a user to an event, showing their engagement level.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 5,
          "skew": "heavy-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each participation record."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "ID of the user participating in the event."
          },
          "event_id": {
            "kind": "fk",
            "ref": "events.id",
            "description": "ID of the event the user is participating in.",
            "nullable": true,
            "when": {
              "column": "level_of_engagement",
              "in": [
                "attended"
              ]
            }
          },
          "level_of_engagement": {
            "kind": "enum",
            "values": [
              "attended",
              "interested",
              "not_interested"
            ],
            "description": "User's level of engagement with the event."
          }
        }
      },
      "discussions": {
        "description": "Community discussions where users can express their opinions. Each discussion can have multiple comments and reactions from users.",
        "rows": 80,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each discussion."
          },
          "topic": {
            "kind": "sentence",
            "max": 100,
            "description": "The topic of the discussion."
          },
          "start_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date the discussion was started."
          },
          "total_reactions": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Total number of reactions received.",
            "nullable": true
          }
        }
      },
      "polls": {
        "description": "Community polls that gauge residents' opinions on various topics. Each poll can have multiple responses from users.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each poll."
          },
          "question": {
            "kind": "sentence",
            "max": 150,
            "description": "The question being posed in the poll."
          },
          "poll_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date the poll was created."
          },
          "total_votes": {
            "kind": "int",
            "min": 0,
            "max": 300,
            "description": "Total number of votes received.",
            "nullable": true
          }
        }
      },
      "local_businesses": {
        "description": "Information about local businesses promoting events or services to the community. Each business may sponsor multiple events.",
        "rows": 60,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each business."
          },
          "name": {
            "kind": "company",
            "description": "The name of the local business."
          },
          "contact_email": {
            "kind": "email",
            "from": "name",
            "description": "Contact email for the business.",
            "nullable": true
          },
          "established_date": {
            "kind": "date",
            "from": "2000-01-01",
            "to": "2023-12-31",
            "description": "Date the business was established.",
            "nullable": true,
            "when": {
              "column": "business_type",
              "in": [
                "restaurant",
                "shop"
              ]
            }
          },
          "business_type": {
            "kind": "enum",
            "values": [
              "restaurant",
              "shop",
              "service",
              "nonprofit"
            ],
            "description": "Type of the business."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What types of events receive the highest participation from users?",
      "How do discussions vary in engagement levels across different topics?",
      "Which local businesses are most frequently involved in community events?",
      "What trends can be identified from poll responses over time?",
      "How does user engagement change based on event timing?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Event Participation",
        "sql": "SELECT u.full_name, e.title FROM users u JOIN participations p ON u.id = p.user_id JOIN events e ON p.event_id = e.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Events by Type of Engagement",
        "sql": "SELECT level_of_engagement, COUNT(*) FROM participations GROUP BY level_of_engagement;",
        "dialect": "postgres"
      },
      {
        "title": "Total Reactions per Discussion",
        "sql": "SELECT topic, total_reactions FROM discussions;",
        "dialect": "postgres"
      },
      {
        "title": "Average Votes per Poll",
        "sql": "SELECT AVG(total_votes) FROM polls;",
        "dialect": "postgres"
      },
      {
        "title": "User Participation Trends Over Time",
        "sql": "SELECT DATE_TRUNC('month', e.event_date) AS month, COUNT(p.user_id) FROM participations p JOIN events e ON p.event_id = e.id GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Community Organizers",
        "body": "Community organizers can use this dataset to analyze participation rates in various events and discussions, allowing them to plan more engaging and relevant activities that cater to residents' interests."
      },
      {
        "title": "Local Businesses",
        "body": "Local businesses can leverage insights from this dataset to identify opportunities for collaboration with community events, enhancing their visibility and engagement with residents."
      },
      {
        "title": "Urban Planners",
        "body": "Urban planners may analyze the data to understand community dynamics better, helping them design public spaces that foster social interactions and improve residents' quality of life."
      },
      {
        "title": "Data Analysts",
        "body": "Data analysts can practice their SQL skills by querying this dataset to extract meaningful insights, creating reports that highlight trends in community engagement and social interactions."
      }
    ]
  },
  "counts": {
    "discussions": 80,
    "events": 100,
    "local_businesses": 60,
    "polls": 50,
    "users": 150,
    "participations": 288
  },
  "stats": {
    "users": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "full_name": {
          "nulls": 0,
          "distinct": 150,
          "min": "Alice Larsen",
          "max": "Zoe Young"
        },
        "email": {
          "nulls": 0,
          "distinct": 150
        },
        "join_date": {
          "nulls": 0,
          "distinct": 136,
          "min": "2020-01-09",
          "max": "2023-12-19"
        },
        "interests": {
          "nulls": 14,
          "distinct": 136
        }
      }
    },
    "events": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "title": {
          "nulls": 0,
          "distinct": 100
        },
        "event_date": {
          "nulls": 0,
          "distinct": 100,
          "min": "2023-01-04 09:05:27",
          "max": "2023-12-29 20:50:40"
        },
        "location": {
          "nulls": 0,
          "distinct": 100
        },
        "description": {
          "nulls": 10,
          "distinct": 90
        }
      }
    },
    "participations": {
      "rows": 288,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 288,
          "min": 1,
          "max": 288
        },
        "user_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "event_id": {
          "nulls": 191,
          "distinct": 61,
          "min": 1,
          "max": 99
        },
        "level_of_engagement": {
          "nulls": 0,
          "distinct": 3,
          "min": "attended",
          "max": "not_interested"
        }
      }
    },
    "discussions": {
      "rows": 80,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 80,
          "min": 1,
          "max": 80
        },
        "topic": {
          "nulls": 0,
          "distinct": 80
        },
        "start_date": {
          "nulls": 0,
          "distinct": 68,
          "min": "2023-01-02",
          "max": "2023-12-31"
        },
        "total_reactions": {
          "nulls": 8,
          "distinct": 68,
          "min": 7,
          "max": 482
        }
      }
    },
    "polls": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "question": {
          "nulls": 0,
          "distinct": 50
        },
        "poll_date": {
          "nulls": 0,
          "distinct": 45,
          "min": "2023-01-01",
          "max": "2023-12-30"
        },
        "total_votes": {
          "nulls": 7,
          "distinct": 43,
          "min": 22,
          "max": 298
        }
      }
    },
    "local_businesses": {
      "rows": 60,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 60,
          "min": 1,
          "max": 60
        },
        "name": {
          "nulls": 0,
          "distinct": 58,
          "min": "Acme Group",
          "max": "Willow Works"
        },
        "contact_email": {
          "nulls": 3,
          "distinct": 57
        },
        "established_date": {
          "nulls": 29,
          "distinct": 31,
          "min": "2002-06-10",
          "max": "2023-01-17"
        },
        "business_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "nonprofit",
          "max": "shop"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/discussions.csv",
      "format": "csv",
      "table": "discussions",
      "key": "datasets/community-engagement-tracker/v1/csv/discussions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/discussions.csv",
      "bytes": 6003,
      "sha256": "eb111c7a2fc5edfe10964f768bc3f4e74848cd6108982836e2cb1a38e498f53a",
      "rows": 80,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/events.csv",
      "format": "csv",
      "table": "events",
      "key": "datasets/community-engagement-tracker/v1/csv/events.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/events.csv",
      "bytes": 39542,
      "sha256": "5255588f21708d2d346d279e5e4781cb8feac79172ac0f49f2f3edb1e4191e85",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/local_businesses.csv",
      "format": "csv",
      "table": "local_businesses",
      "key": "datasets/community-engagement-tracker/v1/csv/local_businesses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/local_businesses.csv",
      "bytes": 3511,
      "sha256": "13442d4afb8745c239cee5b5a2fd3eb77113f49748daf44d5c1fcaa02813486c",
      "rows": 60,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/polls.csv",
      "format": "csv",
      "table": "polls",
      "key": "datasets/community-engagement-tracker/v1/csv/polls.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/polls.csv",
      "bytes": 3842,
      "sha256": "558b4499859aa65148bfba603782ae210793ae3e9bef08e7a7e4f2fee3f321a3",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/community-engagement-tracker/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/users.csv",
      "bytes": 31453,
      "sha256": "98a00d5b9762ff8c52b7eac65336a2fd98a7b568987d1658b748a1c15d1bea53",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/participations.csv",
      "format": "csv",
      "table": "participations",
      "key": "datasets/community-engagement-tracker/v1/csv/participations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/csv/participations.csv",
      "bytes": 6111,
      "sha256": "477e7d839bebf4a3c9a37729b07a6893737e0230a8a4903ff8772f561deb4bed",
      "rows": 288,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "community-engagement-tracker.json",
      "format": "json",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/community-engagement-tracker.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/community-engagement-tracker.json",
      "bytes": 164129,
      "sha256": "c87a674a70f8f7671f5e1a9ae8302447fbecbbae5dc0a67f93a5df4246c6a9a1",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/sql/postgres.sql",
      "bytes": 104402,
      "sha256": "9d6ca3d64c0979c154184467658b05036fa28cd74b7a6039f6f01b963790b9c4",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/sql/mysql.sql",
      "bytes": 103728,
      "sha256": "8cd28fd0d808fd443d75dd9ea09b10537abb27acb18b4cb13e58df9ab96161e1",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/sql/mssql.sql",
      "bytes": 105889,
      "sha256": "dc8c17c731893804165ead9fa2d0ec192eae199985543e1b74c55c85ab1c8f47",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/sql/sqlite.sql",
      "bytes": 103554,
      "sha256": "1501652dac8decc642468dd3b84f52a444b6af0ff656826a4b932ca9e9dc16fd",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/prisma/seed.ts",
      "bytes": 143363,
      "sha256": "a4a6eb020774a1590e103d245bbd90b7a4f05bd8e79e40c727189392cd6fe291",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/community-engagement-tracker/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/community-engagement-tracker/v1/django/fixtures.json",
      "bytes": 195932,
      "sha256": "537c2cb9296dc65d63f314ab161be9f4c01593f598faae72b0db467517c1c7ce",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768203666,
  "updatedAt": 1788768203666
}
