From 487562042fb52ae4028cefc3311832ddf9ff45c8 Mon Sep 17 00:00:00 2001 From: goulustis Date: Sun, 8 Mar 2026 12:00:04 +0800 Subject: [PATCH] add comments --- scripts/init_database/create_conv_store.sql | 1 + scripts/init_database/create_prompt_config.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/init_database/create_conv_store.sql b/scripts/init_database/create_conv_store.sql index d8d39d0..558b2c4 100644 --- a/scripts/init_database/create_conv_store.sql +++ b/scripts/init_database/create_conv_store.sql @@ -1,4 +1,5 @@ -- Create the messages table +-- This script runs in the ai_conversations database context CREATE TABLE IF NOT EXISTS messages ( id BIGSERIAL PRIMARY KEY, conversation_id TEXT NOT NULL, diff --git a/scripts/init_database/create_prompt_config.sql b/scripts/init_database/create_prompt_config.sql index 31e66cb..1d6330f 100644 --- a/scripts/init_database/create_prompt_config.sql +++ b/scripts/init_database/create_prompt_config.sql @@ -1,4 +1,5 @@ -- A prompt_set groups a full collection of prompts together. +-- This script runs in the ai_conversations database context -- Each pipeline can have many sets (versions, A/B variants, etc.); -- exactly one should be marked is_active per pipeline. CREATE TABLE IF NOT EXISTS prompt_sets (