CREATE TABLE IF NOT EXISTS ai_model_pricing ( id BIGSERIAL PRIMARY KEY, model_version_id UUID NOT NULL, input_price_per_1k_tokens VARCHAR(255) NOT NULL, output_price_per_1k_tokens VARCHAR(255) NOT NULL, currency VARCHAR(255) NOT NULL, effective_from TIMESTAMPTZ NOT NULL ); CREATE INDEX idx_ai_model_pricing_model_version_id ON ai_model_pricing (model_version_id);