{
  "format": "dataset-manifest/1",
  "slug": "blockchain-based-social-media-privacy-controls",
  "version": 3,
  "seed": "blockchain-based-social-media-privacy-controls:1",
  "spec": {
    "format": "dataset/1",
    "slug": "blockchain-based-social-media-privacy-controls",
    "name": "Social Media Privacy Interactions",
    "tagline": "User profiles, posts, comments, and moderation actions related to social media privacy interactions.",
    "description": "Users interact in a dynamic online environment, engaging socially while prioritizing privacy through innovative blockchain mechanisms. This dataset revolves around user profiles, encryption strategies, moderation actions, and content interactions such as posts and comments. The user_profiles table captures essential information about users, while the encryption_keys table details the cryptographic methods employed for privacy. The moderation_actions table outlines the interventions made by moderators to maintain a safe community. Content interactions are modeled through posts and comments, reflecting the engagement levels of users. The data reveals that while many users generate several posts and comments, only a few actively engage in complex privacy settings and moderation actions, indicating a concentrated focus on privacy-conscious individuals. This synthetic dataset provides a rich resource for exploring user behavior and privacy dynamics in social media environments.",
    "domain": "social",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "social media",
      "privacy",
      "blockchain",
      "user profiles",
      "encryption",
      "moderation",
      "posts",
      "comments"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "user_profiles": {
        "description": "Each row represents a user in the social media platform, detailing their profile information and engagement metrics.",
        "rows": 200,
        "columns": {
          "user_id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "username": {
            "kind": "fullName",
            "description": "The display name of the user."
          },
          "email": {
            "kind": "email",
            "from": "username",
            "description": "The email address associated with the user's account."
          },
          "join_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date the user joined the platform.",
            "trend": "growing"
          },
          "post_count": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "The total number of posts created by the user.",
            "distribution": "long-tail"
          },
          "comment_count": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "The total number of comments made by the user.",
            "distribution": "long-tail"
          }
        }
      },
      "encryption_keys": {
        "description": "This table holds the encryption keys for each user, detailing their privacy settings and access controls.",
        "rows": 200,
        "columns": {
          "key_id": {
            "kind": "pk",
            "description": "Unique identifier for each encryption key."
          },
          "user_id": {
            "kind": "fk",
            "ref": "user_profiles.user_id",
            "description": "The user associated with this encryption key."
          },
          "encryption_method": {
            "kind": "enum",
            "values": [
              "AES",
              "RSA",
              "SHA-256"
            ],
            "description": "The encryption method used by the user.",
            "weights": [
              7,
              2,
              1
            ]
          },
          "key_creation_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date the encryption key was created."
          }
        }
      },
      "posts": {
        "description": "This table contains posts made by users, capturing content and engagement details.",
        "rows": 400,
        "columns": {
          "post_id": {
            "kind": "pk",
            "description": "Unique identifier for each post."
          },
          "user_id": {
            "kind": "fk",
            "ref": "user_profiles.user_id",
            "description": "The user who created this post."
          },
          "content": {
            "kind": "paragraph",
            "min": 10,
            "max": 500,
            "description": "The text content of the post."
          },
          "post_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date and time the post was created.",
            "dayProfile": "waking"
          }
        }
      },
      "comments": {
        "description": "This table details comments made by users on posts, linking them to the original content.",
        "rows": 600,
        "columns": {
          "comment_id": {
            "kind": "pk",
            "description": "Unique identifier for each comment."
          },
          "post_id": {
            "kind": "fk",
            "ref": "posts.post_id",
            "description": "The post that this comment is associated with."
          },
          "user_id": {
            "kind": "fk",
            "ref": "user_profiles.user_id",
            "description": "The user who made this comment."
          },
          "content": {
            "kind": "paragraph",
            "min": 5,
            "max": 300,
            "description": "The text content of the comment."
          },
          "comment_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date and time the comment was made.",
            "dayProfile": "waking"
          }
        }
      },
      "moderation_actions": {
        "description": "This table tracks moderation actions taken against user posts and comments, ensuring community safety.",
        "rows": 300,
        "columns": {
          "action_id": {
            "kind": "pk",
            "description": "Unique identifier for each moderation action."
          },
          "user_id": {
            "kind": "fk",
            "ref": "user_profiles.user_id",
            "description": "The moderator who performed the action."
          },
          "post_id": {
            "kind": "fk",
            "ref": "posts.post_id",
            "nullable": true,
            "description": "The post that was moderated, if applicable."
          },
          "comment_id": {
            "kind": "fk",
            "ref": "comments.comment_id",
            "nullable": true,
            "description": "The comment that was moderated, if applicable."
          },
          "action_type": {
            "kind": "enum",
            "values": [
              "delete",
              "warn",
              "suspend"
            ],
            "description": "The type of moderation action taken.",
            "weights": [
              8,
              2,
              1
            ]
          },
          "action_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "The date and time the moderation action was performed.",
            "dayProfile": "business"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "high-cardinality",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "How many posts does the average user create?",
      "What encryption methods are most commonly used by users?",
      "Which moderation actions are most frequently taken on comments?",
      "What is the average time between a post being created and a comment being made?",
      "How do user engagement levels correlate with the use of privacy settings?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Their Posts",
        "sql": "SELECT user_profiles.username, posts.content FROM user_profiles JOIN posts ON user_profiles.user_id = posts.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Posts Per User",
        "sql": "SELECT user_id, COUNT(post_id) as post_count FROM posts GROUP BY user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find Most Common Moderation Actions",
        "sql": "SELECT action_type, COUNT(action_id) as action_count FROM moderation_actions GROUP BY action_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Time to Comment",
        "sql": "SELECT AVG(EXTRACT(EPOCH FROM comments.comment_date - posts.post_date)) as avg_time_to_comment FROM comments JOIN posts ON comments.post_id = posts.post_id;",
        "dialect": "postgres"
      },
      {
        "title": "Users with Multiple Encryption Methods",
        "sql": "SELECT user_id, COUNT(DISTINCT encryption_method) as method_count FROM encryption_keys GROUP BY user_id HAVING method_count > 1;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Teaching Data Privacy Concepts",
        "body": "Educators can use this dataset to illustrate the importance of data privacy in social media platforms. By analyzing user engagement and moderation actions, students can understand the impact of privacy controls and the necessity for moderation in online communities."
      },
      {
        "title": "SQL Practice for Data Analysts",
        "body": "Data analysts looking to enhance their SQL skills can utilize this dataset for hands-on practice. By exploring various queries, they can gain experience in joining tables, aggregating data, and analyzing user behavior in a social media context."
      },
      {
        "title": "Researching User Behavior",
        "body": "Researchers interested in understanding user behavior on social media can leverage this dataset. By examining the relationships between posts, comments, and moderation actions, they can identify trends and patterns in user engagement and privacy practices."
      },
      {
        "title": "Developing Privacy-Enhancing Features",
        "body": "Developers focusing on privacy-enhancing features for social media platforms can analyze this dataset to identify key areas where users prioritize privacy. Insights gained can inform the design of new functionalities aimed at improving user control over their content."
      }
    ]
  },
  "counts": {
    "user_profiles": 200,
    "encryption_keys": 200,
    "posts": 400,
    "comments": 600,
    "moderation_actions": 300
  },
  "stats": {
    "user_profiles": {
      "rows": 200,
      "columns": {
        "user_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "username": {
          "nulls": 0,
          "distinct": 195,
          "min": "Amir Sousa",
          "max": "Zoe Oliveira"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "join_date": {
          "nulls": 0,
          "distinct": 172,
          "min": "2020-01-03",
          "max": "2022-12-31"
        },
        "post_count": {
          "nulls": 0,
          "distinct": 79,
          "min": 0,
          "max": 99
        },
        "comment_count": {
          "nulls": 0,
          "distinct": 76,
          "min": 0,
          "max": 99
        }
      }
    },
    "encryption_keys": {
      "rows": 200,
      "columns": {
        "key_id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "user_id": {
          "nulls": 0,
          "distinct": 129,
          "min": 2,
          "max": 200
        },
        "encryption_method": {
          "nulls": 0,
          "distinct": 3,
          "min": "AES",
          "max": "SHA-256"
        },
        "key_creation_date": {
          "nulls": 0,
          "distinct": 181,
          "min": "2020-01-03",
          "max": "2022-12-27"
        }
      }
    },
    "posts": {
      "rows": 400,
      "columns": {
        "post_id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "user_id": {
          "nulls": 0,
          "distinct": 173,
          "min": 2,
          "max": 200
        },
        "content": {
          "nulls": 0,
          "distinct": 400
        },
        "post_date": {
          "nulls": 0,
          "distinct": 400,
          "min": "2020-01-04 08:00:14",
          "max": "2023-01-01 19:03:52"
        }
      }
    },
    "comments": {
      "rows": 600,
      "columns": {
        "comment_id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "post_id": {
          "nulls": 0,
          "distinct": 293,
          "min": 1,
          "max": 399
        },
        "user_id": {
          "nulls": 0,
          "distinct": 190,
          "min": 1,
          "max": 200
        },
        "content": {
          "nulls": 0,
          "distinct": 600
        },
        "comment_date": {
          "nulls": 0,
          "distinct": 600,
          "min": "2020-01-03 14:39:52",
          "max": "2022-12-31 10:34:46"
        }
      }
    },
    "moderation_actions": {
      "rows": 300,
      "columns": {
        "action_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 157,
          "min": 1,
          "max": 200
        },
        "post_id": {
          "nulls": 27,
          "distinct": 202,
          "min": 4,
          "max": 398
        },
        "comment_id": {
          "nulls": 33,
          "distinct": 205,
          "min": 1,
          "max": 599
        },
        "action_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "delete",
          "max": "warn"
        },
        "action_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-02 09:50:33",
          "max": "2022-12-31 13:40:58"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/user_profiles.csv",
      "format": "csv",
      "table": "user_profiles",
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/csv/user_profiles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/csv/user_profiles.csv",
      "bytes": 11432,
      "sha256": "be1ff7c6a5a7e23f85feb377e28206eb9bec676bea7590588aaff424ed599de9",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/encryption_keys.csv",
      "format": "csv",
      "table": "encryption_keys",
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/csv/encryption_keys.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/csv/encryption_keys.csv",
      "bytes": 4704,
      "sha256": "3e53c58aeabb3dcc103b09976f788170ffada6374d3cb0baee10ae0822742ce7",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/posts.csv",
      "format": "csv",
      "table": "posts",
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/csv/posts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/csv/posts.csv",
      "bytes": 78801,
      "sha256": "24a9f2622f2054316c0d133537ae83131948d2a5e4a2d9105d0e0b3165d5beb4",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/comments.csv",
      "format": "csv",
      "table": "comments",
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/csv/comments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/csv/comments.csv",
      "bytes": 119952,
      "sha256": "3e865cf21984fb94dd7d1c3edac4011d3a4a8672e84c53bdc30225c526340eb9",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/moderation_actions.csv",
      "format": "csv",
      "table": "moderation_actions",
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/csv/moderation_actions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/csv/moderation_actions.csv",
      "bytes": 12591,
      "sha256": "ce95d7f64faeedda0d2b40d85f6df3f42e2c857eb0ecf3bd15c7dcf131370c55",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "blockchain-based-social-media-privacy-controls.json",
      "format": "json",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/blockchain-based-social-media-privacy-controls.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/blockchain-based-social-media-privacy-controls.json",
      "bytes": 419001,
      "sha256": "d00a39fd614be1fbcea333cc03af267168a1ddd5ce6193506c97effc92fc50cd",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/sql/postgres.sql",
      "bytes": 254499,
      "sha256": "6349c96e4666688f072464435443525757fbd3928116af680ef6a629395d6e6d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/sql/mysql.sql",
      "bytes": 253833,
      "sha256": "ac4547fe776fa4b78e9c5acf343892c42a7ca84c8894fcd068a63624a00a4068",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/sql/mssql.sql",
      "bytes": 257801,
      "sha256": "780d04f01f2956a8f7631825129a9dc0a2c18853ef802403d2e31489f9639bea",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/sql/sqlite.sql",
      "bytes": 253534,
      "sha256": "364df68aba16cfcbb2d304079703c9ecef06125af89f11db9ac591b953a53cab",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/prisma/seed.ts",
      "bytes": 373944,
      "sha256": "b6f9dca49fb392197431b3c522501a212f70bfafb341364eccaf90d55b0a18e1",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/blockchain-based-social-media-privacy-controls/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-social-media-privacy-controls/v3/django/fixtures.json",
      "bytes": 479682,
      "sha256": "e9c8d71e8253848d2e1d74bcc210f5ec23e56dd6149770e5d72604a339c241d0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734468826,
  "updatedAt": 1788782583171
}
