changed_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), created_at TIMESTAMPTZ NOT NULL DEFAULT NOW() -- Create indexes for better query performance CREATE INDEX idx_price_history_product_id ON ...