-- 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)
);
