import { pool } from './src/db/migrate.js'; async function main() { console.log('Adding discount columns to products table...'); try { await pool.query(` ALTER TABLE products ADD COLUMN IF NOT EXISTS discount_type VARCHAR(50), ADD COLUMN IF NOT EXISTS discount_value VARCHAR(100); `); console.log('✅ Successfully added discount_type and discount_value columns'); } catch (error: any) { console.error('❌ Error adding columns:', error.message); throw error; } finally { await pool.end(); } } main().catch(console.error);