import type { Db } from "mongodb"; /** * Bir migration: adı dosya adıyla aynı olmalı (ör. "001-initial-indexes"). İleri yönlü; Faz 16'dan * itibaren veri değiştirenler `down` ile geri alınabilir (npm run migrate -- --down ). */ export type Migration = { name: string; description: string; up: (db: Db) => Promise; down?: (db: Db) => Promise; };