This commit is contained in:
greeneclipse committed 2026-10-14 18:18:54 +02:00
1 parent 3bfeb6b61e
commit 7537a41955
30 files changed
+1441 -85

No files matched your search

@@ -0,0 +1,15 @@
-- +goose Up
-- Shared, versioned translations of built-in category prompts.
-- No company_id: all tenants receive identical defaults, but custom overrides
-- remain stored only in categories.prompt and are never modified by this cache.
CREATE TABLE IF NOT EXISTS default_category_prompt_translations (
source_hash TEXT PRIMARY KEY,
source_prompt TEXT NOT NULL,
translations JSONB NOT NULL DEFAULT '{}'::jsonb,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
CONSTRAINT default_prompt_translations_object CHECK (jsonb_typeof(translations) = 'object')
);
-- +goose Down
DROP TABLE IF EXISTS default_category_prompt_translations;