fix(seed): patch existing PO currency from USD to INR on re-seed

This commit is contained in:
Hardik 2026-05-06 00:26:59 +05:30
parent 67beccc16d
commit bde7fc9842

View file

@ -188,7 +188,7 @@ async function main() {
// Sample POs — upsert so re-running seed is safe
const po1 = await db.purchaseOrder.upsert({
where: { poNumber: "PO-2026-00001" },
update: {},
update: { currency: "INR" },
create: {
poNumber: "PO-2026-00001",
title: "Engine Room Spare Parts — MV Pelagia Star",
@ -218,7 +218,7 @@ async function main() {
await db.purchaseOrder.upsert({
where: { poNumber: "PO-2026-00002" },
update: {},
update: { currency: "INR" },
create: {
poNumber: "PO-2026-00002",
title: "Crew Safety Equipment — MV Aegean Wind",
@ -242,7 +242,7 @@ async function main() {
await db.purchaseOrder.upsert({
where: { poNumber: "PO-2026-00003" },
update: {},
update: { currency: "INR" },
create: {
poNumber: "PO-2026-00003",
title: "Navigation Charts Update — Fleet",