| 1 |
{ |
| 2 |
"db_name": "PostgreSQL", |
| 3 |
"query": "SELECT ml.id,\n COALESCE(actor.username, 'System') AS \"actor_username!\",\n ml.action AS \"action: ModAction\",\n target.username AS \"target_username?\",\n ml.reason,\n ml.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\"\n FROM mod_log ml\n LEFT JOIN users actor ON actor.mnw_account_id = ml.actor_id\n LEFT JOIN users target ON target.mnw_account_id = ml.target_user\n WHERE ml.community_id = $1\n ORDER BY ml.created_at DESC\n LIMIT $2 OFFSET $3", |
| 4 |
"describe": { |
| 5 |
"columns": [ |
| 6 |
{ |
| 7 |
"ordinal": 0, |
| 8 |
"name": "id", |
| 9 |
"type_info": "Uuid" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"ordinal": 1, |
| 13 |
"name": "actor_username!", |
| 14 |
"type_info": "Text" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"ordinal": 2, |
| 18 |
"name": "action: ModAction", |
| 19 |
"type_info": "Text" |
| 20 |
}, |
| 21 |
{ |
| 22 |
"ordinal": 3, |
| 23 |
"name": "target_username?", |
| 24 |
"type_info": "Text" |
| 25 |
}, |
| 26 |
{ |
| 27 |
"ordinal": 4, |
| 28 |
"name": "reason", |
| 29 |
"type_info": "Text" |
| 30 |
}, |
| 31 |
{ |
| 32 |
"ordinal": 5, |
| 33 |
"name": "created_at: chrono::DateTime<chrono::Utc>", |
| 34 |
"type_info": "Timestamptz" |
| 35 |
} |
| 36 |
], |
| 37 |
"parameters": { |
| 38 |
"Left": [ |
| 39 |
"Uuid", |
| 40 |
"Int8", |
| 41 |
"Int8" |
| 42 |
] |
| 43 |
}, |
| 44 |
"nullable": [ |
| 45 |
false, |
| 46 |
null, |
| 47 |
false, |
| 48 |
false, |
| 49 |
true, |
| 50 |
false |
| 51 |
] |
| 52 |
}, |
| 53 |
"hash": "5a76d12888310cce3fd0468969b65c25981690b3b9d73d55678be086a89a0ad2" |
| 54 |
} |
| 55 |
|