Car rental sample database — MongoDB, embedded (291,299 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 car-rental --collection <name> --file <name>.ndjson

Collections:
  bookings — 100,000 documents
  categories — 6 documents
  customers — 4,000 documents
  damages — 200 documents
  departments — 4 documents
  discounts — 4 documents
  employees — 240 documents
  features — 12 documents
  fines — 1,000 documents
  fuels — 4 documents
  inspections — 1,000 documents
  insurance_types — 4 documents
  insurances — 8,000 documents
  licenses — 4,000 documents
  locations — 12 documents
  maintenance_types — 6 documents
  maintenances — 500 documents
  manufacturers — 10 documents
  memberships — 4 documents
  models — 40 documents
  payment_methods — 4 documents
  payments — 35,000 documents
  rates — 6 documents
  rentals — 65,000 documents
  returns — 65,000 documents
  reviews — 2,000 documents
  roadside_assists — 500 documents
  roles — 5 documents
  shift_schedules — 500 documents
  statuses — 4 documents
  tax_rates — 12 documents
  transmissions — 2 documents
  vehicles — 1,200 documents, each with its vehicle_features
  vendors — 20 documents

Folded in (no collection of their own):
  vehicle_features — 3,000 rows, as the "vehicle_features" array on vehicles (its vehicle_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.
