{
  "format": "dataset-manifest/1",
  "slug": "real-estate-print-management",
  "version": 1,
  "seed": "real-estate-print-management:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-estate-print-management",
    "name": "Real Estate Print Management",
    "tagline": "Management data for print jobs, printers, and supplies in real estate, capturing user activities and policies.",
    "description": "Agents create print jobs to produce essential documents like property listings and contracts, while printers execute these tasks, ensuring timely availability of materials for both clients and staff. Users, primarily real estate agents and administrative personnel, initiate print requests and manage their own profiles within the system. The health and status of printers are monitored closely, as they are crucial for the seamless operation of the real estate business. Each printer is linked to specific toner and paper supplies, tracking inventory levels to prevent delays due to shortages. Additionally, organizational policies dictate the permissions regarding who can print what, ensuring responsible use of resources.\n\nIn this setup, each row in the print_jobs table represents a unique request for printing, detailing the user who initiated it, the document type, and its status. The printers table contains information about each printer's functionality, location, and current condition. The toner_and_paper table tracks the available supplies, linking to the printers that require them. Policies are outlined in their own table, connecting back to users to specify who has access to particular printing capabilities.\n\nThis dataset is excellent for practicing data manipulation and analysis, as it allows developers to explore questions such as: What is the average number of print jobs per user? Which printers frequently run low on supplies? How do print job volumes vary by document type? Analyzing this synthetic data will help improve skills in SQL queries, join operations, and data visualization, all of which are vital in real-world applications.",
    "domain": "real-estate",
    "shape": "graph-edges",
    "useCases": [
      "sql-practice",
      "teaching"
    ],
    "keywords": [
      "printing",
      "real estate",
      "print jobs",
      "printer management",
      "toner availability",
      "policies",
      "efficiency"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "print_jobs": {
        "description": "This table records the details of each print job submitted by users, linking to the relevant printer and job status.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each print job."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "References the user who submitted the print job."
          },
          "printer_id": {
            "kind": "fk",
            "ref": "printers.id",
            "description": "References the printer designated for the print job."
          },
          "status": {
            "kind": "enum",
            "values": [
              "queued",
              "printing",
              "completed",
              "error"
            ],
            "description": "Current status of the print job."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the print job was created.",
            "dayProfile": "business"
          },
          "document_type": {
            "kind": "enum",
            "values": [
              "property_listing",
              "contract",
              "brochure"
            ],
            "description": "Type of document being printed.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "completed",
                "error"
              ]
            }
          }
        }
      },
      "printers": {
        "description": "This table stores information about the printers available, including their status and location.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each printer."
          },
          "location": {
            "kind": "sentence",
            "description": "Physical location of the printer within the office.",
            "nullable": true
          },
          "status": {
            "kind": "enum",
            "values": [
              "online",
              "offline",
              "maintenance"
            ],
            "description": "Current operational status of the printer."
          },
          "toner_level": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "description": "Current toner level percentage."
          },
          "paper_level": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "description": "Current paper level percentage."
          }
        }
      },
      "toner_and_paper": {
        "description": "This table tracks the availability of toner and paper supplies for each printer.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each supply entry."
          },
          "printer_id": {
            "kind": "fk",
            "ref": "printers.id",
            "description": "References the printer associated with the supplies."
          },
          "toner_type": {
            "kind": "enum",
            "values": [
              "black",
              "color"
            ],
            "description": "Type of toner available."
          },
          "quantity": {
            "kind": "int",
            "min": 0,
            "max": 500,
            "description": "Amount of toner or paper available.",
            "nullable": true
          },
          "supply_type": {
            "kind": "enum",
            "values": [
              "toner",
              "paper"
            ],
            "description": "Indicates whether the entry is for toner or paper.",
            "nullable": true,
            "when": {
              "column": "toner_type",
              "in": [
                "color"
              ]
            }
          }
        }
      },
      "policies": {
        "description": "This table outlines the printing policies that govern permissions and usage within the organization.",
        "rows": 10,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each policy."
          },
          "policy_name": {
            "kind": "words",
            "description": "Name of the printing policy."
          },
          "description": {
            "kind": "sentence",
            "description": "Details about the policy and its restrictions.",
            "nullable": true
          },
          "is_active": {
            "kind": "bool",
            "trueRate": 0.8,
            "description": "Indicates whether the policy is currently active."
          }
        }
      },
      "users": {
        "description": "This table contains information about users who submit print jobs, linking them to their respective roles.",
        "rows": 100,
        "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."
          },
          "role": {
            "kind": "enum",
            "values": [
              "agent",
              "admin",
              "assistant"
            ],
            "description": "Role of the user in the organization."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What is the average toner level across all printers?",
      "How many print jobs are currently in progress?",
      "Which document types are printed most frequently?",
      "What is the average response time for print job errors?",
      "How does printer availability affect job completion rates?"
    ],
    "suggestedQueries": [
      {
        "title": "List all print jobs with their statuses",
        "sql": "SELECT pj.id, pj.status FROM print_jobs pj;",
        "dialect": "postgres"
      },
      {
        "title": "Count print jobs by document type",
        "sql": "SELECT document_type, COUNT(*) FROM print_jobs GROUP BY document_type;",
        "dialect": "postgres"
      },
      {
        "title": "Find printers that are offline",
        "sql": "SELECT p.location FROM printers p WHERE p.status = 'offline';",
        "dialect": "postgres"
      },
      {
        "title": "Join print jobs with printer statuses",
        "sql": "SELECT pj.id, pj.status, pr.status AS printer_status FROM print_jobs pj JOIN printers pr ON pj.printer_id = pr.id;",
        "dialect": "postgres"
      },
      {
        "title": "Get average toner level for each printer",
        "sql": "SELECT p.location, AVG(p.toner_level) FROM printers p GROUP BY p.location;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Real Estate Agents",
        "body": "Real estate agents can utilize this data to monitor the status of print jobs for important documents like property listings and contracts. By analyzing the print job statuses, agents can ensure that they have the necessary materials ready for client meetings and open houses."
      },
      {
        "title": "IT Administrators",
        "body": "IT administrators can leverage this dataset to assess printer health and availability across their organization. By examining toner and paper levels, they can proactively manage supplies and ensure that printers are operational, reducing downtime and improving workflow efficiency."
      },
      {
        "title": "Business Analysts",
        "body": "Business analysts can study printing policies and user roles to identify trends in print usage and compliance with organizational guidelines. This analysis can help in optimizing printing costs and improving the overall efficiency of the printing process."
      },
      {
        "title": "Educators",
        "body": "Educators can use this dataset in classroom settings to teach students about database management and SQL querying. By crafting real-world scenarios based on this print management dataset, they can provide hands-on experience in data analysis and problem-solving."
      }
    ]
  },
  "counts": {
    "policies": 10,
    "printers": 50,
    "toner_and_paper": 30,
    "users": 100,
    "print_jobs": 200
  },
  "stats": {
    "print_jobs": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "user_id": {
          "nulls": 0,
          "distinct": 89,
          "min": 2,
          "max": 100
        },
        "printer_id": {
          "nulls": 0,
          "distinct": 49,
          "min": 1,
          "max": 50
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "completed",
          "max": "queued"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-02 11:48:11",
          "max": "2023-12-28 16:59:10"
        },
        "document_type": {
          "nulls": 105,
          "distinct": 3,
          "min": "brochure",
          "max": "property_listing"
        }
      }
    },
    "printers": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "location": {
          "nulls": 4,
          "distinct": 45
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "maintenance",
          "max": "online"
        },
        "toner_level": {
          "nulls": 0,
          "distinct": 49,
          "min": 2.67,
          "max": 95.97
        },
        "paper_level": {
          "nulls": 0,
          "distinct": 49,
          "min": 19.66,
          "max": 96.39
        }
      }
    },
    "toner_and_paper": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "printer_id": {
          "nulls": 0,
          "distinct": 21,
          "min": 2,
          "max": 50
        },
        "toner_type": {
          "nulls": 0,
          "distinct": 2,
          "min": "black",
          "max": "color"
        },
        "quantity": {
          "nulls": 6,
          "distinct": 23,
          "min": 15,
          "max": 495
        },
        "supply_type": {
          "nulls": 16,
          "distinct": 2,
          "min": "paper",
          "max": "toner"
        }
      }
    },
    "policies": {
      "rows": 10,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "policy_name": {
          "nulls": 0,
          "distinct": 10
        },
        "description": {
          "nulls": 1,
          "distinct": 9
        },
        "is_active": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    },
    "users": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 0,
          "distinct": 99,
          "min": "Alice Ali",
          "max": "Zara Ibrahim"
        },
        "email": {
          "nulls": 0,
          "distinct": 100
        },
        "role": {
          "nulls": 0,
          "distinct": 3,
          "min": "admin",
          "max": "assistant"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/policies.csv",
      "format": "csv",
      "table": "policies",
      "key": "datasets/real-estate-print-management/v1/csv/policies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/csv/policies.csv",
      "bytes": 907,
      "sha256": "858ffd87ac66e6740b50d19796aeaa38efc7bfab07a175c38f8f63b428fe4042",
      "rows": 10,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/printers.csv",
      "format": "csv",
      "table": "printers",
      "key": "datasets/real-estate-print-management/v1/csv/printers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/csv/printers.csv",
      "bytes": 3875,
      "sha256": "d3456d7ff73e6ca5f0a2b680344753c45f09f09c6681702f89ccc1b72993e49f",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/toner_and_paper.csv",
      "format": "csv",
      "table": "toner_and_paper",
      "key": "datasets/real-estate-print-management/v1/csv/toner_and_paper.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/csv/toner_and_paper.csv",
      "bytes": 618,
      "sha256": "037891dd09aa91235b1953d0924cbb6b0cf31b9c7724e747f7461f7dbd8772ff",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/real-estate-print-management/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/csv/users.csv",
      "bytes": 4843,
      "sha256": "700e0f3aac8974d4635f0d725d135ccdaae6123fd8302716ec5cb5c542d2cef0",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/print_jobs.csv",
      "format": "csv",
      "table": "print_jobs",
      "key": "datasets/real-estate-print-management/v1/csv/print_jobs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/csv/print_jobs.csv",
      "bytes": 8935,
      "sha256": "8492c83d8f12eec6f185a3342e82583c9f1fd51c513f3f176f4dff5c8747c97f",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-estate-print-management.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/real-estate-print-management.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/real-estate-print-management.json",
      "bytes": 63280,
      "sha256": "002176fc3f4b972eb0dab6e761092d31c3c53c959cd2551be8616d7c0a989d5a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/sql/postgres.sql",
      "bytes": 28097,
      "sha256": "2f23435be8386cda10641da74a9445bb8e005727a2974f7c4b3b322d6bbe6c0b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/sql/mysql.sql",
      "bytes": 27508,
      "sha256": "7e0ece3af333dadb9683ebb0050fa3365bf56fd1c99dc392a1bfb67107f043c6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/sql/mssql.sql",
      "bytes": 28800,
      "sha256": "f33d98631f09107736cf19ba24f2070b7002db17c71aa6f1a65d0482c1c73339",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/sql/sqlite.sql",
      "bytes": 27308,
      "sha256": "27d46ac49920035237fa4a7c2dfca887c13ed8c42274e216385b542b94c17c77",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/prisma/seed.ts",
      "bytes": 51869,
      "sha256": "5de8c760dcb60451c187568d6c07d96f6cb1e8b52499d6fb78a1830cfa40baa3",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-estate-print-management/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-print-management/v1/django/fixtures.json",
      "bytes": 79522,
      "sha256": "bf13990844240051a39bcdeee69a1213e19833a2740a2325dff525a47c2c6b39",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734218652,
  "updatedAt": 1788734218652
}
