Pharmacy sample database — MongoDB, flat (3,062 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 pharmacy --collection <name> --file <name>.ndjson

Collections:
  active_ingredients — 50 documents
  branches — 15 documents
  coupon_usages — 30 documents
  coupons — 60 documents
  customer_loyalty — 20 documents
  customers — 60 documents
  delivery_details — 40 documents
  doctors — 10 documents
  dosage_forms — 8 documents
  employees — 10 documents
  insurance_claims — 50 documents
  insurance_providers — 8 documents
  inventory_stocks — 10 documents
  manufacturers — 30 documents
  medicine_categories — 12 documents
  medicine_ingredients — 300 documents
  medicines — 240 documents
  packaging_types — 6 documents
  payment_methods — 5 documents
  payments — 290 documents
  prescription_items — 150 documents
  prescriptions — 80 documents
  purchase_order_items — 15 documents
  purchase_orders — 10 documents
  return_items — 10 documents
  returns — 10 documents
  roles — 6 documents
  sale_items — 1,000 documents
  sales — 300 documents
  shelves — 150 documents
  shifts — 12 documents
  stock_adjustments — 10 documents
  supplier_invoices — 10 documents
  suppliers — 25 documents
  user_roles — 10 documents
  users — 10 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.
