2021-06-13 16:33:50 -04:00
|
|
|
Table 2fa_recovery_codes
|
|
|
|
===========
|
2021-06-14 02:10:11 -04:00
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Two-factor authentication recovery codes
|
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Fields
|
|
|
|
------
|
|
|
|
|
2021-06-14 02:10:11 -04:00
|
|
|
| Field | Description | Type | Null | Key | Default | Extra |
|
|
|
|
| --------- | ------------------------------- | ------------------ | ---- | --- | ------- | ----- |
|
|
|
|
| uid | User ID | mediumint unsigned | NO | PRI | NULL | |
|
|
|
|
| code | Recovery code string | varchar(50) | NO | PRI | NULL | |
|
|
|
|
| generated | Datetime the code was generated | datetime | NO | | NULL | |
|
|
|
|
| used | Datetime the code was used | datetime | YES | | NULL | |
|
2021-06-13 16:33:50 -04:00
|
|
|
|
2021-06-14 04:53:37 -04:00
|
|
|
Indexes
|
|
|
|
------------
|
|
|
|
|
2021-06-14 08:15:10 -04:00
|
|
|
| Name | Fields |
|
|
|
|
| ------- | --------- |
|
2021-06-14 04:53:37 -04:00
|
|
|
| PRIMARY | uid, code |
|
|
|
|
|
|
|
|
Foreign Keys
|
|
|
|
------------
|
|
|
|
|
|
|
|
| Field | Target Table | Target Field |
|
|
|
|
|-------|--------------|--------------|
|
|
|
|
| uid | [user](help/database/db_user) | uid |
|
|
|
|
|
2021-06-13 16:33:50 -04:00
|
|
|
Return to [database documentation](help/database)
|