import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

async function findUser() {
  const user = await prisma.user.findFirst({
    where: { name: 'Jetski Tester' }
  })
  if (user) {
    console.log(`Found user: ${user.name} with ID: ${user.id}`)
  } else {
    console.log('User "Jetski Tester" not found in DB.')
    const allUsers = await prisma.user.findMany({ take: 5 })
    console.log('Sample users in DB:', allUsers.map(u => ({ name: u.name, id: u.id })))
  }
}

findUser()
