Skip to main content

max / makenotwork

2.7 KB · 101 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n INSERT INTO tips (tipper_id, recipient_id, project_id, amount_cents, message, stripe_checkout_session_id, currency)\n VALUES ($1, $2, $3, $4, $5, $6, $7)\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 currency AS \"currency: crate::currency::SettlementCurrency\"\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 "ordinal": 12,
68 "name": "currency: crate::currency::SettlementCurrency",
69 "type_info": "Varchar"
70 }
71 ],
72 "parameters": {
73 "Left": [
74 "Uuid",
75 "Uuid",
76 "Uuid",
77 "Int4",
78 "Varchar",
79 "Varchar",
80 "Varchar"
81 ]
82 },
83 "nullable": [
84 false,
85 false,
86 false,
87 true,
88 false,
89 true,
90 false,
91 true,
92 true,
93 true,
94 false,
95 true,
96 false
97 ]
98 },
99 "hash": "3b720ae6317edf8138a53c7591bf3f2a104187e3f6853f4f5f353566f3da4ada"
100 }
101