Skip to main content

max / makenotwork

816 B · 23 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "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 ",
4 "describe": {
5 "columns": [],
6 "parameters": {
7 "Left": [
8 "Uuid",
9 "Uuid",
10 "Uuid",
11 "Varchar",
12 "Varchar",
13 "Varchar",
14 "Bool",
15 "Uuid",
16 "Int8"
17 ]
18 },
19 "nullable": []
20 },
21 "hash": "e78d2ee33b1ead47c1faeee416582a91bbd83e0af359bf20b95b8bea479410ba"
22 }
23