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.

733 B
Raw Blame
-- Agent reviews table.
-- One review per (agent_id, user_id); POST upserts in place.

BEGIN;

CREATE TABLE IF NOT EXISTS agent_reviews (
	id         uuid        PRIMARY KEY DEFAULT gen_random_uuid(),
	agent_id   uuid        NOT NULL REFERENCES agent_identities(id) ON DELETE CASCADE,
	user_id    uuid        NOT NULL REFERENCES users(id) ON DELETE CASCADE,
	rating     smallint    NOT NULL CHECK (rating BETWEEN 1 AND 5),
	body       text,
	created_at timestamptz NOT NULL DEFAULT now(),
	updated_at timestamptz NOT NULL DEFAULT now(),
	UNIQUE (agent_id, user_id)
);

CREATE INDEX IF NOT EXISTS agent_reviews_agent_id ON agent_reviews(agent_id);
CREATE INDEX IF NOT EXISTS agent_reviews_user_id  ON agent_reviews(user_id);

COMMIT;