Add full monorepo: virtual-banker, backend, frontend, docs, scripts, deployment
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
15
database/migrations/002_conversations.up.sql
Normal file
15
database/migrations/002_conversations.up.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Additional indexes for conversations
|
||||
CREATE INDEX IF NOT EXISTS idx_conversations_started_at ON conversations(started_at);
|
||||
CREATE INDEX IF NOT EXISTS idx_conversations_ended_at ON conversations(ended_at);
|
||||
|
||||
-- Create conversation_state table for workflow state
|
||||
CREATE TABLE IF NOT EXISTS conversation_state (
|
||||
session_id VARCHAR(255) PRIMARY KEY REFERENCES sessions(id) ON DELETE CASCADE,
|
||||
workflow VARCHAR(255),
|
||||
step VARCHAR(255),
|
||||
context JSONB DEFAULT '{}'::jsonb,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
expires_at TIMESTAMP
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user