University sample database — MongoDB, flat (2,771,187 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 university --collection <name> --file <name>.ndjson

Collections:
  addresses — 50,000 documents
  assignments — 120,000 documents
  book_loans — 100,000 documents
  books — 2,000 documents
  buildings — 12 documents
  club_memberships — 30,000 documents
  clubs — 40 documents
  course_materials — 900 documents
  course_prerequisites — 300 documents
  courses — 600 documents
  departments — 14 documents
  enrollments — 1,000,000 documents
  exam_results — 300,000 documents
  exams — 80,000 documents
  fee_types — 6 documents
  instructors — 2,000 documents
  invoice_items — 250,000 documents
  invoices — 100,000 documents
  library_cards — 30,000 documents
  payments — 90,000 documents
  people — 55,000 documents
  programs — 40 documents
  rooms — 240 documents
  schedules — 60,000 documents
  scholarships — 25 documents
  sections — 40,000 documents
  semesters — 10 documents
  student_scholarships — 10,000 documents
  students — 50,000 documents
  submissions — 400,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.
