ban

0 rows


Description

ban can be revoked, see ban_revoke

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id MEDIUMINT UNSIGNED 8 null
player_id MEDIUMINT UNSIGNED 8 null
login.id ban_ibfk_1 R
author_id MEDIUMINT UNSIGNED 8 null
login.id ban_revoke_author R
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
moderation_report.id ban_ibfk_3 R

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
revoke_author_id 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

Relationships