Real estate sales sample database — MongoDB, embedded (2,203 rows)

Tables that belong to another are folded into it as arrays, so the documents read the way the application uses them. The rest are collections of their own, joined by key as in the flat version.

Load it:
  sh import.sh                    (into mongodb://localhost:27017)
  sh import.sh "<connection string>"

Or one collection at a time: mongoimport --db real-estate-sales --collection <name> --file <name>.ndjson

Collections:
  agencies — 16 documents
  agents — 125 documents, each with its agent_agencies
  appraisals — 125 documents
  appraisers — 16 documents
  clients — 125 documents
  inspections — 125 documents
  inspectors — 16 documents
  neighbourhoods — 16 documents
  offers — 125 documents
  payment_methods — 6 documents
  properties — 125 documents, each with its property_neighbourhoods
  property_types — 8 documents
  repairs — 125 documents
  transactions — 1,000 documents

Folded in (no collection of their own):
  agent_agencies — 125 rows, as the "agent_agencies" array on agents (its agent_id is the parent's _id)
  property_neighbourhoods — 125 rows, as the "property_neighbourhoods" array on properties (its property_id is the parent's _id)

Types: numeric columns are Decimal128, so totals stay exact; dates and timestamps are
Date values read as UTC (the data has no time zone); times and UUIDs are strings;
JSON columns are embedded objects.

Synthetic data, CC0-1.0, from databasesample.com. The same rows as the SQL and CSV files.
