import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();

async function checkGifs() {
  const gifs = await prisma.termMedia.findMany({
    where: { kind: 'GIF' },
    include: { term: true },
  });

  console.log(`Found ${gifs.length} GIF records in database:`);
  gifs.forEach(gif => {
    console.log(`- ${gif.term.wordText}: ${gif.url}`);
  });

  await prisma.$disconnect();
}

checkGifs();

