Manual:Bot passwords table/ja

bot_passwords テーブルはボットのパスワードを保持します.

bp_user
Central ID of the user. On a default installation this is a foreign key to.

bp_app_id
App ID, used to differentiate multiple applications using the same account; applications using bot login need to pass as username.

bp_password
Password hash (like ).

bp_token
Token for remembering / invalidating the session (like ).

bp_restrictions
JSON blob for.

bp_grants
Grants allowed to the account when authenticated with this bot-password.



スキーマの要約
+-+--+--+-+--+---+ +-+--+--+-+--+---+ +-+--+--+-+--+---+
 * Field          | Type             | Null | Key | Default                          | Extra |
 * bp_user        | int(10) unsigned | NO   | PRI | NULL                             |       |
 * bp_app_id      | varbinary(32)    | NO   | PRI | NULL                             |       |
 * bp_password    | tinyblob         | NO   |     | NULL                             |       |
 * bp_token       | binary(32)       | NO   |     |                                  |       |
 * bp_restrictions | blob            | NO   |     | NULL                             |       |
 * bp_grants      | blob             | NO   |     | NULL                             |       |

+-+---+--+-+--+---+ +-+---+--+-+--+---+ +-+---+--+-+--+---+
 * Field          | Type          | Null | Key | Default                          | Extra |
 * bp_user        | int(11)       | NO   | PRI | NULL                             |       |
 * bp_app_id      | varbinary(32) | NO   | PRI | NULL                             |       |
 * bp_password    | tinyblob      | NO   |     | NULL                             |       |
 * bp_token       | binary(32)    | NO   |     |                                  |       |
 * bp_restrictions | blob         | NO   |     | NULL                             |       |
 * bp_grants      | blob          | NO   |     | NULL                             |       |

インデックス
 +---++--+--+-+---+-+--++--++-+---+ +---++--+--+-+---+-+--++--++-+---+ +---++--+--+-+---+-+--++--++-+---+
 * Table        | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
 * bot_passwords |         0 | PRIMARY  |            1 | bp_user     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * bot_passwords |         0 | PRIMARY  |            2 | bp_app_id   | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |