The service stores idempotency keys to recognize retries safely and prevent the same action from running twice. Create a table named idempotency_keys. The column named key must have type text and be the primary key. Also add required columns request_hash of type text and created_at of type timestamp.
Solution requirement
Just CREATE/ALTER/DROP — no trailing SELECT needed.