Music streaming sample database — MongoDB, flat (176,375 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 music-streaming --collection <name> --file <name>.ndjson

Collections:
  ad_campaigns — 30 documents
  ad_impressions — 8,000 documents
  advertisements — 120 documents
  album_artists — 250 documents
  albums — 200 documents
  alternative_genres — 20 documents
  artist_follows — 3,000 documents
  artist_socials — 100 documents
  artists — 100 documents
  audio_features — 2,000 documents
  devices — 3,000 documents
  episode_history — 5,000 documents
  genres — 24 documents
  listening_history — 100,000 documents
  lyrics — 1,200 documents
  offline_downloads — 2,000 documents
  payment_transactions — 4,000 documents
  playlist_tracks — 6,000 documents
  playlists — 600 documents
  podcast_episodes — 600 documents
  podcast_subscriptions — 1,000 documents
  podcasts — 30 documents
  recommendation_tracks — 10,000 documents
  recommendations — 2,000 documents
  search_queries — 5,000 documents
  subscription_tiers — 1 documents
  track_artists — 2,400 documents
  track_comments — 1,000 documents
  track_genres — 2,500 documents
  track_likes — 8,000 documents
  tracks — 2,000 documents
  user_follows — 3,000 documents
  user_subscriptions — 1,200 documents
  users — 2,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.
