Skip to main content

max / makenotwork

2.5 KB · 90 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n UPDATE tips\n SET status = 'completed',\n stripe_payment_intent_id = $2,\n completed_at = NOW()\n WHERE stripe_checkout_session_id = $1\n AND status = 'pending'\n RETURNING\n id AS \"id: TipId\", tipper_id AS \"tipper_id: UserId\", recipient_id AS \"recipient_id: UserId\",\n project_id AS \"project_id: ProjectId\", amount_cents AS \"amount_cents: Cents\", message,\n status AS \"status: super::TransactionStatus\", stripe_payment_intent_id, stripe_checkout_session_id,\n stripe_transfer_group,\n created_at AS \"created_at: chrono::DateTime<chrono::Utc>\",\n completed_at AS \"completed_at: chrono::DateTime<chrono::Utc>\"\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id: TipId",
9 "type_info": "Uuid"
10 },
11 {
12 "ordinal": 1,
13 "name": "tipper_id: UserId",
14 "type_info": "Uuid"
15 },
16 {
17 "ordinal": 2,
18 "name": "recipient_id: UserId",
19 "type_info": "Uuid"
20 },
21 {
22 "ordinal": 3,
23 "name": "project_id: ProjectId",
24 "type_info": "Uuid"
25 },
26 {
27 "ordinal": 4,
28 "name": "amount_cents: Cents",
29 "type_info": "Int4"
30 },
31 {
32 "ordinal": 5,
33 "name": "message",
34 "type_info": "Varchar"
35 },
36 {
37 "ordinal": 6,
38 "name": "status: super::TransactionStatus",
39 "type_info": "Varchar"
40 },
41 {
42 "ordinal": 7,
43 "name": "stripe_payment_intent_id",
44 "type_info": "Varchar"
45 },
46 {
47 "ordinal": 8,
48 "name": "stripe_checkout_session_id",
49 "type_info": "Varchar"
50 },
51 {
52 "ordinal": 9,
53 "name": "stripe_transfer_group",
54 "type_info": "Varchar"
55 },
56 {
57 "ordinal": 10,
58 "name": "created_at: chrono::DateTime<chrono::Utc>",
59 "type_info": "Timestamptz"
60 },
61 {
62 "ordinal": 11,
63 "name": "completed_at: chrono::DateTime<chrono::Utc>",
64 "type_info": "Timestamptz"
65 }
66 ],
67 "parameters": {
68 "Left": [
69 "Text",
70 "Varchar"
71 ]
72 },
73 "nullable": [
74 false,
75 false,
76 false,
77 true,
78 false,
79 true,
80 false,
81 true,
82 true,
83 true,
84 false,
85 true
86 ]
87 },
88 "hash": "6b1d0dbffd82a8902fa1e2cad2ae7c26135dca1ab462ee72d09bda12b4b3bb7d"
89 }
90