CREATE TABLE IF NOT EXISTS ai_model_version (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    model UUID NOT NULL,
    version TEXT NOT NULL,
    provider_model_name TEXT NOT NULL,
    input_price_per_million NUMERIC,
    output_price_per_million NUMERIC,
    cached_input_price_per_million NUMERIC,
    training_cutoff TEXT,
    released_at TIMESTAMPTZ,
    deprecated_at TIMESTAMPTZ,
    enabled BOOLEAN NOT NULL DEFAULT TRUE,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
    updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
