import sqlite3
db = sqlite3.connect("db/memos.db")
cur = db.cursor()
cur.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name")
tables = [r[0] for r in cur.fetchall()]
print("Tables:", tables)

# Check e2etest user
cur.execute("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE '%user%'")
user_tables = [r[0] for r in cur.fetchall()]
print("User tables:", user_tables)
db.close()
