fix: rename the henza brand to montzar

اپ: اصلاح نام برند به منتزر

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-10 17:17:14 +03:30
co-authored by Cursor
parent f124a69e76
commit d613d16c82
9 changed files with 16 additions and 14 deletions
+4 -2
View File
@@ -385,10 +385,12 @@ async function main() {
prisma.category.upsert({ where: { id: 'cat-coins' }, update: {}, create: { id: 'cat-coins', title: 'سکه و شمش' } }),
]);
// Databases seeded before the rename hold the old id; Product/Promotion FKs cascade on update.
await prisma.brand.updateMany({ where: { id: 'brand-henza' }, data: { id: 'brand-montzar' } });
const brandMontzar = await prisma.brand.upsert({
where: { id: 'brand-henza' },
where: { id: 'brand-montzar' },
update: { title: 'منتزر طلا' },
create: { id: 'brand-henza', title: 'منتزر طلا' },
create: { id: 'brand-montzar', title: 'منتزر طلا' },
});
const brandArtisan = await prisma.brand.upsert({
where: { id: 'brand-artisan' },