feat(qa): add synthesis conversations with source retention (#52)

This commit is contained in:
2026-11-25 19:46:06 +01:00
parent 90dd2a65d2
commit 287811184f
49 changed files with 2636 additions and 47 deletions

View File

@ -17,7 +17,7 @@ import (
func TestTicket49RankingPreferenceMigrationValidationResolutionPostgres(t *testing.T) {
db := ticket14DB(t)
for _, q := range []string{
`CREATE TABLE users(id UUID PRIMARY KEY,language TEXT DEFAULT 'fr',ranking_mode TEXT DEFAULT 'title',summary_prompt_token_budget INT DEFAULT 250000,summary_model_id UUID,updated_at TIMESTAMPTZ DEFAULT NOW())`,
`CREATE TABLE users(id UUID PRIMARY KEY,language TEXT DEFAULT 'fr',ranking_mode TEXT DEFAULT 'title',summary_prompt_token_budget INT DEFAULT 250000,source_article_retention_days INT NOT NULL DEFAULT 7,summary_model_id UUID,updated_at TIMESTAMPTZ DEFAULT NOW())`,
`CREATE TABLE ai_providers(id UUID PRIMARY KEY,name TEXT,endpoint TEXT,api_key_encrypted TEXT)`,
`CREATE TABLE ai_provider_models(id UUID PRIMARY KEY,provider_id UUID REFERENCES ai_providers(id),model TEXT,enabled BOOLEAN)`,
`INSERT INTO users(id) VALUES('` + ticket14UserA + `'),('` + ticket14UserB + `')`,