Project Notes SQL: use sqlc for typed SQL. Edit schema/query files, then run pnpm generate:sqlc; do not hand-maintain generated storedb code.