Skip to content

Commit

Permalink
Add reasoning_content column to chat_message table
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Feb 4, 2025
1 parent f507f06 commit 7227a39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/sqlc/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ CREATE TABLE IF NOT EXISTS chat_message (
chat_session_uuid character varying(255) NOT NUll,
role character varying(255) NOT NULL,
content character varying NOT NULL,
reasoning_content character varying NOT NULL,
model character varying(255) NOT NULL DEFAULT '',
llm_summary character varying(1024) NOT NULL DEFAULT '',
score double precision NOT NULL,
Expand All @@ -170,6 +171,7 @@ ALTER TABLE chat_message ADD COLUMN IF NOT EXISTS token_count INTEGER DEFAULT 0
ALTER TABLE chat_message ADD COLUMN IF NOT EXISTS is_pin BOOLEAN NOT NULL DEFAULT false;
ALTER TABLE chat_message ADD COLUMN IF NOT EXISTS llm_summary character varying(1024) NOT NULL DEFAULT '';
ALTER TABLE chat_message ADD COLUMN IF NOT EXISTS model character varying(255) NOT NULL DEFAULT '';
ALTER TABLE chat_message ADD COLUMN IF NOT EXISTS reasoning_content character varying(255) NOT NULL DEFAULT '';

-- add hash index on uuid
CREATE INDEX IF NOT EXISTS chat_message_uuid_idx ON chat_message using hash (uuid) ;
Expand Down

0 comments on commit 7227a39

Please sign in to comment.