]> 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 660319e04118c860ab1ab75f3f7b4d9a44ecd775..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 | YES | PRI | NULL | auto_increment |    
-| uid | User ID | mediumint unsigned | YES |  | NULL |  |    
-| description | Description of the usage of the password | varchar(255) | NO |  | NULL |  |    
-| hashed_password | Hashed password | varchar(255) | YES |  | NULL |  |    
-| generated | Datetime the password was generated | datetime | YES |  | NULL |  |    
-| last_used | Datetime the password was last used | datetime | NO |  | 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)