Files
wajs-server/prisma/seed.ts
bipproduction d827efe8a3 feat: Update webhook and WA services
- Update webhook and WhatsApp related pages and services.
- Clean up temporary files.
2025-11-19 16:24:46 +08:00

31 lines
574 B
TypeScript

import { prisma } from "@/server/lib/prisma";
const user = [
{
name: "wibu",
email: "wibu@bip.com",
password: "Production_123",
}
];
; (async () => {
for (const u of user) {
await prisma.user.upsert({
where: { email: u.email },
create: u,
update: u,
})
console.log(`✅ User ${u.email} seeded successfully`)
}
})().catch((e) => {
console.error(e)
process.exit(1)
}).finally(() => {
console.log("✅ Seeding completed successfully ")
process.exit(0)
})