managarten/games/worldream/supabase/migrations/007_add_generation_context.sql
Till-JS 8e414c12ba feat(games): add worldream game to monorepo
- Integrate worldream (text-first world-building platform) into games/
- Configure as @worldream/web workspace package
- Remove standalone git repo, now part of monorepo

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 13:24:06 +01:00

13 lines
No EOL
572 B
SQL

-- Add generation_context JSONB field to content_nodes table
-- This will store the complete LLM input context for transparency and debugging
ALTER TABLE content_nodes
ADD COLUMN generation_context JSONB DEFAULT NULL;
-- Add index for JSONB queries on generation_context
CREATE INDEX idx_content_nodes_generation_context
ON content_nodes USING GIN (generation_context);
-- Add comment for documentation
COMMENT ON COLUMN content_nodes.generation_context IS
'Complete LLM generation context including user prompt, system prompt, character context, and world context';