import { PrismaClient } from '@prisma/client';
import * as bcrypt from 'bcrypt';

async function main() {
  const prisma = new PrismaClient();
  const password = await bcrypt.hash('admin123', 10);
  
  const user = await prisma.user.update({
    where: { email: 'admin@igcrm.com' },
    data: { password }
  });
  
  console.log('Password updated for:', user.email);
  await prisma.$disconnect();
}

main();
