This commit is contained in:
a2a-platform
2026-06-13 11:20:08 +00:00
parent 0fe464c93d
commit 1a1e8db145
9 changed files with 379 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS robertseares_page_loads (
id BIGSERIAL PRIMARY KEY,
path TEXT NOT NULL,
locale TEXT,
referrer TEXT,
user_agent TEXT,
viewport JSONB NOT NULL DEFAULT '{}'::jsonb,
metadata JSONB NOT NULL DEFAULT '{}'::jsonb,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS robertseares_page_loads_created_at_idx
ON robertseares_page_loads (created_at DESC);
CREATE INDEX IF NOT EXISTS robertseares_page_loads_path_created_at_idx
ON robertseares_page_loads (path, created_at DESC);