Merge pull request 'fix: correct chat_histories FK to reference projects(guid)' (#3) from fix/chat-history-fk into main

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-04-01 14:29:10 +00:00

View File

@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS chat_histories (
title TEXT,
channel TEXT,
agent_id TEXT,
project_id UUID REFERENCES projects(id) ON DELETE SET NULL,
project_id UUID REFERENCES projects(guid) ON DELETE SET NULL,
messages JSONB NOT NULL DEFAULT '[]',
summary TEXT,
metadata JSONB NOT NULL DEFAULT '{}',