]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_2fa_recovery_codes.md
Merge remote-tracking branch 'upstream/develop' into api-edit
[friendica.git] / doc / database / db_2fa_recovery_codes.md
index 30e00ef658b8ee054d0dd35bcd6abb1d5a1a07ef..69c34e6547d83fc994486b9659d092140d3e1874 100644 (file)
@@ -3,6 +3,9 @@ Table 2fa_recovery_codes
 
 Two-factor authentication recovery codes
 
+Fields
+------
+
 | Field     | Description                     | Type               | Null | Key | Default | Extra |
 | --------- | ------------------------------- | ------------------ | ---- | --- | ------- | ----- |
 | uid       | User ID                         | mediumint unsigned | NO   | PRI | NULL    |       |
@@ -10,4 +13,18 @@ Two-factor authentication recovery codes
 | generated | Datetime the code was generated | datetime           | NO   |     | NULL    |       |
 | used      | Datetime the code was used      | datetime           | YES  |     | NULL    |       |
 
+Indexes
+------------
+
+| Name    | Fields    |
+| ------- | --------- |
+| PRIMARY | uid, code |
+
+Foreign Keys
+------------
+
+| Field | Target Table | Target Field |
+|-------|--------------|--------------|
+| uid | [user](help/database/db_user) | uid |
+
 Return to [database documentation](help/database)