{ "db_name": "PostgreSQL", "query": "\n INSERT INTO transactions (buyer_id, seller_id, item_id, amount_cents, platform_fee_cents, stripe_checkout_session_id, status, completed_at, item_title, seller_username, share_contact, promo_code_id, platform_credit_cents)\n VALUES ($1, $2, $3, 0, 0, $4, 'completed', NOW(), $5, $6, $7, $8, $9)\n ON CONFLICT (buyer_id, item_id) WHERE status = 'completed' AND item_id IS NOT NULL DO NOTHING\n ", "describe": { "columns": [], "parameters": { "Left": [ "Uuid", "Uuid", "Uuid", "Varchar", "Varchar", "Varchar", "Bool", "Uuid", "Int8" ] }, "nullable": [] }, "hash": "a472ba70a270f88f2c4982782b3f3839623b180b5d9adf18de81640a0fa822c8" }