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.

1.0 KB
Raw Blame
-- forge_seed_jobs: tracks AI auto-seeded 3D generations so the per-minute cron
-- can poll in-flight jobs across invocations and attribute each finished model
-- to the synthetic user account that "owns" it.

CREATE TABLE IF NOT EXISTS forge_seed_jobs (
    id              uuid PRIMARY KEY DEFAULT gen_random_uuid(),
    user_id         uuid NOT NULL,          -- synthetic users.id
    raw_client_id   text NOT NULL,          -- UUID sent as x-forge-client header
    job_id          text NOT NULL,          -- forge job token (for ?job= polling)
    prompt          text NOT NULL,
    model_category  text NOT NULL DEFAULT 'avatar',
    creation_id     uuid,                   -- forge_creations.id (set when done)
    status          text NOT NULL DEFAULT 'pending', -- pending | done | failed
    glb_url         text,
    error           text,
    started_at      timestamptz NOT NULL DEFAULT now(),
    finished_at     timestamptz
);

CREATE INDEX IF NOT EXISTS forge_seed_jobs_status_idx
    ON forge_seed_jobs (status, started_at);