Library sample database — MongoDB, flat (176,780 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 library --collection <name> --file <name>.ndjson

Collections:
  addresses — 3,100 documents
  audit_logs — 2,000 documents
  authors — 600 documents
  book_authors — 1,600 documents
  book_tag_mappings — 3,000 documents
  book_tags — 40 documents
  books — 1,200 documents
  categories — 20 documents
  copies — 4,000 documents
  event_registrations — 4,000 documents
  events — 300 documents
  fine_policies — 4 documents
  fines — 6,000 documents
  languages — 10 documents
  libraries — 8 documents
  library_hours — 56 documents
  loans — 100,000 documents
  memberships — 3,500 documents
  notification_templates — 8 documents
  notifications — 25,000 documents
  order_items — 1,000 documents
  payments — 5,000 documents
  publishers — 60 documents
  purchase_orders — 200 documents
  reservations — 8,000 documents
  reviews — 5,000 documents
  roles — 4 documents
  staff_profiles — 50 documents
  suppliers — 20 documents
  users — 3,000 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.
