| 1 | [ |
| 2 | { |
| 3 | "name": "abuse_filter", |
| 4 | "columns": [ |
| 5 | { |
| 6 | "name": "af_id", |
| 7 | "type": "bigint", |
| 8 | "options": { "notnull": true, "autoincrement": true, "unsigned": true } |
| 9 | }, |
| 10 | { |
| 11 | "name": "af_pattern", |
| 12 | "type": "blob", |
| 13 | "options": { "notnull": true, "length": 65530 } |
| 14 | }, |
| 15 | { |
| 16 | "name": "af_actor", |
| 17 | "type": "bigint", |
| 18 | "options": { "notnull": true, "unsigned": true } |
| 19 | }, |
| 20 | { |
| 21 | "name": "af_timestamp", |
| 22 | "type": "mwtimestamp", |
| 23 | "options": { "notnull": true } |
| 24 | }, |
| 25 | { |
| 26 | "name": "af_enabled", |
| 27 | "type": "mwtinyint", |
| 28 | "options": { "notnull": true, "length": 1, "default": 1 } |
| 29 | }, |
| 30 | { |
| 31 | "name": "af_comments", |
| 32 | "type": "blob", |
| 33 | "options": { "notnull": false, "length": 65530 } |
| 34 | }, |
| 35 | { |
| 36 | "name": "af_public_comments", |
| 37 | "type": "blob", |
| 38 | "options": { "notnull": false, "length": 255 } |
| 39 | }, |
| 40 | { |
| 41 | "name": "af_hidden", |
| 42 | "type": "mwtinyint", |
| 43 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 44 | }, |
| 45 | { |
| 46 | "name": "af_hit_count", |
| 47 | "type": "bigint", |
| 48 | "options": { "notnull": true, "default": 0 } |
| 49 | }, |
| 50 | { |
| 51 | "name": "af_throttled", |
| 52 | "type": "mwtinyint", |
| 53 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 54 | }, |
| 55 | { |
| 56 | "name": "af_deleted", |
| 57 | "type": "mwtinyint", |
| 58 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 59 | }, |
| 60 | { |
| 61 | "name": "af_actions", |
| 62 | "type": "string", |
| 63 | "options": { "notnull": true, "length": 255, "default": "" } |
| 64 | }, |
| 65 | { |
| 66 | "name": "af_global", |
| 67 | "type": "mwtinyint", |
| 68 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 69 | }, |
| 70 | { |
| 71 | "name": "af_group", |
| 72 | "type": "binary", |
| 73 | "options": { "notnull": true, "length": 64, "default": "default" } |
| 74 | } |
| 75 | ], |
| 76 | "indexes": [ |
| 77 | { |
| 78 | "name": "af_actor", |
| 79 | "columns": [ "af_actor" ], |
| 80 | "unique": false |
| 81 | }, |
| 82 | { |
| 83 | "name": "af_group_enabled", |
| 84 | "columns": [ "af_group", "af_enabled", "af_id" ], |
| 85 | "unique": false |
| 86 | } |
| 87 | ], |
| 88 | "pk": [ "af_id" ] |
| 89 | }, |
| 90 | { |
| 91 | "name": "abuse_filter_action", |
| 92 | "columns": [ |
| 93 | { |
| 94 | "name": "afa_filter", |
| 95 | "type": "bigint", |
| 96 | "options": { "notnull": true, "unsigned": true } |
| 97 | }, |
| 98 | { |
| 99 | "name": "afa_consequence", |
| 100 | "type": "string", |
| 101 | "options": { "notnull": true, "length": 255 } |
| 102 | }, |
| 103 | { |
| 104 | "name": "afa_parameters", |
| 105 | "type": "blob", |
| 106 | "options": { "notnull": true, "length": 255 } |
| 107 | } |
| 108 | ], |
| 109 | "indexes": [ |
| 110 | { |
| 111 | "name": "afa_consequence", |
| 112 | "columns": [ "afa_consequence" ], |
| 113 | "unique": false |
| 114 | } |
| 115 | ], |
| 116 | "pk": [ "afa_filter", "afa_consequence" ] |
| 117 | }, |
| 118 | { |
| 119 | "name": "abuse_filter_log", |
| 120 | "columns": [ |
| 121 | { |
| 122 | "name": "afl_id", |
| 123 | "type": "bigint", |
| 124 | "options": { "notnull": true, "autoincrement": true, "unsigned": true } |
| 125 | }, |
| 126 | { |
| 127 | "name": "afl_global", |
| 128 | "type": "mwtinyint", |
| 129 | "options": { "notnull": true, "length": 1 } |
| 130 | }, |
| 131 | { |
| 132 | "name": "afl_filter_id", |
| 133 | "type": "bigint", |
| 134 | "options": { "notnull": true, "unsigned": true } |
| 135 | }, |
| 136 | { |
| 137 | "name": "afl_user", |
| 138 | "type": "bigint", |
| 139 | "options": { "notnull": true, "unsigned": true } |
| 140 | }, |
| 141 | { |
| 142 | "name": "afl_user_text", |
| 143 | "type": "binary", |
| 144 | "options": { "notnull": true, "length": 255 } |
| 145 | }, |
| 146 | { |
| 147 | "name": "afl_ip", |
| 148 | "type": "string", |
| 149 | "options": { "notnull": true, "length": 255 } |
| 150 | }, |
| 151 | { |
| 152 | "name": "afl_action", |
| 153 | "type": "binary", |
| 154 | "options": { "notnull": true, "length": 255 } |
| 155 | }, |
| 156 | { |
| 157 | "name": "afl_actions", |
| 158 | "type": "binary", |
| 159 | "options": { "notnull": true, "length": 255 } |
| 160 | }, |
| 161 | { |
| 162 | "name": "afl_var_dump", |
| 163 | "type": "blob", |
| 164 | "options": { "notnull": true, "length": 65530 } |
| 165 | }, |
| 166 | { |
| 167 | "name": "afl_timestamp", |
| 168 | "type": "mwtimestamp", |
| 169 | "options": { "notnull": true } |
| 170 | }, |
| 171 | { |
| 172 | "name": "afl_namespace", |
| 173 | "type": "integer", |
| 174 | "options": { "notnull": true } |
| 175 | }, |
| 176 | { |
| 177 | "name": "afl_title", |
| 178 | "type": "binary", |
| 179 | "options": { "notnull": true, "length": 255 } |
| 180 | }, |
| 181 | { |
| 182 | "name": "afl_wiki", |
| 183 | "type": "binary", |
| 184 | "options": { "notnull": false, "length": 64 } |
| 185 | }, |
| 186 | { |
| 187 | "name": "afl_deleted", |
| 188 | "type": "mwtinyint", |
| 189 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 190 | }, |
| 191 | { |
| 192 | "name": "afl_patrolled_by", |
| 193 | "type": "integer", |
| 194 | "options": { "notnull": true, "unsigned": true, "default": 0 } |
| 195 | }, |
| 196 | { |
| 197 | "name": "afl_rev_id", |
| 198 | "type": "integer", |
| 199 | "options": { "notnull": false, "unsigned": true } |
| 200 | } |
| 201 | ], |
| 202 | "indexes": [ |
| 203 | { |
| 204 | "name": "afl_filter_timestamp_full", |
| 205 | "columns": [ "afl_global", "afl_filter_id", "afl_timestamp" ], |
| 206 | "unique": false |
| 207 | }, |
| 208 | { |
| 209 | "name": "afl_user_timestamp", |
| 210 | "columns": [ "afl_user", "afl_user_text", "afl_timestamp" ], |
| 211 | "unique": false |
| 212 | }, |
| 213 | { |
| 214 | "name": "afl_timestamp", |
| 215 | "columns": [ "afl_timestamp" ], |
| 216 | "unique": false |
| 217 | }, |
| 218 | { |
| 219 | "name": "afl_page_timestamp", |
| 220 | "columns": [ "afl_namespace", "afl_title", "afl_timestamp" ], |
| 221 | "unique": false |
| 222 | }, |
| 223 | { |
| 224 | "name": "afl_ip_timestamp", |
| 225 | "columns": [ "afl_ip", "afl_timestamp" ], |
| 226 | "unique": false |
| 227 | }, |
| 228 | { |
| 229 | "name": "afl_rev_id", |
| 230 | "columns": [ "afl_rev_id" ], |
| 231 | "unique": false |
| 232 | }, |
| 233 | { |
| 234 | "name": "afl_wiki_timestamp", |
| 235 | "columns": [ "afl_wiki", "afl_timestamp" ], |
| 236 | "unique": false |
| 237 | } |
| 238 | ], |
| 239 | "pk": [ "afl_id" ] |
| 240 | }, |
| 241 | { |
| 242 | "name": "abuse_filter_history", |
| 243 | "columns": [ |
| 244 | { |
| 245 | "name": "afh_id", |
| 246 | "type": "bigint", |
| 247 | "options": { "notnull": true, "autoincrement": true, "unsigned": true } |
| 248 | }, |
| 249 | { |
| 250 | "name": "afh_filter", |
| 251 | "type": "bigint", |
| 252 | "options": { "notnull": true, "unsigned": true } |
| 253 | }, |
| 254 | { |
| 255 | "name": "afh_actor", |
| 256 | "type": "bigint", |
| 257 | "options": { "notnull": true, "unsigned": true } |
| 258 | }, |
| 259 | { |
| 260 | "name": "afh_timestamp", |
| 261 | "type": "mwtimestamp", |
| 262 | "options": { "notnull": true } |
| 263 | }, |
| 264 | { |
| 265 | "name": "afh_pattern", |
| 266 | "type": "blob", |
| 267 | "options": { "notnull": true, "length": 65530 } |
| 268 | }, |
| 269 | { |
| 270 | "name": "afh_comments", |
| 271 | "type": "blob", |
| 272 | "options": { "notnull": true, "length": 65530 } |
| 273 | }, |
| 274 | { |
| 275 | "name": "afh_flags", |
| 276 | "type": "blob", |
| 277 | "options": { "notnull": true, "length": 255 } |
| 278 | }, |
| 279 | { |
| 280 | "name": "afh_public_comments", |
| 281 | "type": "blob", |
| 282 | "options": { "notnull": false, "length": 255 } |
| 283 | }, |
| 284 | { |
| 285 | "name": "afh_actions", |
| 286 | "type": "blob", |
| 287 | "options": { "notnull": false, "length": 65530 } |
| 288 | }, |
| 289 | { |
| 290 | "name": "afh_deleted", |
| 291 | "type": "mwtinyint", |
| 292 | "options": { "notnull": true, "length": 1, "default": 0 } |
| 293 | }, |
| 294 | { |
| 295 | "name": "afh_changed_fields", |
| 296 | "type": "string", |
| 297 | "options": { "notnull": true, "length": 255, "default": "" } |
| 298 | }, |
| 299 | { |
| 300 | "name": "afh_group", |
| 301 | "type": "binary", |
| 302 | "options": { "notnull": false, "length": 64 } |
| 303 | } |
| 304 | ], |
| 305 | "indexes": [ |
| 306 | { |
| 307 | "name": "afh_filter", |
| 308 | "columns": [ "afh_filter" ], |
| 309 | "unique": false |
| 310 | }, |
| 311 | { |
| 312 | "name": "afh_actor", |
| 313 | "columns": [ "afh_actor" ], |
| 314 | "unique": false |
| 315 | }, |
| 316 | { |
| 317 | "name": "afh_timestamp", |
| 318 | "columns": [ "afh_timestamp" ], |
| 319 | "unique": false |
| 320 | } |
| 321 | ], |
| 322 | "pk": [ "afh_id" ] |
| 323 | } |
| 324 | ] |