Skip to main content

max / makenotwork

1.1 KB · 35 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n SELECT DISTINCT t.seller_id AS \"seller_id!: UserId\", u.username, u.display_name\n FROM transactions t\n JOIN users u ON u.id = t.seller_id\n WHERE t.buyer_id = $1\n AND t.status = 'completed'\n AND t.share_contact = true\n AND NOT EXISTS (\n SELECT 1 FROM contact_revocations cr\n WHERE cr.buyer_id = t.buyer_id AND cr.seller_id = t.seller_id\n )\n ORDER BY u.username\n LIMIT 500\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "seller_id!: UserId",
9 "type_info": "Uuid"
10 },
11 {
12 "ordinal": 1,
13 "name": "username",
14 "type_info": "Varchar"
15 },
16 {
17 "ordinal": 2,
18 "name": "display_name",
19 "type_info": "Varchar"
20 }
21 ],
22 "parameters": {
23 "Left": [
24 "Uuid"
25 ]
26 },
27 "nullable": [
28 true,
29 false,
30 true
31 ]
32 },
33 "hash": "f924cfd0a26e4033c9e23eb1201795a045f5f9e70b408bb11abc3672bea6ec78"
34 }
35