import sqlite3
con = sqlite3.connect("/app/data/vento.db")
cur = con.cursor()
cur.execute("SELECT name FROM sqlite_master WHERE type='table'")
tables = [r[0] for r in cur.fetchall()]
print("Tables:", tables)
for t in tables:
cur.execute(f"SELECT COUNT(*) FROM {t}")
print(f" {t}: {cur.fetchone()[0]} rows")
cur.execute(f"PRAGMA table_info({t})")
cols = [r[1] for r in cur.fetchall()]
print(f" cols: {cols}")
con.close()