Files
support_backend/prisma/seed/products.seed.ts
T

18 lines
478 B
TypeScript
Raw Normal View History

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({
where: { externalProductId: 'CORE_PLATFORM' },
2026-08-19 16:29:17 +05:30
update: {},
create: {
externalProductId: 'CORE_PLATFORM',
2026-08-19 16:29:17 +05:30
name: 'Core SupportHub Platform',
supportEnabled: true,
status: 'active',
2026-08-19 16:29:17 +05:30
},
});
}