Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / shell (push) Canceled after 0s
CI / test (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
Security Scan / backend-security (push) Canceled after 0s
Security Scan / frontend-security (push) Canceled after 0s
12 lines
526 B
SQL
12 lines
526 B
SQL
-- 040_add_group_model_routing.sql
|
|
-- 添加分组级别的模型路由配置功能
|
|
|
|
-- 添加 model_routing 字段:模型路由配置(JSONB 格式)
|
|
-- 格式: {"model_pattern": [account_id1, account_id2], ...}
|
|
-- 例如: {"claude-opus-*": [1, 2], "claude-sonnet-*": [3, 4, 5]}
|
|
ALTER TABLE groups
|
|
ADD COLUMN IF NOT EXISTS model_routing JSONB DEFAULT '{}';
|
|
|
|
-- 添加字段注释
|
|
COMMENT ON COLUMN groups.model_routing IS '模型路由配置:{"model_pattern": [account_id1, account_id2], ...},支持通配符匹配';
|