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

async function main() {
  const prisma = new PrismaClient();
  const templates = await prisma.whatsappTemplate.findMany();
  
  console.log('WhatsApp Templates available in the system:');
  templates.forEach(t => {
    console.log(`\n--- ${t.type} ---`);
    console.log(`Template Name: ${t.templateName}`);
    console.log(`Language: ${t.language}`);
    console.log(`Message Body: ${t.body}`);
  });
  
  await prisma.$disconnect();
}

main();
