metallkart-erp/scripts/seed-notification-configs.ts
louis 1acadd82f1 feat: standard products catalogue + critical notifications + cancel cascade (STD-1A→CRIT-NOTIF-3)
Sessions 89-101: Product model + catalogue UI + pricing workflow + standard order auto-PO,
critical notification system (backend configs + frontend modal/banner + auto-ack + 11 E2E),
cancel order cascade (DRAFT PO cancel, CONFIRMED PO manual intervention, resolveIntervention),
notification audit 7 fixes across 11 modules, 20 Vitest cancel tests, 160/160 E2E green.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-15 15:22:04 +03:00

16 lines
538 B
TypeScript

import { PrismaClient } from '@prisma/client';
import { seedNotificationCategoryConfigs } from '../src/modules/notifications/notification-category-config.seed.js';
async function main() {
const prisma = new PrismaClient();
try {
await seedNotificationCategoryConfigs(prisma);
const count = await prisma.notificationCategoryConfig.count();
console.log(`Seed OK: ${count} notification category configs in DB`);
} finally {
await prisma.$disconnect();
}
}
main().catch(e => { console.error(e); process.exit(1); });