Something went wrong. Try again.
Atproto AMA app
Something went wrong. Try again.
12345678910111213141516171819202122232425#!/usr/bin/env tsx
import { db } from "../src/lib/db";import { users, questions } from "../src/lib/schema";
async function main() { const u = await db.select().from(users); console.log("=== USERS ===", u.length, "total"); for (const r of u) console.log(` did=${r.did} handle=${r.handle} name=${r.displayName}`);
const q = await db.select().from(questions); console.log("\n=== QUESTIONS ===", q.length, "total"); for (const r of q) console.log( ` id=${r.id.slice(0, 8)} from=${r.authorDid} to=${r.targetDid} "${r.content.slice(0, 50)}"`, );
process.exit(0);}
main().catch((err) => { console.error("DB check failed:", err); process.exit(1);});