Fix table structure definition
This commit is contained in:
parent
f775fedc4a
commit
e430b074ce
1 changed files with 2 additions and 2 deletions
|
@ -44,13 +44,13 @@ return [
|
||||||
"id" => ["type" => "mediumint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "Password ID for revocation"],
|
"id" => ["type" => "mediumint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "Password ID for revocation"],
|
||||||
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "relation" => ["user" => "uid"], "comment" => "User ID"],
|
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "relation" => ["user" => "uid"], "comment" => "User ID"],
|
||||||
"description" => ["type" => "varchar(255)", "comment" => "Description of the usage of the password"],
|
"description" => ["type" => "varchar(255)", "comment" => "Description of the usage of the password"],
|
||||||
"hashed_password" => ["type" => "varchar(255)", "not null" => "1", "primary" => "1", "comment" => "Hashed password"],
|
"hashed_password" => ["type" => "varchar(255)", "not null" => "1", "comment" => "Hashed password"],
|
||||||
"generated" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the password was generated"],
|
"generated" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the password was generated"],
|
||||||
"last_used" => ["type" => "datetime", "comment" => "Datetime the password was last used"],
|
"last_used" => ["type" => "datetime", "comment" => "Datetime the password was last used"],
|
||||||
],
|
],
|
||||||
"indexes" => [
|
"indexes" => [
|
||||||
"PRIMARY" => ["id"],
|
"PRIMARY" => ["id"],
|
||||||
"uid_description" => ["uid", "description"],
|
"uid_description" => ["uid", "description(190)"],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"2fa_recovery_codes" => [
|
"2fa_recovery_codes" => [
|
||||||
|
|
Loading…
Reference in a new issue