]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_2fa_app_specific_password.md
Merge pull request #12407 from HankG/friendica-api-photo-endpoint-updates
[friendica.git] / doc / database / db_2fa_app_specific_password.md
index f34716329ecd0c9eb23d1c5dc5f1dab7a002a026..66dd77c95cb65c6b22a662a3908e409a346bedb7 100644 (file)
@@ -1,14 +1,33 @@
 Table 2fa_app_specific_password
 ===========
+
 Two-factor app-specific _password
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id              | Password ID for revocation               | mediumint unsigned | NO  | PRI | NULL | auto_increment |    
-| uid             | User ID                                  | mediumint unsigned | NO  |     | NULL |                |    
-| description     | Description of the usage of the password | varchar(255)       | YES |     | NULL |                |    
-| hashed_password | Hashed password                          | varchar(255)       | NO  |     | NULL |                |    
-| generated       | Datetime the password was generated      | datetime           | NO  |     | NULL |                |    
-| last_used       | Datetime the password was last used      | datetime           | YES |     | NULL |                |    
+Fields
+------
+
+| Field           | Description                              | Type               | Null | Key | Default | Extra          |
+| --------------- | ---------------------------------------- | ------------------ | ---- | --- | ------- | -------------- |
+| id              | Password ID for revocation               | mediumint unsigned | NO   | PRI | NULL    | auto_increment |
+| uid             | User ID                                  | mediumint unsigned | NO   |     | NULL    |                |
+| description     | Description of the usage of the password | varchar(255)       | YES  |     | NULL    |                |
+| hashed_password | Hashed password                          | varchar(255)       | NO   |     | NULL    |                |
+| generated       | Datetime the password was generated      | datetime           | NO   |     | NULL    |                |
+| last_used       | Datetime the password was last used      | datetime           | YES  |     | NULL    |                |
+
+Indexes
+------------
+
+| Name            | Fields                |
+| --------------- | --------------------- |
+| PRIMARY         | id                    |
+| uid_description | uid, description(190) |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uid | [user](help/database/db_user) | uid |
 
 Return to [database documentation](help/database)