#!/bin/sh
set -eu

cat <<'EOF'
sqlite3 store/messages.db "SELECT chat_jid, sender_name, content, timestamp FROM messages ORDER BY timestamp DESC LIMIT 10;"
sqlite3 store/messages.db "SELECT jid, name, channel, is_group, last_message_time FROM chats ORDER BY last_message_time DESC LIMIT 10;"
EOF
