| 1 | [ |
| 2 | { |
| 3 | "name": "echo_unread_wikis", |
| 4 | "columns": [ |
| 5 | { |
| 6 | "name": "euw_id", |
| 7 | "comment": "Primary key", |
| 8 | "type": "integer", |
| 9 | "options": { "autoincrement": true, "notnull": true, "unsigned": true } |
| 10 | }, |
| 11 | { |
| 12 | "name": "euw_user", |
| 13 | "comment": "Global user id", |
| 14 | "type": "integer", |
| 15 | "options": { "notnull": true, "unsigned": true } |
| 16 | }, |
| 17 | { |
| 18 | "name": "euw_wiki", |
| 19 | "comment": "Name of wiki", |
| 20 | "type": "string", |
| 21 | "options": { "notnull": true, "length": 64 } |
| 22 | }, |
| 23 | { |
| 24 | "name": "euw_alerts", |
| 25 | "comment": "unread alerts count on that wiki", |
| 26 | "type": "integer", |
| 27 | "options": { "notnull": true, "unsigned": true } |
| 28 | }, |
| 29 | { |
| 30 | "name": "euw_alerts_ts", |
| 31 | "comment": "Timestamp of the most recent unread alert", |
| 32 | "type": "mwtimestamp", |
| 33 | "options": { "notnull": true } |
| 34 | }, |
| 35 | { |
| 36 | "name": "euw_messages", |
| 37 | "comment": "unread messages count on that wiki", |
| 38 | "type": "integer", |
| 39 | "options": { "notnull": true, "unsigned": true } |
| 40 | }, |
| 41 | { |
| 42 | "name": "euw_messages_ts", |
| 43 | "comment": "Timestamp of the most recent unread message", |
| 44 | "type": "mwtimestamp", |
| 45 | "options": { "notnull": true } |
| 46 | } |
| 47 | ], |
| 48 | "indexes": [ |
| 49 | { |
| 50 | "name": "echo_unread_wikis_user_wiki", |
| 51 | "columns": [ "euw_user", "euw_wiki" ], |
| 52 | "unique": true |
| 53 | } |
| 54 | ], |
| 55 | "pk": [ "euw_id" ] |
| 56 | } |
| 57 | ] |