/** * `pnpm db:seed` — load reference data (ISO countries, data-center metros) idempotently. * The seed tables live with the ingest layer (apps/worker/src/seeds) so the worker can also refresh them at boot; * this runner only wires them to the database client. */ import { closeDb, getDb } from "./index.js"; import { seedReferenceData } from "../../../apps/worker/src/seeds/index.js"; async function main() { const db = getDb(); const r = await seedReferenceData(db); console.log(`seed: ${r.countries} countries, ${r.metros} metros upserted`); await closeDb(); } main().catch((e) => { console.error(e); process.exit(1); });