{
  "format": "dataset-manifest/1",
  "slug": "enterprise-knowledge-base-system",
  "version": 2,
  "seed": "enterprise-knowledge-base-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "enterprise-knowledge-base-system",
    "name": "Knowledge Management Insights",
    "tagline": "User interactions, articles, subscriptions, and reviews in customer support environments.",
    "description": "Users engage actively with a variety of knowledge articles, seeking quick solutions to their queries. Each user belongs to a specific department, which helps streamline the support process by categorizing inquiries and resources accordingly. As users interact with the articles, they leave reviews and comments that provide insights into the effectiveness of the content, fostering a continuous feedback loop that enhances the knowledge base. Subscriptions indicate which articles users are following, highlighting topics of high interest or urgency within their departments.\n\nThe relationships among the tables form a rich landscape of interactions. A single row in the users table represents an individual seeking assistance, while the departments table details the organizational structure each user belongs to. Articles are entries in the knowledge base that users reference, and subscriptions track which articles users have chosen to follow. Reviews and comments are both linked to articles, with each review providing qualitative feedback on the content, and comments offering a space for more casual or conversational insights. This interconnectedness allows for a nuanced understanding of how knowledge is consumed and valued within customer support contexts.\n\nThis dataset offers a wealth of opportunities for exploring questions such as: Which articles receive the most engagement? How does the feedback from reviews and comments influence article revisions? Are there patterns in subscriptions that correlate with departmental needs? By practicing with this data, developers can simulate user interactions, analyze trends in knowledge consumption, and identify areas for improving content delivery. Please note that all data is synthetic, designed to imitate real-world user behavior without representing actual users or organizations.",
    "domain": "customer-support",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "knowledge management",
      "customer support",
      "user interaction",
      "article versions",
      "departmental subscriptions",
      "content management"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "This table contains information about users who interact with the knowledge base, linked to their respective departments.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the user."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the user."
          },
          "department_id": {
            "kind": "fk",
            "ref": "departments.id",
            "description": "Foreign key linking to the user's department."
          }
        }
      },
      "departments": {
        "description": "This table outlines the various departments within the organization, which users belong to.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each department."
          },
          "name": {
            "kind": "words",
            "max": 3,
            "description": "Name of the department.",
            "pool": [
              "support",
              "sales",
              "technical",
              "customer",
              "billing",
              "operations",
              "marketing",
              "human",
              "resources",
              "quality",
              "service",
              "development",
              "training",
              "analytics",
              "design",
              "strategy",
              "research",
              "compliance",
              "management",
              "solutions",
              "engagement"
            ],
            "min": 1
          }
        }
      },
      "articles": {
        "description": "This table tracks the articles available in the knowledge base, including their versions and statuses.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each article."
          },
          "title": {
            "kind": "words",
            "max": 5,
            "description": "Title of the article.",
            "pool": [
              "guide",
              "tips",
              "troubleshooting",
              "overview",
              "best",
              "practices",
              "faq",
              "introduction",
              "update",
              "report",
              "analysis",
              "case",
              "study",
              "review",
              "strategy",
              "insight",
              "framework",
              "approach",
              "methodology",
              "solution",
              "resource"
            ],
            "min": 1
          },
          "version": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Version of the article."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the article was created.",
            "dayProfile": "business"
          },
          "updated_at": {
            "kind": "datetime",
            "after": "created_at",
            "withinDays": 30,
            "description": "Date when the article was last updated."
          },
          "status": {
            "kind": "enum",
            "values": [
              "published",
              "draft",
              "archived"
            ],
            "description": "Current status of the article."
          }
        }
      },
      "subscriptions": {
        "description": "This table captures which departments are subscribed to which articles, indicating interest and access.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each subscription."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Foreign key linking to the user who subscribed."
          },
          "article_id": {
            "kind": "fk",
            "ref": "articles.id",
            "description": "Foreign key linking to the subscribed article."
          },
          "subscribed_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the subscription was made.",
            "dayProfile": "waking"
          }
        }
      },
      "reviews": {
        "description": "This table captures user reviews on articles, providing feedback on their usefulness.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each review."
          },
          "article_id": {
            "kind": "fk",
            "ref": "articles.id",
            "description": "Foreign key linking to the article being reviewed."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Foreign key linking to the user who wrote the review."
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Rating given by the user, on a scale from 1 to 5.",
            "distribution": "high"
          },
          "comment": {
            "kind": "sentence",
            "max": 200,
            "nullable": true,
            "description": "Comment provided by the user in the review."
          },
          "reviewed_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the review was submitted.",
            "dayProfile": "waking"
          }
        }
      },
      "comments": {
        "description": "This table captures comments made by users on articles, fostering discussions around knowledge.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each comment."
          },
          "article_id": {
            "kind": "fk",
            "ref": "articles.id",
            "description": "Foreign key linking to the article being commented on."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Foreign key linking to the user who made the comment."
          },
          "content": {
            "kind": "sentence",
            "max": 250,
            "description": "Content of the comment made by the user."
          },
          "commented_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the comment was made.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "Which articles receive the most user reviews and why might that be?",
      "How does the user engagement with articles vary by department?",
      "What trends can be observed in article version updates over time?",
      "Which articles have the highest average ratings from users?",
      "How frequently do users comment on articles compared to writing reviews?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Article Reviews",
        "sql": "SELECT users.full_name, articles.title, reviews.rating FROM reviews JOIN users ON reviews.user_id = users.id JOIN articles ON reviews.article_id = articles.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Article Subscriptions by Department",
        "sql": "SELECT departments.name, COUNT(subscriptions.id) AS subscription_count FROM subscriptions JOIN users ON subscriptions.user_id = users.id JOIN departments ON users.department_id = departments.id GROUP BY departments.name;",
        "dialect": "postgres"
      },
      {
        "title": "Average Rating of Each Article",
        "sql": "SELECT articles.title, AVG(reviews.rating) AS average_rating FROM articles LEFT JOIN reviews ON articles.id = reviews.article_id GROUP BY articles.title;",
        "dialect": "postgres"
      },
      {
        "title": "Latest Comments on Articles",
        "sql": "SELECT articles.title, comments.content, comments.commented_at FROM comments JOIN articles ON comments.article_id = articles.id ORDER BY comments.commented_at DESC LIMIT 10;",
        "dialect": "postgres"
      },
      {
        "title": "Article Engagement Trends Over Time",
        "sql": "SELECT articles.title, COUNT(reviews.id) AS review_count, COUNT(comments.id) AS comment_count FROM articles LEFT JOIN reviews ON articles.id = reviews.article_id LEFT JOIN comments ON articles.id = comments.article_id GROUP BY articles.title ORDER BY review_count DESC;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Customer Support Analysis",
        "body": "Customer support managers can leverage this dataset to analyze which articles are most frequently reviewed and commented on. By identifying high-engagement articles, they can prioritize updates and improvements based on user feedback, ultimately enhancing the knowledge base's effectiveness."
      },
      {
        "title": "Training and Development",
        "body": "Instructors can use this dataset in a classroom setting to teach students about data analysis in customer support contexts. By working with real-like datasets, students can learn how to extract insights from user interactions, fostering skills in SQL and data interpretation."
      },
      {
        "title": "Content Management Strategies",
        "body": "Content managers can utilize this dataset to track the evolution of articles over time, examining how updates and versions correlate with user engagement. By understanding the dynamics of knowledge consumption, they can develop strategies to optimize content for better accessibility and relevance."
      },
      {
        "title": "Departmental Engagement Insights",
        "body": "Department heads can analyze the subscription patterns of their teams to determine which articles resonate most with their members. This can drive targeted training sessions and encourage departments to engage more deeply with the knowledge base, promoting a culture of knowledge sharing."
      }
    ]
  },
  "counts": {
    "articles": 150,
    "departments": 10,
    "users": 200,
    "comments": 50,
    "reviews": 100,
    "subscriptions": 300
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 199,
          "min": "Alice Bennett",
          "max": "Zara Lee"
        },
        "email": {
          "nulls": 0,
          "distinct": 200
        },
        "department_id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        }
      }
    },
    "departments": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "name": {
          "nulls": 0,
          "distinct": 10
        }
      }
    },
    "articles": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "title": {
          "nulls": 0,
          "distinct": 135
        },
        "version": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2020-01-14 15:36:38",
          "max": "2022-12-16 10:24:24"
        },
        "updated_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2020-01-26 14:24:13",
          "max": "2023-01-06 15:05:14"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "archived",
          "max": "published"
        }
      }
    },
    "subscriptions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 158,
          "min": 1,
          "max": 199
        },
        "article_id": {
          "nulls": 0,
          "distinct": 132,
          "min": 1,
          "max": 150
        },
        "subscribed_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-01 08:47:51",
          "max": "2023-01-01 18:57:12"
        }
      }
    },
    "reviews": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "article_id": {
          "nulls": 0,
          "distinct": 72,
          "min": 1,
          "max": 147
        },
        "user_id": {
          "nulls": 0,
          "distinct": 80,
          "min": 6,
          "max": 200
        },
        "rating": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "comment": {
          "nulls": 8,
          "distinct": 92
        },
        "reviewed_at": {
          "nulls": 0,
          "distinct": 100,
          "min": "2020-01-06 17:44:01",
          "max": "2022-12-16 21:28:57"
        }
      }
    },
    "comments": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "article_id": {
          "nulls": 0,
          "distinct": 41,
          "min": 13,
          "max": 146
        },
        "user_id": {
          "nulls": 0,
          "distinct": 44,
          "min": 3,
          "max": 200
        },
        "content": {
          "nulls": 0,
          "distinct": 49
        },
        "commented_at": {
          "nulls": 0,
          "distinct": 50,
          "min": "2020-01-05 15:47:09",
          "max": "2022-12-30 03:07:01"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/articles.csv",
      "format": "csv",
      "table": "articles",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/articles.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/articles.csv",
      "bytes": 11963,
      "sha256": "cd632fdc3228292a82476d39ad542e57d5783f15f570415e6f1abf5611dbfe52",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/departments.csv",
      "format": "csv",
      "table": "departments",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/departments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/departments.csv",
      "bytes": 259,
      "sha256": "1a918aa4aeacd55ad5642ee04e74cd4f161b44b08a408894dbc1f1c48b96a36b",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/users.csv",
      "bytes": 8605,
      "sha256": "0569c9df438ea8e1fb8e0dd3253b3ccc3f93f22901930675737be760af1815c3",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/comments.csv",
      "format": "csv",
      "table": "comments",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/comments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/comments.csv",
      "bytes": 4324,
      "sha256": "35da376ec7a1760867f901567621c9f01b5f86a89552d79c84c05a91b7fcbaa2",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reviews.csv",
      "format": "csv",
      "table": "reviews",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/reviews.csv",
      "bytes": 8623,
      "sha256": "5479b271b9e652363e1e0f4499711c97d004fe6543a0191a7623be612692de35",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/subscriptions.csv",
      "format": "csv",
      "table": "subscriptions",
      "key": "datasets/enterprise-knowledge-base-system/v2/csv/subscriptions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/csv/subscriptions.csv",
      "bytes": 9467,
      "sha256": "35dd2130fbab7aefd2fecca206eff2fee4af8011d1b8d5742ac8b0cac4068971",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "enterprise-knowledge-base-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/enterprise-knowledge-base-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/enterprise-knowledge-base-system.json",
      "bytes": 124369,
      "sha256": "6f4176c8b57f0d9aeec7e036d005dc8404f0e6e05bba9e8db2d7722d90f5f77b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/sql/postgres.sql",
      "bytes": 57598,
      "sha256": "51d12fd899b18b4e4f72bf0842da47f58ae6b6f6e1fec83f6cdda7fbc1b93037",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/sql/mysql.sql",
      "bytes": 56910,
      "sha256": "e5d61215da531570b4a5cad148f5c7f3dfc8ac0198663e9a3f3951b89e60f4b3",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/sql/mssql.sql",
      "bytes": 58914,
      "sha256": "77a77f8a62759b1e529fe9d1de3179add1f0dcd240c89974544535f174da8c6e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/sql/sqlite.sql",
      "bytes": 56635,
      "sha256": "7bb359c2d49701d597f82d89a80ca0cf12855aa0db1bdfbadede41645c5a1dac",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/prisma/seed.ts",
      "bytes": 106699,
      "sha256": "0dae9e05133c79cd61167f23f5a911555c708dfab701d3f9a2beb2435f76b928",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/enterprise-knowledge-base-system/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/enterprise-knowledge-base-system/v2/django/fixtures.json",
      "bytes": 158165,
      "sha256": "4bdde17517b7ff0ffd8d4ec56879d8be193090ab4b8ccce43c3e9b065b27251f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765995913,
  "updatedAt": 1788778599363
}
