{ "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, parent_transaction_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": "e78d2ee33b1ead47c1faeee416582a91bbd83e0af359bf20b95b8bea479410ba" }