import sqlite3
con = sqlite3.connect("/app/data/vento.db")
cur = con.cursor()
print("=== CUSTOMERS ===")
cur.execute("SELECT id, phone_number, first_name, last_name, consent_given, created_at FROM customers")
for r in cur.fetchall():
print(r)
print()
print("=== MESSAGES (last 10) ===")
cur.execute("SELECT id, customer_id, direction, message_text, timestamp FROM messages ORDER BY id DESC LIMIT 10")
for r in cur.fetchall():
print(r)
con.close()