feat(gateway): add messaging gateway persistence schema

This commit is contained in:
Anish Sarkar 2026-05-27 23:34:46 +05:30
parent 69abf0d916
commit 81cf63ac96
3 changed files with 1005 additions and 0 deletions

View file

@ -8,6 +8,8 @@ export const newChatMessageTable = table("new_chat_messages")
threadId: number().from("thread_id"),
authorId: string().optional().from("author_id"),
createdAt: number().from("created_at"),
source: string(),
platformMetadata: json().optional().from("platform_metadata"),
// Per-turn correlation id sourced from ``configurable.turn_id``
// at streaming time. Required by the inline Revert button's
// (chat_turn_id, tool_name, position) fallback in tool-fallback.tsx