{
  "format": "dataset-manifest/1",
  "slug": "real-estate-property-management-software",
  "version": 1,
  "seed": "real-estate-property-management-software:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-estate-property-management-software",
    "name": "Property Management Event Log",
    "tagline": "Event log detailing properties, tenants, maintenance requests, vendors, and legal cases in property management.",
    "description": "Property management operations are vital for ensuring tenant satisfaction and property upkeep. This dataset models the key aspects of property management, including properties, tenants, maintenance requests, vendors, and legal cases. Each table captures a specific facet of operations, enabling stakeholders to monitor activities and analyze trends. The properties table holds information about each property, while the tenants table lists all individuals residing in those properties. Maintenance requests detail the various service requests made by tenants, often highlighting common issues such as plumbing and electrical problems, which can be analyzed for frequency and service response times. Vendor interactions are documented in a separate table, allowing for management of contractors and service providers. Legal cases are also represented, capturing the less frequent but critical disputes that may arise between tenants and property management. This synthetic dataset serves as a valuable resource for practicing SQL queries and building analytical dashboards to gain insights into property management efficiency and tenant satisfaction.",
    "domain": "real-estate",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "property management",
      "tenants",
      "maintenance requests",
      "vendors",
      "legal cases",
      "real estate"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "properties": {
        "description": "Each row represents a unique property managed, detailing its characteristics and location.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the property."
          },
          "address": {
            "kind": "sentence",
            "description": "Full address of the property."
          },
          "property_type": {
            "kind": "enum",
            "values": [
              "apartment",
              "house",
              "condo"
            ],
            "description": "Type of property."
          },
          "num_units": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "description": "Total number of units in the property."
          }
        }
      },
      "tenants": {
        "description": "This table lists all tenants residing in the properties, linking them to specific properties.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the tenant."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the tenant."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the tenant."
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.id",
            "description": "References the property the tenant resides in."
          }
        }
      },
      "maintenance_requests": {
        "description": "Records of maintenance requests submitted by tenants, including details of the issue.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the maintenance request."
          },
          "tenant_id": {
            "kind": "fk",
            "ref": "tenants.id",
            "description": "References the tenant who submitted the request."
          },
          "issue": {
            "kind": "sentence",
            "description": "Description of the maintenance issue."
          },
          "request_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the request was submitted.",
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "in_progress",
              "completed"
            ],
            "description": "Current status of the maintenance request."
          }
        }
      },
      "vendors": {
        "description": "Details of vendors who provide services for maintenance requests, including contact information.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the vendor."
          },
          "company_name": {
            "kind": "company",
            "description": "Name of the service provider."
          },
          "contact_email": {
            "kind": "email",
            "from": "company_name",
            "description": "Contact email for the vendor."
          },
          "phone": {
            "kind": "phone",
            "description": "Phone number for the vendor."
          }
        }
      },
      "legal_cases": {
        "description": "Tracks legal disputes between tenants and property management, detailing case status and outcomes.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the legal case."
          },
          "tenant_id": {
            "kind": "fk",
            "ref": "tenants.id",
            "description": "References the tenant involved in the case."
          },
          "case_type": {
            "kind": "enum",
            "values": [
              "eviction",
              "dispute",
              "claim"
            ],
            "description": "Type of legal case."
          },
          "filing_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the case was filed.",
            "trend": "seasonal"
          },
          "status": {
            "kind": "enum",
            "values": [
              "open",
              "closed",
              "settled"
            ],
            "description": "Current status of the legal case."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "nullable",
      "timestamped",
      "categorical",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common maintenance issues reported by tenants?",
      "How quickly are maintenance requests typically resolved?",
      "What percentage of legal cases are settled versus those that remain open?",
      "Which properties have the highest tenant turnover?",
      "How do maintenance request trends vary by property type?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Tenants and Properties",
        "sql": "SELECT tenants.full_name, properties.address FROM tenants JOIN properties ON tenants.property_id = properties.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Maintenance Requests by Status",
        "sql": "SELECT status, COUNT(*) FROM maintenance_requests GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Average Resolution Time for Maintenance Requests",
        "sql": "SELECT AVG(DATE_PART('day', now() - request_date)) AS avg_resolution FROM maintenance_requests WHERE status = 'completed';",
        "dialect": "postgres"
      },
      {
        "title": "Legal Case Breakdown by Type",
        "sql": "SELECT case_type, COUNT(*) FROM legal_cases GROUP BY case_type;",
        "dialect": "postgres"
      },
      {
        "title": "Tenants with Open Legal Cases",
        "sql": "SELECT tenants.full_name, legal_cases.status FROM tenants JOIN legal_cases ON tenants.id = legal_cases.tenant_id WHERE legal_cases.status = 'open';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Property Management Analytics",
        "body": "Property managers can utilize this dataset to analyze maintenance request patterns and improve service delivery. By identifying common issues, they can proactively address maintenance needs and enhance tenant satisfaction."
      },
      {
        "title": "Vendor Performance Evaluation",
        "body": "Real estate firms can assess vendor performance using this dataset. By tracking maintenance requests linked to specific vendors, they can evaluate response times and service quality, ensuring that they engage the most reliable service providers."
      },
      {
        "title": "Legal Case Monitoring",
        "body": "Legal teams in property management can leverage this dataset to monitor ongoing legal cases. They can analyze case types and outcomes to refine their strategies for dispute resolution and litigation management."
      },
      {
        "title": "Tenant Retention Strategies",
        "body": "Property managers can analyze tenant turnover rates in relation to maintenance issues and legal disputes. This dataset provides insights that can inform strategies to improve tenant retention and minimize vacancies."
      }
    ]
  },
  "counts": {
    "properties": 200,
    "tenants": 300,
    "legal_cases": 100,
    "maintenance_requests": 500,
    "vendors": 150
  },
  "stats": {
    "properties": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "address": {
          "nulls": 0,
          "distinct": 197
        },
        "property_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "apartment",
          "max": "house"
        },
        "num_units": {
          "nulls": 0,
          "distinct": 83,
          "min": 1,
          "max": 99
        }
      }
    },
    "tenants": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 0,
          "distinct": 293,
          "min": "Alice Adams",
          "max": "Zoe Walker"
        },
        "email": {
          "nulls": 0,
          "distinct": 297
        },
        "property_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 2,
          "max": 200
        }
      }
    },
    "maintenance_requests": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "tenant_id": {
          "nulls": 0,
          "distinct": 241,
          "min": 1,
          "max": 300
        },
        "issue": {
          "nulls": 0,
          "distinct": 497
        },
        "request_date": {
          "nulls": 0,
          "distinct": 276,
          "min": "2023-01-01",
          "max": "2023-12-31"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "completed",
          "max": "pending"
        }
      }
    },
    "vendors": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "company_name": {
          "nulls": 0,
          "distinct": 134,
          "min": "Acme Energy",
          "max": "Willow Partners"
        },
        "contact_email": {
          "nulls": 0,
          "distinct": 143
        },
        "phone": {
          "nulls": 0,
          "distinct": 148
        }
      }
    },
    "legal_cases": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "tenant_id": {
          "nulls": 0,
          "distinct": 87,
          "min": 4,
          "max": 297
        },
        "case_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "claim",
          "max": "eviction"
        },
        "filing_date": {
          "nulls": 0,
          "distinct": 86,
          "min": "2023-01-06",
          "max": "2023-12-31"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "closed",
          "max": "settled"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/properties.csv",
      "format": "csv",
      "table": "properties",
      "key": "datasets/real-estate-property-management-software/v1/csv/properties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/csv/properties.csv",
      "bytes": 14289,
      "sha256": "881592b346222e4efa37de9dc054cd27b85f1f341369cdceb5b0b33dedebca25",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tenants.csv",
      "format": "csv",
      "table": "tenants",
      "key": "datasets/real-estate-property-management-software/v1/csv/tenants.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/csv/tenants.csv",
      "bytes": 13282,
      "sha256": "86ee14681aa59755dbae47b9a1914228c272439e89e4e9886f3feccca1762be6",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/legal_cases.csv",
      "format": "csv",
      "table": "legal_cases",
      "key": "datasets/real-estate-property-management-software/v1/csv/legal_cases.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/csv/legal_cases.csv",
      "bytes": 3334,
      "sha256": "52eecfb541d1bae23c2cd68fa45870424a7b3f92eb5831e550b1fa01cc03ffc9",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_requests.csv",
      "format": "csv",
      "table": "maintenance_requests",
      "key": "datasets/real-estate-property-management-software/v1/csv/maintenance_requests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/csv/maintenance_requests.csv",
      "bytes": 42742,
      "sha256": "24c64352bc7c033716491fd8667d2d3ad0203f5f51737f1d1678095c1580a89c",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/vendors.csv",
      "format": "csv",
      "table": "vendors",
      "key": "datasets/real-estate-property-management-software/v1/csv/vendors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/csv/vendors.csv",
      "bytes": 9131,
      "sha256": "c021e99290ffa7460d986933ecf89626bdfc1f9b25d8ecaf7149bc54e280727d",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-estate-property-management-software.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/real-estate-property-management-software.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/real-estate-property-management-software.json",
      "bytes": 204080,
      "sha256": "76fb0583e3afcc2e7e428434d50a86dad9481267ed7240567ae9f917e388fc67",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/sql/postgres.sql",
      "bytes": 103652,
      "sha256": "5281b05eb793415c9fb120147e6fd51cea9fd834437bfb9bbcc20c39ad4e1496",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/sql/mysql.sql",
      "bytes": 103075,
      "sha256": "6e3af396d63d9f6f9d89e2b769c7a615fb22a9071e66bbd6d7e239c240678c9e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/sql/mssql.sql",
      "bytes": 106687,
      "sha256": "a0983c630e00f99a90587dedc48cba7ff964638bbb726d45da4d258b6f268f44",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/sql/sqlite.sql",
      "bytes": 102872,
      "sha256": "5eef2d2631801739126019f76de6863907e683a009e66a9e17b3a3fbbb568731",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/prisma/seed.ts",
      "bytes": 165236,
      "sha256": "cb6a595ad26e1a6453501fa3790655f88b9ade64cd0622dd89e166c9cfd6167d",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-estate-property-management-software/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-property-management-software/v1/django/fixtures.json",
      "bytes": 261615,
      "sha256": "80cb29556a7945012a7e57bf19b177a61986a1a709dcb1fdbf44c8717d454355",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766766102,
  "updatedAt": 1788766766102
}
