2026-08-21 18:40:43 +05:30
|
|
|
import { PrismaClient } from '@prisma/client';
|
2026-08-19 16:29:17 +05:30
|
|
|
|
|
|
|
|
export async function seedProducts(prisma: PrismaClient): Promise<void> {
|
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
console.log(' -> Seeding baseline products...');
|
|
|
|
|
|
|
|
|
|
await prisma.product.upsert({
|
2026-08-21 18:40:43 +05:30
|
|
|
where: { externalProductId: 'CORE_PLATFORM' },
|
2026-08-19 16:29:17 +05:30
|
|
|
update: {},
|
|
|
|
|
create: {
|
2026-08-21 18:40:43 +05:30
|
|
|
externalProductId: 'CORE_PLATFORM',
|
2026-08-19 16:29:17 +05:30
|
|
|
name: 'Core SupportHub Platform',
|
2026-08-21 18:40:43 +05:30
|
|
|
supportEnabled: true,
|
|
|
|
|
status: 'active',
|
2026-08-19 16:29:17 +05:30
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|