Library sample database — MongoDB, flat (2,024 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 — 31 documents
  audit_logs — 20 documents
  authors — 10 documents
  book_authors — 16 documents
  book_tag_mappings — 30 documents
  book_tags — 40 documents
  books — 12 documents
  categories — 20 documents
  copies — 40 documents
  event_registrations — 40 documents
  events — 10 documents
  fine_policies — 4 documents
  fines — 60 documents
  languages — 10 documents
  libraries — 8 documents
  library_hours — 56 documents
  loans — 1,000 documents
  memberships — 35 documents
  notification_templates — 8 documents
  notifications — 250 documents
  order_items — 10 documents
  payments — 50 documents
  publishers — 60 documents
  purchase_orders — 10 documents
  reservations — 80 documents
  reviews — 50 documents
  roles — 4 documents
  staff_profiles — 10 documents
  suppliers — 20 documents
  users — 30 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.
