{
  "format": "dataset-manifest/1",
  "slug": "rental-management-database",
  "version": 1,
  "seed": "rental-management-database:1",
  "spec": {
    "format": "dataset/1",
    "slug": "rental-management-database",
    "name": "Property Rental Insights",
    "tagline": "A detailed view of rental properties and tenant interactions.",
    "description": "A rental management business coordinates various aspects of leasing properties to tenants while ensuring a seamless living experience. This dataset revolves around properties, tenants, maintenance requests, and rental payments, painting a detailed picture of occupancy and service levels. Most properties have several units with varying amenities, while utility bills and maintenance job records may show spikes during specific seasons, highlighting the demands of living in a multi-tenant environment. By analyzing this data, property managers can identify trends in occupancy rates, maintenance requests, and rental payments, allowing them to make informed decisions that improve the tenant experience and optimize property management. This dataset is synthetic and provides a realistic scenario for practice and development.",
    "domain": "real-estate",
    "shape": "multi-tenant",
    "useCases": [
      "orm-seeding",
      "api-mocking"
    ],
    "keywords": [
      "rental",
      "property",
      "tenants",
      "maintenance",
      "payments",
      "insights",
      "real-estate"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "rental_units": {
        "description": "Each row in this table represents a rental unit within a property, detailing its attributes, tenant assignments, and maintenance records. This table links to tenant information and tracks various metrics related to each unit's occupancy and service requests.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each rental unit."
          },
          "property_name": {
            "kind": "title",
            "description": "The name of the property where the rental unit is located."
          },
          "unit_number": {
            "kind": "title",
            "description": "The specific unit number within the property."
          },
          "tenant_name": {
            "kind": "fullName",
            "description": "The full name of the current tenant residing in the unit.",
            "nullable": true,
            "when": {
              "column": "occupancy_status",
              "in": [
                "vacant"
              ]
            }
          },
          "monthly_rent": {
            "kind": "decimal",
            "min": 500,
            "max": 3000,
            "scale": 2,
            "description": "The monthly rental amount for the unit.",
            "nullable": true,
            "when": {
              "column": "occupancy_status",
              "in": [
                "vacant"
              ]
            }
          },
          "occupancy_status": {
            "kind": "enum",
            "values": [
              "occupied",
              "vacant"
            ],
            "description": "Current occupancy status of the rental unit."
          },
          "maintenance_requests": {
            "kind": "int",
            "min": 0,
            "max": 10,
            "description": "Number of maintenance requests submitted for this unit.",
            "nullable": true
          },
          "last_payment_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date of the last rent payment made by the tenant.",
            "nullable": true,
            "trend": "growing"
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "monetary",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What is the average monthly rent across all units?",
      "How many maintenance requests are submitted per occupied unit?",
      "Which properties have the highest vacancy rates?",
      "What is the trend in rental payments over the past year?"
    ],
    "suggestedQueries": [
      {
        "title": "List all occupied units",
        "sql": "SELECT * FROM rental_units WHERE occupancy_status = 'occupied';",
        "dialect": "postgres"
      },
      {
        "title": "Calculate average rent by property",
        "sql": "SELECT property_name, AVG(monthly_rent) FROM rental_units GROUP BY property_name;",
        "dialect": "postgres"
      },
      {
        "title": "Count maintenance requests by unit",
        "sql": "SELECT unit_number, maintenance_requests FROM rental_units WHERE maintenance_requests > 0;",
        "dialect": "postgres"
      },
      {
        "title": "Find tenants with overdue payments",
        "sql": "SELECT tenant_name, last_payment_date FROM rental_units WHERE last_payment_date < NOW() - INTERVAL '1 month';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Property Management Software Development",
        "body": "Developers can use this dataset to seed their property management applications, allowing them to simulate tenant management, payment tracking, and maintenance request handling."
      },
      {
        "title": "API Mocking for Real Estate Applications",
        "body": "This dataset can be used to mock APIs for real estate applications, providing realistic data for testing property listings, tenant interactions, and rental history scenarios."
      },
      {
        "title": "Data Analysis for Property Managers",
        "body": "Property managers can leverage insights from this dataset to analyze occupancy trends, assess rental pricing strategies, and identify common maintenance issues across various units."
      }
    ]
  },
  "counts": {
    "rental_units": 200
  },
  "stats": {
    "rental_units": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "property_name": {
          "nulls": 0,
          "distinct": 200
        },
        "unit_number": {
          "nulls": 0,
          "distinct": 200
        },
        "tenant_name": {
          "nulls": 88,
          "distinct": 110,
          "min": "Alice Evans",
          "max": "Zoe Hansen"
        },
        "monthly_rent": {
          "nulls": 88,
          "distinct": 112,
          "min": 501.76,
          "max": 2997.09
        },
        "occupancy_status": {
          "nulls": 0,
          "distinct": 2,
          "min": "occupied",
          "max": "vacant"
        },
        "maintenance_requests": {
          "nulls": 15,
          "distinct": 11,
          "min": 0,
          "max": 10
        },
        "last_payment_date": {
          "nulls": 29,
          "distinct": 157,
          "min": "2020-01-06",
          "max": "2023-12-12"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/rental_units.csv",
      "format": "csv",
      "table": "rental_units",
      "key": "datasets/rental-management-database/v1/csv/rental_units.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/csv/rental_units.csv",
      "bytes": 15218,
      "sha256": "3362b77bf939528e12b474bf0f204f1e3097a6017317575e70c4e4c10befa209",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "rental-management-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/rental-management-database/v1/rental-management-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/rental-management-database.json",
      "bytes": 57971,
      "sha256": "2596d7bb5513a70b9b2eccb5a6560a01475809180b355a84106f4d441ddb90ca",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/rental-management-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/sql/postgres.sql",
      "bytes": 21281,
      "sha256": "06a1440225e93667956143c763661c9848a404cf9b60aa45b5c9f1aeeb9faeb5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/rental-management-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/sql/mysql.sql",
      "bytes": 21170,
      "sha256": "98213e57fa93b1e53874859303465790e2ebc58616c630cdb738b0f70dcbf804",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/rental-management-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/sql/mssql.sql",
      "bytes": 22126,
      "sha256": "05c3909c88d821acbf2a9a13dc1ea6896cab96790edea81f84e205c73f72862e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/rental-management-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/sql/sqlite.sql",
      "bytes": 21127,
      "sha256": "75f04995c964ecd4ef585d786a7fe2f5509fbece19690bb98880b5f6637fe492",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/rental-management-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/prisma/seed.ts",
      "bytes": 46927,
      "sha256": "6c98e680bbd07badccc65685de181dea815847788c3dd3c7ef48d23403b1e111",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/rental-management-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/rental-management-database/v1/django/fixtures.json",
      "bytes": 67580,
      "sha256": "53f09a9a70e419354fdd6bbb0a34fb33809e0c4c4530488c015f680a894fa07b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788733898604,
  "updatedAt": 1788733898604
}
