fix: Remove roomId from demo batches - foreign key references wrong table
This commit is contained in:
parent
3b9da95fd9
commit
08992257bf
1 changed files with 2 additions and 6 deletions
|
|
@ -288,8 +288,6 @@ async function main() {
|
||||||
// DEMO BATCHES
|
// DEMO BATCHES
|
||||||
// ============================================
|
// ============================================
|
||||||
const owner = await prisma.user.findUnique({ where: { email: ownerEmail } });
|
const owner = await prisma.user.findUnique({ where: { email: ownerEmail } });
|
||||||
const flowerRoom = await prisma.facilityRoom.findFirst({ where: { code: 'FLO' } });
|
|
||||||
const vegRoom = await prisma.facilityRoom.findFirst({ where: { code: 'VEG' } });
|
|
||||||
|
|
||||||
const demoBatches = [
|
const demoBatches = [
|
||||||
{
|
{
|
||||||
|
|
@ -299,8 +297,7 @@ async function main() {
|
||||||
status: 'ACTIVE',
|
status: 'ACTIVE',
|
||||||
plantCount: 48,
|
plantCount: 48,
|
||||||
source: 'CLONE',
|
source: 'CLONE',
|
||||||
stage: 'FLOWERING',
|
stage: 'FLOWERING'
|
||||||
roomId: flowerRoom?.id
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'B-2025-12-KM',
|
name: 'B-2025-12-KM',
|
||||||
|
|
@ -319,8 +316,7 @@ async function main() {
|
||||||
status: 'ACTIVE',
|
status: 'ACTIVE',
|
||||||
plantCount: 24,
|
plantCount: 24,
|
||||||
source: 'SEED',
|
source: 'SEED',
|
||||||
stage: 'VEGETATIVE',
|
stage: 'VEGETATIVE'
|
||||||
roomId: vegRoom?.id
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue