import { pool } from '../db.js';

const getClientInfo = async () => {
  const result = await pool.query(`
    SELECT email, first_name, last_name, created_at 
    FROM users 
    WHERE email = 'client1@example.com'
  `);
  
  if (result.rows.length > 0) {
    const client = result.rows[0];
    console.log('\n📋 CLIENT TEST:\n');
    console.log(`Email: ${client.email}`);
    console.log(`Nom: ${client.first_name} ${client.last_name}`);
    console.log(`Créé le: ${client.created_at}`);
    console.log('\n⚠️  MOT DE PASSE PAR DÉFAUT: Client123!');
    console.log('(Si vous avez changé le mot de passe, utilisez celui que vous avez défini)\n');
  } else {
    console.log('❌ Client non trouvé');
  }
  
  await pool.end();
};

getClientInfo();
