create table if not exists ai_model ( id uuid not null primary key, provider_id uuid not null, name varchar(255) not null, modality varchar(255) not null, capability varchar(255) not null, context_length bigint not null, max_output_tokens bigint, training_cutoff timestamp with time zone, is_open_source boolean default false not null, status varchar(255) not null, created_at timestamp with time zone not null, updated_at timestamp with time zone not null ); create index if not exists idx_ai_model_provider_id on ai_model (provider_id);