Skip to main content

max / makenotwork

566 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 = 'mute'\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": "2bd843ce0aad356eedb3acec722296fb0b3f534fc0982a0818fb66ad5fd12641"
23 }
24