{
  "format": "dataset-manifest/1",
  "slug": "hostel-management-system",
  "version": 1,
  "seed": "hostel-management-system:1",
  "spec": {
    "format": "dataset/1",
    "slug": "hostel-management-system",
    "name": "Hostel Operations Insight",
    "tagline": "Hostel operations data including bookings, room types, guest check-ins, meal subscriptions, and complaint updates.",
    "description": "Hostels manage bookings and guest experiences that revolve around shared accommodations, dining, and communal facilities. Guests book various room types and have access to meal subscriptions through a mess menu, creating a dynamic environment where short-term visitors intermingle with long-term residents. The operations team handles guest check-ins and check-outs, ensuring that facilities run smoothly. Complaints are tracked and addressed, while asset management and staff shifts are organized to maintain high service standards. This dataset provides a comprehensive look at hostel operations, enabling users to analyze booking patterns, guest demographics, and service efficiency. Being synthetic, it allows for various testing and development scenarios without the complexities of real-world data privacy concerns.",
    "domain": "hospitality",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "hostel",
      "operations",
      "guest management",
      "bookings",
      "complaints",
      "meal subscriptions"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "hostel_operations": {
        "description": "This table contains records of hostel operations, with each row representing a unique guest booking or transaction. It tracks essential details such as room types, guest check-in and check-out dates, meal subscriptions, and any complaints raised during the stay.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each booking or transaction."
          },
          "guest_name": {
            "kind": "fullName",
            "description": "Full name of the guest making the booking.",
            "nullable": true
          },
          "room_type": {
            "kind": "enum",
            "values": [
              "shared",
              "private",
              "dormitory"
            ],
            "description": "Type of room booked by the guest."
          },
          "check_in_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the guest checks in."
          },
          "check_out_date": {
            "kind": "date",
            "after": "check_in_date",
            "withinDays": 60,
            "description": "Date when the guest checks out."
          },
          "meal_subscription": {
            "kind": "enum",
            "values": [
              "none",
              "breakfast",
              "full board"
            ],
            "description": "Meal plan chosen by the guest.",
            "nullable": true,
            "when": {
              "column": "room_type",
              "in": [
                "private",
                "dormitory"
              ]
            }
          },
          "complaint_status": {
            "kind": "enum",
            "values": [
              "none",
              "resolved",
              "pending"
            ],
            "description": "Status of any complaints raised by the guest."
          },
          "length_of_stay": {
            "kind": "int",
            "min": 1,
            "max": 30,
            "description": "Total number of nights the guest stays.",
            "nullable": true
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common room types booked by guests?",
      "How does the length of stay vary among different meal subscription plans?",
      "What percentage of complaints are resolved before check-out?",
      "Which months see the highest number of guest bookings?",
      "What trends can we observe in meal subscription choices over time?"
    ],
    "suggestedQueries": [
      {
        "title": "List all guest bookings",
        "sql": "SELECT * FROM hostel_operations;",
        "dialect": "postgres"
      },
      {
        "title": "Count bookings by room type",
        "sql": "SELECT room_type, COUNT(*) FROM hostel_operations GROUP BY room_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average length of stay for resolved complaints",
        "sql": "SELECT AVG(length_of_stay) FROM hostel_operations WHERE complaint_status = 'resolved';",
        "dialect": "postgres"
      },
      {
        "title": "Booking trends by month",
        "sql": "SELECT DATE_TRUNC('month', check_in_date) AS month, COUNT(*) FROM hostel_operations GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Training for hospitality staff",
        "body": "Hospitality management programs can use this dataset to train staff on handling guest bookings, managing complaints, and understanding meal subscriptions. By practicing with this data, students can simulate real-world scenarios and improve their operational skills."
      },
      {
        "title": "Data analysis for hostel management",
        "body": "Hostel managers can leverage this dataset to analyze booking trends, assess guest satisfaction through complaint resolution rates, and optimize meal offerings based on guest preferences. This insight can lead to improved service delivery and operational efficiency."
      },
      {
        "title": "ORM development for booking systems",
        "body": "Developers creating booking management systems can use this dataset to seed their databases with realistic data. This allows for thorough testing of features like booking transactions, guest check-ins, and complaint handling before deploying the system."
      }
    ]
  },
  "counts": {
    "hostel_operations": 250
  },
  "stats": {
    "hostel_operations": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "guest_name": {
          "nulls": 21,
          "distinct": 228,
          "min": "Alice Nakamura",
          "max": "Zoe Bennett"
        },
        "room_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "dormitory",
          "max": "shared"
        },
        "check_in_date": {
          "nulls": 0,
          "distinct": 183,
          "min": "2023-01-01",
          "max": "2023-12-31"
        },
        "check_out_date": {
          "nulls": 0,
          "distinct": 178,
          "min": "2023-01-21",
          "max": "2024-02-16"
        },
        "meal_subscription": {
          "nulls": 87,
          "distinct": 3,
          "min": "breakfast",
          "max": "none"
        },
        "complaint_status": {
          "nulls": 0,
          "distinct": 3,
          "min": "none",
          "max": "resolved"
        },
        "length_of_stay": {
          "nulls": 32,
          "distinct": 30,
          "min": 1,
          "max": 30
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/hostel_operations.csv",
      "format": "csv",
      "table": "hostel_operations",
      "key": "datasets/hostel-management-system/v1/csv/hostel_operations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/csv/hostel_operations.csv",
      "bytes": 15506,
      "sha256": "0d11fa4837bb6a0a6cd155ef0d2d14fb67f9715ce223d27e475d2e88ab7c1df0",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "hostel-management-system.json",
      "format": "json",
      "table": null,
      "key": "datasets/hostel-management-system/v1/hostel-management-system.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/hostel-management-system.json",
      "bytes": 67278,
      "sha256": "310e29d48c885b2c6ed95673a4b7a0f7a4582c233340c4bf3e167b384b7035ca",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/hostel-management-system/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/sql/postgres.sql",
      "bytes": 23091,
      "sha256": "e5c104c4d0c5846270232d66aecf51042f5edef38d5d5d0b76c12bdfc7560058",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/hostel-management-system/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/sql/mysql.sql",
      "bytes": 22970,
      "sha256": "2467c61b19b00234abc79f25bf8bf8efe32176c6f324f9f6287b42002a2ee9ed",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/hostel-management-system/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/sql/mssql.sql",
      "bytes": 24445,
      "sha256": "fde25ff7e3d7fe35742a0f9c881ca276e64abe4e0bc402e8b52a892479818ef8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/hostel-management-system/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/sql/sqlite.sql",
      "bytes": 22930,
      "sha256": "67494153f47879794d56d9014920cb062bf084541c1078090cdfc1dcc1c9a44d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/hostel-management-system/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/prisma/seed.ts",
      "bytes": 53005,
      "sha256": "82ddb612b7abe7eafdc0ea90796e4d808a222bb4ebf96f1c57e625639aa7893d",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/hostel-management-system/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/hostel-management-system/v1/django/fixtures.json",
      "bytes": 80249,
      "sha256": "1769405d1937c0ec322063c5cfbb4e7632b1169271400365b7d9d27a0dfa1b31",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788765854964,
  "updatedAt": 1788765854964
}
