CREATE TABLE ai_models ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name TEXT NOT NULL, provider TEXT NOT NULL CHECK (provider IN ('openai', 'anthropic', 'meta')), model_id TEXT NOT NULL, description TEXT, capabilities TEXT[] DEFAULT '{}', is_active BOOLEAN DEFAULT true, api_endpoint TEXT, created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc', now()) );