Skip to main content

max / makenotwork

892 B · 23 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n INSERT INTO transactions (\n buyer_id, seller_id, item_id, amount_cents, platform_fee_cents,\n stripe_checkout_session_id, status, completed_at,\n item_title, seller_username, share_contact,\n guest_email, claim_token, download_token\n )\n VALUES ($1, $2, $3, 0, 0, $4, 'completed', NOW(), $5, $6, false, $7, $8, $9)\n ON CONFLICT (guest_email, item_id) WHERE status = 'completed' AND guest_email 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 "Varchar",
15 "Uuid",
16 "Uuid"
17 ]
18 },
19 "nullable": []
20 },
21 "hash": "1809ee8c6edfe34df75a8d989f4027fc6de449c76f1fb170159e2a7a0c0f75de"
22 }
23