import asyncio
import sys
sys.path.insert(0, '.')

async def check():
    from sqlalchemy import text
    from app.database import engine
    async with engine.begin() as conn:
        result = await conn.execute(text("SELECT email, is_active FROM users LIMIT 5"))
        rows = result.fetchall()
        print("Users:")
        for row in rows:
            print(f"  {row[0]} - active: {row[1]}")

asyncio.run(check())
