const { PrismaClient } = require('@prisma/client'); const prisma = new PrismaClient(); async function main() { const products = await prisma.product.findMany({ where: { slug: { in: ['awd-t-shirt-at001', 'awd-hoodie'] } }, select: { 'id': true, 'slug': true, 'name': true, 'imageUrl': true, 'imageUrlBack': true } }); products.forEach(p => { console.log(`\n${p.name} (${p.slug}):`); console.log(` Front: ${p.imageUrl ? p.imageUrl.substring(0, 60) + '...' : 'NOT SET'}`); console.log(` Back: ${p.imageUrlBack ? p.imageUrlBack.substring(0, 60) + '...' : 'NOT SET'}`); }); } main() .then(() => process.exit(0)) .catch(err => { console.error(err); process.exit(1); });