Social network sample database — MongoDB, flat (3,948 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 social-network --collection <name> --file <name>.ndjson

Collections:
  blocks — 125 documents
  comment_likes — 150 documents
  comments — 200 documents
  conversation_participants — 125 documents
  conversations — 16 documents
  devices — 125 documents
  follows — 100 documents
  group_memberships — 125 documents
  group_posts — 125 documents
  groups — 16 documents
  hashtags — 40 documents
  login_history — 125 documents
  media — 30 documents
  message_receipts — 100 documents
  messages — 100 documents
  notifications — 125 documents
  page_admins — 125 documents
  page_likes — 125 documents
  page_posts — 125 documents
  pages — 16 documents
  post_hashtags — 125 documents
  post_likes — 1,000 documents
  post_media — 125 documents
  posts — 120 documents
  profiles — 125 documents
  reports — 125 documents
  stories — 10 documents
  story_views — 50 documents
  user_tags — 125 documents
  users — 125 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.
