Add full monorepo: virtual-banker, backend, frontend, docs, scripts, deployment

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-02-10 11:32:49 -08:00
commit b4753cef7e
81 changed files with 9255 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
-- Create user_profiles table for memory service
CREATE TABLE IF NOT EXISTS user_profiles (
user_id VARCHAR(255) NOT NULL,
tenant_id VARCHAR(255) NOT NULL,
preferences JSONB DEFAULT '{}'::jsonb,
context JSONB DEFAULT '{}'::jsonb,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
PRIMARY KEY (user_id, tenant_id),
INDEX idx_tenant (tenant_id)
);
-- Create conversation_history table
CREATE TABLE IF NOT EXISTS conversation_history (
id VARCHAR(255) PRIMARY KEY,
user_id VARCHAR(255) NOT NULL,
tenant_id VARCHAR(255) NOT NULL,
session_id VARCHAR(255) NOT NULL,
messages JSONB NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
INDEX idx_user_tenant (user_id, tenant_id),
INDEX idx_session (session_id),
INDEX idx_created_at (created_at)
);