const { DateTypes } = require('sequelize');
const { Order } = require('./models');

async function checkOrders() {
    try {
        const orders = await Order.findAll();
        console.log('Total Orders:', orders.length);
        orders.forEach(o => {
            console.log(`ID: ${o.id}, Invoice: "${o.invoice_number}", Type: ${typeof o.invoice_number}`);
        });
        process.exit(0);
    } catch (e) {
        console.error(e);
        process.exit(1);
    }
}
checkOrders();
