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.

755 B
Raw Blame
-- Migration: capture request context (IP + user agent) on audit_log rows.
-- Apply: psql "$DATABASE_URL" -f api/_lib/migrations/2026-05-25-audit-log-context.sql
-- Idempotent.
--
-- Rationale: the per-user audit feed on /dashboard-next/account exposes
-- IP and user-agent columns. Existing audit_log rows had no slot for
-- either. Both columns are nullable so rows written before this migration
-- (or by callers that don't yet pass req) remain valid.
--
-- Length caps mirror what we already accept in sessions.user_agent and
-- sessions.ip — keep the audit row representation aligned with how we
-- already store request metadata elsewhere.

alter table audit_log
    add column if not exists ip text,
    add column if not exists user_agent text;