| 3 |
"query": "\n INSERT INTO transactions (buyer_id, seller_id, project_id, amount_cents, platform_fee_cents,\n status, completed_at, item_title, seller_username, share_contact)\n VALUES ($1, $2, $3, 0, 0, 'completed', NOW(), $4, $5, $6)\n ON CONFLICT (buyer_id, project_id) WHERE status = 'completed' AND project_id IS NOT NULL DO NOTHING\n ", |