| 1 | [ |
| 2 | { |
| 3 | "name": "actor", |
| 4 | "comment": "The \"actor\" table associates user names or IP addresses with integers for the benefit of other tables that need to refer to either logged-in or logged-out users. If something can only ever be done by logged-in users, it can refer to the user table directly.", |
| 5 | "columns": [ |
| 6 | { |
| 7 | "name": "actor_id", |
| 8 | "comment": "Unique ID to identify each actor", |
| 9 | "type": "bigint", |
| 10 | "options": { "unsigned": true, "notnull": true } |
| 11 | }, |
| 12 | { |
| 13 | "name": "actor_user", |
| 14 | "comment": "Key to user.user_id, or NULL for anonymous edits", |
| 15 | "type": "integer", |
| 16 | "options": { "unsigned": true } |
| 17 | }, |
| 18 | { |
| 19 | "name": "actor_name", |
| 20 | "comment": "Text username or IP address", |
| 21 | "type": "string", |
| 22 | "options": { "length": 255, "notnull": true } |
| 23 | } |
| 24 | ], |
| 25 | "indexes": [ |
| 26 | { "name": "actor_user", "columns": [ "actor_user" ], "unique": true }, |
| 27 | { "name": "actor_name", "columns": [ "actor_name" ], "unique": true } |
| 28 | ], |
| 29 | "pk": [ "actor_id" ] |
| 30 | } |
| 31 | ] |