Skip to main content

max / makenotwork

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