diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index c7a0fc9..05e24ad 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -384,16 +384,16 @@ async function main() { // Map Pulse sensor device 11666 to Flower Room if (flowerRoom) { const existingSensor = await prisma.sensor.findFirst({ - where: { externalId: '11666', type: 'VPD' } + where: { deviceId: '11666', type: 'VPD' } }); if (!existingSensor) { await prisma.sensor.create({ data: { name: 'Veridian Demo Pulse', type: 'VPD', - externalId: '11666', + deviceId: '11666', location: 'Flower Room', - status: 'ACTIVE', + isActive: true, roomId: flowerRoom.id } as any });