Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | MEDIUMINT UNSIGNED | 8 | √ | null |
|
|
|||||
| player_id | MEDIUMINT UNSIGNED | 8 | null |
|
|
||||||
| MEDIUMINT UNSIGNED | 8 | null |
|
|
|||||||
| reason | VARCHAR | 255 | null |
|
|
||||||
| expires_at | DATETIME | 19 | √ | null |
|
|
If null, the ban is permanent |
||||
| level | enum('CHAT', 'GLOBAL', 'VAULT') | 6 | null |
|
|
||||||
| create_time | TIMESTAMP | 19 | current_timestamp() |
|
|
||||||
| update_time | TIMESTAMP | 19 | current_timestamp() |
|
|
||||||
| report_id | INT UNSIGNED | 10 | √ | null |
|
|
The report based on which the ban was issued, is NULL if ban was not issues due to a report |
||||
| revoke_reason | MEDIUMTEXT | 16777215 | √ | null |
|
|
|||||
| MEDIUMINT UNSIGNED | 8 | √ | null |
|
|
||||||
| revoke_time | TIMESTAMP | 19 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| ban_revoke_author | Performance | Asc | author_id |
| player_id | Performance | Asc | player_id |
| report_id | Performance | Asc | report_id |

