{
  "format": "dataset-manifest/1",
  "slug": "real-estate-investment-tracker",
  "version": 1,
  "seed": "real-estate-investment-tracker:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-estate-investment-tracker",
    "name": "Real Estate Investment Insights",
    "tagline": "Properties, owners, transactions, tenants, and maintenance requests in the real estate investment market.",
    "description": "Investors navigate the dynamic world of real estate by acquiring, managing, and optimizing properties. This dataset allows users to track property valuations, maintain tenant relationships, and oversee transactions related to purchases and rentals, providing insights into ownership distributions and market trends. The tables model various aspects of real estate investments, including properties, owners, transactions, tenants, and maintenance requests. With properties often clustering in urban areas where demand is high, this dataset captures the complexities of ownership distributions and financing structures, making it an excellent resource for developers and analysts alike. This synthetic dataset is designed to help practitioners understand real estate investment analytics, explore relationships between different entities, and practice querying diverse data types.",
    "domain": "real-estate",
    "shape": "multi-tenant",
    "useCases": [
      "orm-seeding",
      "api-mocking"
    ],
    "keywords": [
      "real estate",
      "investment",
      "properties",
      "owners",
      "transactions",
      "tenants",
      "maintenance",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "properties": {
        "description": "Each row represents a property owned by investors, linking to owners and transactions. It captures details like valuation and location.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each property."
          },
          "address": {
            "kind": "sentence",
            "max": 100,
            "description": "Full address of the property.",
            "nullable": true
          },
          "valuation": {
            "kind": "decimal",
            "min": 50000,
            "max": 5000000,
            "scale": 2,
            "description": "Current market valuation of the property.",
            "nullable": true
          },
          "city": {
            "kind": "city",
            "description": "City where the property is located.",
            "nullable": true
          },
          "owner_id": {
            "kind": "fk",
            "ref": "owners.id",
            "description": "Identifier for the owner of the property."
          }
        }
      },
      "owners": {
        "description": "This table lists property owners, capturing their details and relationship to properties.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each owner."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the property owner.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the owner.",
            "nullable": true
          },
          "ownership_percentage": {
            "kind": "decimal",
            "min": 0,
            "max": 100,
            "scale": 2,
            "description": "Percentage of ownership in the property.",
            "nullable": true
          }
        }
      },
      "transactions": {
        "description": "Records transactions related to properties, linking to properties and owners.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.id",
            "description": "Identifier for the property involved in the transaction."
          },
          "owner_id": {
            "kind": "fk",
            "ref": "owners.id",
            "description": "Identifier for the owner involved in the transaction."
          },
          "transaction_type": {
            "kind": "enum",
            "values": [
              "purchase",
              "rental",
              "sale"
            ],
            "description": "Type of transaction."
          },
          "transaction_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the transaction occurred.",
            "nullable": true,
            "when": {
              "column": "transaction_type",
              "in": [
                "rental"
              ]
            },
            "trend": "growing"
          },
          "amount": {
            "kind": "decimal",
            "min": 1000,
            "max": 5000000,
            "scale": 2,
            "description": "Monetary amount involved in the transaction.",
            "nullable": true
          }
        }
      },
      "tenants": {
        "description": "Details about tenants leasing properties, linking to properties and capturing their information.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each tenant."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the tenant."
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.id",
            "description": "Identifier for the property the tenant is renting."
          },
          "lease_start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Start date of the lease.",
            "trend": "seasonal"
          },
          "lease_end_date": {
            "kind": "date",
            "after": "lease_start_date",
            "withinDays": 365,
            "description": "End date of the lease."
          }
        }
      },
      "maintenance_requests": {
        "description": "Tracks maintenance requests for properties, linking to tenants and properties.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each maintenance request."
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.id",
            "description": "Identifier for the property needing maintenance."
          },
          "tenant_id": {
            "kind": "fk",
            "ref": "tenants.id",
            "description": "Identifier for the tenant who made the request."
          },
          "request_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the maintenance request was made.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "completed"
              ]
            },
            "trend": "growing"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "completed",
              "in-progress"
            ],
            "description": "Current status of the maintenance request."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "monetary",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the trends in property valuations over time?",
      "How many maintenance requests are pending versus completed?",
      "Which properties have the highest ownership percentages?",
      "What types of transactions are most common in the dataset?",
      "How do tenant demographics vary by property location?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Properties and Owners",
        "sql": "SELECT properties.address, owners.full_name FROM properties JOIN owners ON properties.owner_id = owners.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Transactions by Type",
        "sql": "SELECT transaction_type, COUNT(*) FROM transactions GROUP BY transaction_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average Valuation of Properties by City",
        "sql": "SELECT city, AVG(valuation) FROM properties GROUP BY city;",
        "dialect": "postgres"
      },
      {
        "title": "Maintenance Requests Status Summary",
        "sql": "SELECT status, COUNT(*) FROM maintenance_requests GROUP BY status;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Developing Real Estate Apps",
        "body": "Developers can use this dataset to seed their applications with realistic data for managing properties, owners, and transactions, ensuring their interfaces are user-friendly and functional."
      },
      {
        "title": "Creating Analytical Dashboards",
        "body": "Data analysts can utilize this dataset to build dashboards that visualize trends in real estate investments, such as property valuations and transaction types, helping stakeholders make informed decisions."
      },
      {
        "title": "Testing API Endpoints",
        "body": "API developers can mock endpoints using this dataset, ensuring that their applications can handle the complexity of real estate data, including relationships between properties, owners, and transactions."
      }
    ]
  },
  "counts": {
    "owners": 100,
    "properties": 200,
    "tenants": 150,
    "maintenance_requests": 100,
    "transactions": 300
  },
  "stats": {
    "properties": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "address": {
          "nulls": 17,
          "distinct": 181
        },
        "valuation": {
          "nulls": 27,
          "distinct": 173,
          "min": 87201.91,
          "max": 4978324.12
        },
        "city": {
          "nulls": 18,
          "distinct": 59,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "owner_id": {
          "nulls": 0,
          "distinct": 85,
          "min": 1,
          "max": 100
        }
      }
    },
    "owners": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "full_name": {
          "nulls": 6,
          "distinct": 93,
          "min": "Amir Wright",
          "max": "Zoe Zhang"
        },
        "email": {
          "nulls": 18,
          "distinct": 82
        },
        "ownership_percentage": {
          "nulls": 12,
          "distinct": 88,
          "min": 2.23,
          "max": 99.96
        }
      }
    },
    "transactions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "property_id": {
          "nulls": 0,
          "distinct": 155,
          "min": 1,
          "max": 200
        },
        "owner_id": {
          "nulls": 0,
          "distinct": 97,
          "min": 1,
          "max": 100
        },
        "transaction_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "purchase",
          "max": "sale"
        },
        "transaction_date": {
          "nulls": 190,
          "distinct": 107,
          "min": "2020-01-25",
          "max": "2023-12-22"
        },
        "amount": {
          "nulls": 29,
          "distinct": 271,
          "min": 26540.58,
          "max": 4956812.75
        }
      }
    },
    "tenants": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "full_name": {
          "nulls": 0,
          "distinct": 146,
          "min": "Alice Jensen",
          "max": "Zara Bauer"
        },
        "property_id": {
          "nulls": 0,
          "distinct": 107,
          "min": 2,
          "max": 194
        },
        "lease_start_date": {
          "nulls": 0,
          "distinct": 143,
          "min": "2020-01-02",
          "max": "2023-12-29"
        },
        "lease_end_date": {
          "nulls": 0,
          "distinct": 143,
          "min": "2020-01-15",
          "max": "2024-10-23"
        }
      }
    },
    "maintenance_requests": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "property_id": {
          "nulls": 0,
          "distinct": 82,
          "min": 2,
          "max": 200
        },
        "tenant_id": {
          "nulls": 0,
          "distinct": 68,
          "min": 1,
          "max": 149
        },
        "request_date": {
          "nulls": 65,
          "distinct": 35,
          "min": "2020-12-15",
          "max": "2023-12-20"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "completed",
          "max": "pending"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/owners.csv",
      "format": "csv",
      "table": "owners",
      "key": "datasets/real-estate-investment-tracker/v1/csv/owners.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/csv/owners.csv",
      "bytes": 4087,
      "sha256": "b8c248831f224cc1ebd524627609e22a753c42644fcb0d19caa3d7b9e8248af8",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/properties.csv",
      "format": "csv",
      "table": "properties",
      "key": "datasets/real-estate-investment-tracker/v1/csv/properties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/csv/properties.csv",
      "bytes": 15250,
      "sha256": "2f60bbd941d77ccb9666e579b486249cd49ac34d2a8cc667614855fdc4a0ca65",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/tenants.csv",
      "format": "csv",
      "table": "tenants",
      "key": "datasets/real-estate-investment-tracker/v1/csv/tenants.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/csv/tenants.csv",
      "bytes": 6325,
      "sha256": "a3d51efb67daf51ef912712be8e24df7103a9fc09962515c574602508ba7eac7",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/maintenance_requests.csv",
      "format": "csv",
      "table": "maintenance_requests",
      "key": "datasets/real-estate-investment-tracker/v1/csv/maintenance_requests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/csv/maintenance_requests.csv",
      "bytes": 2547,
      "sha256": "2d5ba79922a55713aff73f65a59c11ef92e63e0abc6f8521265610210cc6efc3",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/real-estate-investment-tracker/v1/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/csv/transactions.csv",
      "bytes": 9789,
      "sha256": "ab8f8e031c82d535a017871dcfa4cbd90fe02e8e9f6b8f5f5b7d1d4a42aaab98",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-estate-investment-tracker.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/real-estate-investment-tracker.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/real-estate-investment-tracker.json",
      "bytes": 139727,
      "sha256": "1f292d82db5df8f8e0a23c8617183e6d9c78ffdeda3d5e2481598dbcea7759e8",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/sql/postgres.sql",
      "bytes": 54320,
      "sha256": "8291204ea6a9e1f628ea75754189c4c6fdf002e701132b58da1155798f299d2e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/sql/mysql.sql",
      "bytes": 53735,
      "sha256": "b8644cf80626a5553aa1ff4784e1de177c5c8f8914fc716f526059fde9d4b5a9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/sql/mssql.sql",
      "bytes": 55621,
      "sha256": "ab6b463abd7b3b0a76358e42d1d8508832efaa45642bc8d1a6cc6c214d244e4a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/sql/sqlite.sql",
      "bytes": 53435,
      "sha256": "9e5d3a2942b2100ac37b797157e42c0ba44f7ce7cdbad1509cd029d1f6e03a97",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/prisma/seed.ts",
      "bytes": 109603,
      "sha256": "85d12e92d4005a9c70cfc93e0c9ec37bc661b6a78a4d64361d2d8b602ef297f0",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-estate-investment-tracker/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-investment-tracker/v1/django/fixtures.json",
      "bytes": 176844,
      "sha256": "de233187428ef7b956cbfd36620cce76d6ef72caaf9fa1b24bfcfce71e254571",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768198274,
  "updatedAt": 1788768198274
}
