import { db } from '../lib/db';
import { categories, navigationItems } from '../shared/schema';
import { eq } from 'drizzle-orm';

async function run() {
  try {
    const cats = await db.select().from(categories).where(eq(categories.siteId, 'ten-sura-game.com'));
    const items = await db.select().from(navigationItems).where(eq(navigationItems.siteId, 'ten-sura-game.com'));
    
    console.log('--- CATEGORIES ---');
    console.log(JSON.stringify(cats, null, 2));
    
    console.log('\n--- NAVIGATION ITEMS ---');
    console.log(JSON.stringify(items, null, 2));
  } catch (err) {
    console.error('Error:', err);
  }
  process.exit(0);
}

run();
