added in the postProcessingMessage to the db

This commit is contained in:
dal 2025-07-07 10:10:47 -06:00
parent 0977195995
commit 3b01e5727b
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
5 changed files with 14 additions and 0 deletions

View File

@ -18,6 +18,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@buster/access-controls": "workspace:*",
"@buster/ai": "workspace:*",
"@buster/database": "workspace:*",
"@buster/test-utils": "workspace:*",

View File

@ -0,0 +1,2 @@
-- Add postProcessingMessage column to messages table
ALTER TABLE messages ADD COLUMN IF NOT EXISTS post_processing_message jsonb;

View File

@ -526,6 +526,13 @@
"when": 1751583567208,
"tag": "0074_absurd_maddog",
"breakpoints": true
},
{
"idx": 75,
"version": "7",
"when": 1751584000000,
"tag": "0075_add_post_processing_message_to_messages",
"breakpoints": false
}
]
}

View File

@ -828,6 +828,7 @@ export const messages = pgTable(
createdBy: uuid('created_by').notNull(),
feedback: text(),
isCompleted: boolean('is_completed').default(false).notNull(),
postProcessingMessage: jsonb('post_processing_message'),
},
(table) => [
index('messages_chat_id_idx').using('btree', table.chatId.asc().nullsLast().op('uuid_ops')),

View File

@ -145,6 +145,9 @@ importers:
apps/trigger:
dependencies:
'@buster/access-controls':
specifier: workspace:*
version: link:../../packages/access-controls
'@buster/ai':
specifier: workspace:*
version: link:../../packages/ai