this repo has no description
1{ 2 "db_name": "PostgreSQL", 3 "query": "\n UPDATE notification_queue\n SET status = 'processing', updated_at = NOW()\n WHERE id IN (\n SELECT id FROM notification_queue\n WHERE status = 'pending'\n AND scheduled_for <= $1\n AND attempts < max_attempts\n ORDER BY scheduled_for ASC\n LIMIT $2\n FOR UPDATE SKIP LOCKED\n )\n RETURNING\n id, user_id,\n channel as \"channel: NotificationChannel\",\n notification_type as \"notification_type: super::types::NotificationType\",\n status as \"status: NotificationStatus\",\n recipient, subject, body, metadata,\n attempts, max_attempts, last_error,\n created_at, updated_at, scheduled_for, processed_at\n ", 4 "describe": { 5 "columns": [ 6 { 7 "ordinal": 0, 8 "name": "id", 9 "type_info": "Uuid" 10 }, 11 { 12 "ordinal": 1, 13 "name": "user_id", 14 "type_info": "Uuid" 15 }, 16 { 17 "ordinal": 2, 18 "name": "channel: NotificationChannel", 19 "type_info": { 20 "Custom": { 21 "name": "notification_channel", 22 "kind": { 23 "Enum": [ 24 "email", 25 "discord", 26 "telegram", 27 "signal" 28 ] 29 } 30 } 31 } 32 }, 33 { 34 "ordinal": 3, 35 "name": "notification_type: super::types::NotificationType", 36 "type_info": { 37 "Custom": { 38 "name": "notification_type", 39 "kind": { 40 "Enum": [ 41 "welcome", 42 "email_verification", 43 "password_reset", 44 "email_update", 45 "account_deletion", 46 "admin_email" 47 ] 48 } 49 } 50 } 51 }, 52 { 53 "ordinal": 4, 54 "name": "status: NotificationStatus", 55 "type_info": { 56 "Custom": { 57 "name": "notification_status", 58 "kind": { 59 "Enum": [ 60 "pending", 61 "processing", 62 "sent", 63 "failed" 64 ] 65 } 66 } 67 } 68 }, 69 { 70 "ordinal": 5, 71 "name": "recipient", 72 "type_info": "Text" 73 }, 74 { 75 "ordinal": 6, 76 "name": "subject", 77 "type_info": "Text" 78 }, 79 { 80 "ordinal": 7, 81 "name": "body", 82 "type_info": "Text" 83 }, 84 { 85 "ordinal": 8, 86 "name": "metadata", 87 "type_info": "Jsonb" 88 }, 89 { 90 "ordinal": 9, 91 "name": "attempts", 92 "type_info": "Int4" 93 }, 94 { 95 "ordinal": 10, 96 "name": "max_attempts", 97 "type_info": "Int4" 98 }, 99 { 100 "ordinal": 11, 101 "name": "last_error", 102 "type_info": "Text" 103 }, 104 { 105 "ordinal": 12, 106 "name": "created_at", 107 "type_info": "Timestamptz" 108 }, 109 { 110 "ordinal": 13, 111 "name": "updated_at", 112 "type_info": "Timestamptz" 113 }, 114 { 115 "ordinal": 14, 116 "name": "scheduled_for", 117 "type_info": "Timestamptz" 118 }, 119 { 120 "ordinal": 15, 121 "name": "processed_at", 122 "type_info": "Timestamptz" 123 } 124 ], 125 "parameters": { 126 "Left": [ 127 "Timestamptz", 128 "Int8" 129 ] 130 }, 131 "nullable": [ 132 false, 133 false, 134 false, 135 false, 136 false, 137 false, 138 true, 139 false, 140 true, 141 false, 142 false, 143 true, 144 false, 145 false, 146 false, 147 true 148 ] 149 }, 150 "hash": "cb6f48aaba124c79308d20e66c23adb44d1196296b7f93fad19b2d17548ed3de" 151}