/*
  Warnings:

  - A unique constraint covering the columns `[nomorKepBdn]` on the table `bdn_dokumen` will be added. If there are existing duplicate values, this will fail.
  - A unique constraint covering the columns `[nomorBcf,tanggalBcf]` on the table `btd_dokumen` will be added. If there are existing duplicate values, this will fail.
  - A unique constraint covering the columns `[blNomor,consignee]` on the table `gudang_dokumen` will be added. If there are existing duplicate values, this will fail.

*/
-- DropIndex
DROP INDEX "bdn_dokumen_nomorKepBdn_idx";

-- CreateIndex
CREATE INDEX "audit_log_aksi_idx" ON "audit_log"("aksi");

-- CreateIndex
CREATE UNIQUE INDEX "bdn_dokumen_nomorKepBdn_key" ON "bdn_dokumen"("nomorKepBdn");

-- CreateIndex
CREATE INDEX "bdn_dokumen_status_idx" ON "bdn_dokumen"("status");

-- CreateIndex
CREATE INDEX "bdn_dokumen_createdAt_idx" ON "bdn_dokumen"("createdAt");

-- CreateIndex
CREATE INDEX "btd_dokumen_createdAt_idx" ON "btd_dokumen"("createdAt");

-- CreateIndex
CREATE UNIQUE INDEX "btd_dokumen_nomorBcf_tanggalBcf_key" ON "btd_dokumen"("nomorBcf", "tanggalBcf");

-- CreateIndex
CREATE INDEX "gudang_dokumen_status_idx" ON "gudang_dokumen"("status");

-- CreateIndex
CREATE INDEX "gudang_dokumen_createdAt_idx" ON "gudang_dokumen"("createdAt");

-- CreateIndex
CREATE UNIQUE INDEX "gudang_dokumen_blNomor_consignee_key" ON "gudang_dokumen"("blNomor", "consignee");

-- CreateIndex
CREATE INDEX "invoices_tahun_bulan_idx" ON "invoices"("tahun", "bulan");

-- CreateIndex
CREATE INDEX "invoices_statusPembayaran_idx" ON "invoices"("statusPembayaran");

-- CreateIndex
CREATE INDEX "invoices_klienId_idx" ON "invoices"("klienId");

-- CreateIndex
CREATE INDEX "invoices_btdDokumenId_idx" ON "invoices"("btdDokumenId");

-- CreateIndex
CREATE INDEX "invoices_bdnDokumenId_idx" ON "invoices"("bdnDokumenId");

-- CreateIndex
CREATE INDEX "invoices_gudangDokumenId_idx" ON "invoices"("gudangDokumenId");

-- CreateIndex
CREATE INDEX "klien_nama_idx" ON "klien"("nama");

-- CreateIndex
CREATE INDEX "klien_aktif_idx" ON "klien"("aktif");

-- CreateIndex
CREATE INDEX "refresh_tokens_expiresAt_idx" ON "refresh_tokens"("expiresAt");

