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>
16 lines
538 B
TypeScript
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); });
|