feat(shopping): alışveriş listeleri, stok eşiği önerileri ve akıllı mağaza önerisi motoru
- shoppingLists koleksiyonu (ürün tipi / marka / serbest metin kalemleri), migration 015 - planShopping saf fonksiyonu: paket yuvarlama, zahmet ve hacimli cezası, teslimat, yemek kartı önceliği, ek mağaza eşiği - eşik önerileri onay/red (red stok yenilenene kadar), ürün tipine hacimli işareti - fiyat servisinde ortak loadTypeOffers; seed listeleri ve testler Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { ShoppingListModel } from "@/models/shopping-list";
|
||||
import type { Migration } from "./types";
|
||||
|
||||
export const migration: Migration = {
|
||||
name: "015-shopping-lists",
|
||||
description: "alışveriş listeleri (shoppingLists) index'leri",
|
||||
async up() {
|
||||
await ShoppingListModel.createIndexes();
|
||||
},
|
||||
};
|
||||
@@ -14,6 +14,7 @@ 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 { migration as m015 } from "./015-shopping-lists";
|
||||
import type { Migration } from "./types";
|
||||
|
||||
/** Sıralı migration listesi. Yeni migration: dosyayı ekle ve buraya sırayla ekle. */
|
||||
@@ -32,6 +33,7 @@ export const MIGRATIONS: Migration[] = [
|
||||
m012,
|
||||
m013,
|
||||
m014,
|
||||
m015,
|
||||
];
|
||||
|
||||
const COLLECTION = "migrations";
|
||||
|
||||
Reference in New Issue
Block a user