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:
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS chat_histories (
|
|||||||
title TEXT,
|
title TEXT,
|
||||||
channel TEXT,
|
channel TEXT,
|
||||||
agent_id 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 '[]',
|
messages JSONB NOT NULL DEFAULT '[]',
|
||||||
summary TEXT,
|
summary TEXT,
|
||||||
metadata JSONB NOT NULL DEFAULT '{}',
|
metadata JSONB NOT NULL DEFAULT '{}',
|
||||||
|
|||||||
Reference in New Issue
Block a user