mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-06-15 22:07:08 +00:00
Scope memories by API token and add shared-token e2e coverage
This commit is contained in:
8
migrations/V4__auth_scope_shared_memory.sql
Normal file
8
migrations/V4__auth_scope_shared_memory.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE memories
|
||||
ADD COLUMN IF NOT EXISTS auth_scope VARCHAR(255) NOT NULL DEFAULT 'public';
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_memories_auth_scope
|
||||
ON memories (auth_scope);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_memories_auth_scope_agent
|
||||
ON memories (auth_scope, agent_id);
|
||||
Reference in New Issue
Block a user