Files
Memoh/db/migrations/0027_browser_contexts.up.sql
Acbox Liu bafd327b6b feat: agent browser (#200)
* feat: agent browser

* chore: complete docker and action config

* feat: more actions

* feat: browser tab switch

* fix: browser build

* fix: lint

* fix: migrations
2026-03-07 15:06:00 +08:00

13 lines
502 B
SQL

-- 0027_browser_contexts
-- Add browser_contexts table and browser_context_id to bots
CREATE TABLE IF NOT EXISTS browser_contexts (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
name TEXT NOT NULL DEFAULT '',
config JSONB NOT NULL DEFAULT '{}'::jsonb,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
ALTER TABLE bots ADD COLUMN IF NOT EXISTS browser_context_id UUID REFERENCES browser_contexts(id) ON DELETE SET NULL;