const { sequelize } = require('../config/database');

async function checkTables() {
  try {
    await sequelize.query('USE insurance_data');
    
    const [results] = await sequelize.query("SHOW TABLES LIKE 'livestock_%'");
    console.log('livestock表:', results);
    
    const [allTables] = await sequelize.query("SHOW TABLES");
    console.log('所有表:', allTables.map(t => Object.values(t)[0]));
    
  } catch (error) {
    console.error('错误:', error.message);
  } finally {
    await sequelize.close();
  }
}

checkTables();