feat(prices): fiyat kayıtları, birim fiyat motoru ve analizde aylık maliyet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { ProductPriceModel } from "@/models/product-price";
|
||||
import type { Migration } from "./types";
|
||||
|
||||
export const migration: Migration = {
|
||||
name: "014-product-prices",
|
||||
description: "ürün fiyat kayıtları (productPrices) index'leri",
|
||||
async up() {
|
||||
await ProductPriceModel.createIndexes();
|
||||
},
|
||||
};
|
||||
@@ -13,6 +13,7 @@ import { migration as m010 } from "./010-budgets";
|
||||
import { migration as m011 } from "./011-stock";
|
||||
import { migration as m012 } from "./012-stock-counts";
|
||||
import { migration as m013 } from "./013-stores-products";
|
||||
import { migration as m014 } from "./014-product-prices";
|
||||
import type { Migration } from "./types";
|
||||
|
||||
/** Sıralı migration listesi. Yeni migration: dosyayı ekle ve buraya sırayla ekle. */
|
||||
@@ -30,6 +31,7 @@ export const MIGRATIONS: Migration[] = [
|
||||
m011,
|
||||
m012,
|
||||
m013,
|
||||
m014,
|
||||
];
|
||||
|
||||
const COLLECTION = "migrations";
|
||||
|
||||
Reference in New Issue
Block a user