Restaurant sample database — MongoDB, flat (2,321 rows)

A collection per table. Each primary key is the document _id; foreign keys are fields under their own names, so the SQL version's joins become $lookup stages.

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

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

Collections:
  area_codes — 10 documents
  attendance — 30 documents
  customer_offers — 20 documents
  customers — 30 documents
  delivery_assignments — 45 documents
  delivery_boys — 30 documents
  delivery_shifts — 4 documents
  feedback — 50 documents
  food_and_beverage_catalog — 49 documents
  food_category — 6 documents
  food_subcategory — 14 documents
  order_items — 1,000 documents
  orders — 350 documents
  payments — 350 documents
  promotion_items — 60 documents
  promotions — 12 documents
  reservations — 60 documents
  restaurant_tables — 16 documents
  shift_assignments — 50 documents
  special_offers — 6 documents
  staff — 45 documents
  staff_shift_assignments — 80 documents
  staff_shifts — 4 documents

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.
