Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(db): restore the payment-sessions migration to its applied bytes

nirholas99a3e7acc9af
diff --git a/api/_lib/migrations/20260626010000_payment_sessions.sql b/api/_lib/migrations/20260626010000_payment_sessions.sql
index 0a0b438e2..0c634fdb4 100644
--- a/api/_lib/migrations/20260626010000_payment_sessions.sql
+++ b/api/_lib/migrations/20260626010000_payment_sessions.sql
@@ -24,9 +24,7 @@
-- connector_ref — opaque reference to which wallet/connector to use (null = platform default)
-- status — 'active' | 'exhausted' | 'expired' | 'cancelled'
-- expires_at — hard expiry; payments rejected after this time
--- token_hash : HMAC-SHA256 of the bearer token, keyed by PAYMENT_SESSION_SECRET
--- (see hashToken in api/_lib/pay/spend-governor.js; the token itself
--- is never stored, and lookup is by id + hash so a stolen row is inert)
+-- token_hash — bcrypt hash of the bearer token (token itself never stored)
-- session_metadata — arbitrary JSON for caller bookkeeping
-- created_at / updated_at