Skip to main content

max / makenotwork

565 B · 24 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "SELECT EXISTS(SELECT 1 FROM community_bans\n WHERE community_id = $1 AND user_id = $2 AND ban_type = 'ban'\n AND (expires_at IS NULL OR expires_at > now())) AS \"exists!\"",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "exists!",
9 "type_info": "Bool"
10 }
11 ],
12 "parameters": {
13 "Left": [
14 "Uuid",
15 "Uuid"
16 ]
17 },
18 "nullable": [
19 null
20 ]
21 },
22 "hash": "27b906a5bbec171f7ba6c04ff8d26929bbbc5c1294e17425a7cb6350e7f65781"
23 }
24