Changeset 0.4.3 (#32)
This commit is contained in:
12
migrations/004_model_configs.sql
Normal file
12
migrations/004_model_configs.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Model configurations: admin-curated list of available models
|
||||
CREATE TABLE IF NOT EXISTS model_configs (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
api_config_id UUID REFERENCES api_configs(id) ON DELETE CASCADE,
|
||||
model_id TEXT NOT NULL,
|
||||
display_name TEXT,
|
||||
is_enabled BOOLEAN DEFAULT true,
|
||||
capabilities JSONB DEFAULT '{"tool": false, "thinking": false, "vision": false, "code": false}',
|
||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
updated_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
UNIQUE(api_config_id, model_id)
|
||||
);
|
||||
Reference in New Issue
Block a user