This commit is contained in:
seb
2026-10-05 23:57:01 +02:00
parent 191a0b29e2
commit 86ce3a3316
5 changed files with 6 additions and 6 deletions

View File

@@ -833,7 +833,7 @@ BEGIN
role NVARCHAR(20) NOT NULL,
message NVARCHAR(MAX) NOT NULL,
CONSTRAINT FK_modelmessage_conversation FOREIGN KEY (conversation_id) REFERENCES modelconversation(id) ON DELETE CASCADE,
CONSTRAINT CK_modelmessage_role CHECK (role IN ('system', 'user', 'assistant', 'tool', 'reasoning'))
CONSTRAINT CK_modelmessage_role CHECK (role IN ('system', 'user', 'assistant', 'tool', 'reasoning', 'usage'))
);
CREATE INDEX IX_modelmessage_conversation ON modelmessage (conversation_id, id);
END