]> git.mxchange.org Git - friendica.git/blob - doc/database/db_2fa_app_specific_password.md
Merge remote-tracking branch 'upstream/2021.06-rc' into public-timeline
[friendica.git] / doc / database / db_2fa_app_specific_password.md
1 Table 2fa_app_specific_password
2 ===========
3
4 Two-factor app-specific _password
5
6 Fields
7 ------
8
9 | Field           | Description                              | Type               | Null | Key | Default | Extra          |
10 | --------------- | ---------------------------------------- | ------------------ | ---- | --- | ------- | -------------- |
11 | id              | Password ID for revocation               | mediumint unsigned | NO   | PRI | NULL    | auto_increment |
12 | uid             | User ID                                  | mediumint unsigned | NO   |     | NULL    |                |
13 | description     | Description of the usage of the password | varchar(255)       | YES  |     | NULL    |                |
14 | hashed_password | Hashed password                          | varchar(255)       | NO   |     | NULL    |                |
15 | generated       | Datetime the password was generated      | datetime           | NO   |     | NULL    |                |
16 | last_used       | Datetime the password was last used      | datetime           | YES  |     | NULL    |                |
17
18 Indexes
19 ------------
20
21 | Name            | Fields                |
22 | --------------- | --------------------- |
23 | PRIMARY         | id                    |
24 | uid_description | uid, description(190) |
25
26 Foreign Keys
27 ------------
28
29 | Field | Target Table | Target Field |
30 |-------|--------------|--------------|
31 | uid | [user](help/database/db_user) | uid |
32
33 Return to [database documentation](help/database)