diff --git a/backend/prisma/seed-demo.js b/backend/prisma/seed-demo.js index a8179ed..067d28d 100644 --- a/backend/prisma/seed-demo.js +++ b/backend/prisma/seed-demo.js @@ -248,9 +248,6 @@ async function main() { sectionCount++; // Create plant positions for this section - const cellWidth = Math.floor(s.width / s.columns); - const cellHeight = Math.floor(s.height / s.rows); - for (let row = 0; row < s.rows; row++) { for (let col = 0; col < s.columns; col++) { await prisma.facilityPosition.create({ @@ -258,10 +255,7 @@ async function main() { sectionId: section.id, row: row + 1, column: col + 1, - posX: col * cellWidth + Math.floor(cellWidth / 2), - posY: row * cellHeight + Math.floor(cellHeight / 2), - status: 'EMPTY', - notes: null + status: 'EMPTY' } }); positionCount++;