import prisma from "../src";

async function main() {
  const user = await prisma.user.upsert({
    where: { email: "dev@shieldai.local" },
    update: {},
    create: {
      email: "dev@shieldai.local",
      name: "Dev User",
      role: "user",
    },
  });

  console.log("Seeded user:", user.email);
}

main()
  .catch((e) => {
    console.error(e);
    process.exit(1);
  })
  .finally(async () => {
    await prisma.$disconnect();
  });
