Skip to main content

max / makenotwork

2.4 KB · 91 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n SELECT\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 FROM tips\n WHERE tipper_id = $1 AND status = 'completed'\n ORDER BY created_at DESC\n LIMIT $2 OFFSET $3\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 "Uuid",
70 "Int8",
71 "Int8"
72 ]
73 },
74 "nullable": [
75 false,
76 false,
77 false,
78 true,
79 false,
80 true,
81 false,
82 true,
83 true,
84 true,
85 false,
86 true
87 ]
88 },
89 "hash": "36e369ea83eb4c8337f4a4c3ccde3c5ceabb68b38d458060ec45352f67a1c86e"
90 }
91