| 1 |
{ |
| 2 |
"db_name": "PostgreSQL", |
| 3 |
"query": "\n SELECT t.id AS \"id: TipId\", t.tipper_id AS \"tipper_id: UserId\", t.recipient_id AS \"recipient_id: UserId\",\n t.project_id AS \"project_id: ProjectId\", t.amount_cents AS \"amount_cents: Cents\",\n t.message, t.status AS \"status: super::TransactionStatus\",\n t.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\",\n t.completed_at AS \"completed_at: chrono::DateTime<chrono::Utc>\",\n u.username AS tipper_username, u.display_name AS tipper_display_name\n FROM tips t\n JOIN users u ON u.id = t.tipper_id\n WHERE t.recipient_id = $1 AND t.status = 'completed'\n ORDER BY t.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": "created_at: chrono::DateTime<chrono::Utc>", |
| 44 |
"type_info": "Timestamptz" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"ordinal": 8, |
| 48 |
"name": "completed_at: chrono::DateTime<chrono::Utc>", |
| 49 |
"type_info": "Timestamptz" |
| 50 |
}, |
| 51 |
{ |
| 52 |
"ordinal": 9, |
| 53 |
"name": "tipper_username", |
| 54 |
"type_info": "Varchar" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"ordinal": 10, |
| 58 |
"name": "tipper_display_name", |
| 59 |
"type_info": "Varchar" |
| 60 |
} |
| 61 |
], |
| 62 |
"parameters": { |
| 63 |
"Left": [ |
| 64 |
"Uuid", |
| 65 |
"Int8", |
| 66 |
"Int8" |
| 67 |
] |
| 68 |
}, |
| 69 |
"nullable": [ |
| 70 |
false, |
| 71 |
false, |
| 72 |
false, |
| 73 |
true, |
| 74 |
false, |
| 75 |
true, |
| 76 |
false, |
| 77 |
false, |
| 78 |
true, |
| 79 |
false, |
| 80 |
true |
| 81 |
] |
| 82 |
}, |
| 83 |
"hash": "c71cc7d733de0e4bebfd201d882a1a98213c4178481d0ef90baeb75314b66adf" |
| 84 |
} |
| 85 |
|