Jump to content

扩展:防滥用过滤器/防滥用过滤器表

From mediawiki.org
This page is a translated version of the page Extension:AbuseFilter/abuse filter table and the translation is 96% complete.

字段

af_id

主关键字

af_pattern

過濾器的規則。

af_user

最後修改過濾器的用戶ID。

af_user_text

最後修改過濾器的用戶名。

af_timestamp

最後修改過濾器的典型MediaWiki時間戳

af_enabled

過濾器是否被啟用。 如果是則為1,否則為0

af_comments

過濾器的說明(顯示於條件編輯器的下方)。

af_public_comments

過濾器的公開名稱。

af_hidden

過濾器是否被隱藏。 如果是則為1,否則為0

af_hit_count

此過濾器的觸發數量。

af_throttled

過濾器是否被限制。 如果是則為1,否則為0

af_deleted

過濾器是否被刪除。 如果是則為1,否則為0

af_actions

過濾器啟用的動作的逗號分隔列表。 例如:

disallow,tag

af_global

過濾器是否是全域的。 如果是則為1,否則為0

af_group

過濾器所屬的群組,定義在$wgAbuseFilterValidGroups中。

架構

mysql> describe abuse_filter;
+--------------------+---------------------+------+-----+---------+----------------+
| Field              | Type                | Null | Key | Default | Extra          |
+--------------------+---------------------+------+-----+---------+----------------+
| af_id              | bigint(20) unsigned | NO   | PRI | NULL    | auto_increment |
| af_pattern         | blob                | NO   |     | NULL    |                |
| af_user            | bigint(20) unsigned | NO   | MUL | NULL    |                |
| af_user_text       | varbinary(255)      | NO   |     | NULL    |                |
| af_timestamp       | binary(14)          | NO   |     | NULL    |                |
| af_enabled         | tinyint(1)          | NO   |     | 1       |                |
| af_comments        | blob                | YES  |     | NULL    |                |
| af_public_comments | tinyblob            | YES  |     | NULL    |                |
| af_hidden          | tinyint(1)          | NO   |     | 0       |                |
| af_hit_count       | bigint(20)          | NO   |     | 0       |                |
| af_throttled       | tinyint(1)          | NO   |     | 0       |                |
| af_deleted         | tinyint(1)          | NO   |     | 0       |                |
| af_actions         | varbinary(255)      | NO   |     |         |                |
| af_global          | tinyint(1)          | NO   |     | 0       |                |
| af_group           | varbinary(64)       | NO   | MUL | default |                |
+--------------------+---------------------+------+-----+---------+----------------+

Indexes

+--------------+------------+------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table        | Non_unique | Key_name         | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+--------------+------------+------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| abuse_filter |          0 | PRIMARY          |            1 | af_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| abuse_filter |          1 | af_user          |            1 | af_user     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| abuse_filter |          1 | af_group_enabled |            1 | af_group    | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| abuse_filter |          1 | af_group_enabled |            2 | af_enabled  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| abuse_filter |          1 | af_group_enabled |            3 | af_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+--------------+------------+------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+