Files
suphicakir ebcdf3f741 feat(import): Kakeibo çalışma kitabı için içe aktarma motoru ve servis
- Kredi Kartı / Maaş Hesabı sayfaları ayrıştırılır; ekstre toplamı ve
  bakiye zinciri kontrolü, taksit planı, iade = gelir, kart ödemesi /
  ATM / hesaplar arası = transfer, KMH ve ücretler = banka maliyeti
- Taslak parti (importBatches), hesap rolleri ve önerilen hesaplar,
  satır düzenleme (aynı açıklamalılara toplu), tek transaction'da işleme,
  parmak iziyle tekrar engeli ve toplu geri alma
- Migration 017-imports (geri alınabilir), denetim kayıtları

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 09:31:44 +03:00

20 lines
661 B
TypeScript

import { ImportBatchModel } from "@/models/import-batch";
import { TransactionModel } from "@/models/transaction";
import type { Migration } from "./types";
/** Ekstre içe aktarma (Faz 17): importBatches index'i ve işlemlerde tekrar engeli index'i. */
export const migration: Migration = {
name: "017-imports",
description: "içe aktarma partileri ve işlemlerde tekrar engeli (importKey) index'leri",
async up() {
await ImportBatchModel.createIndexes();
await TransactionModel.createIndexes();
},
async down(db) {
await db
.collection("transactions")
.dropIndex("householdId_1_importKey_1")
.catch(() => {});
},
};