[Database version 1394] Add 2fa_trusted_browser table
This commit is contained in:
parent
0fc5f26ff7
commit
b633d75e6c
2 changed files with 29 additions and 1 deletions
|
@ -348,6 +348,20 @@ return [
|
|||
"PRIMARY" => ["uid", "code"]
|
||||
]
|
||||
],
|
||||
"2fa_trusted_browser" => [
|
||||
"comment" => "Two-factor authentication trusted browsers",
|
||||
"fields" => [
|
||||
"cookie_hash" => ["type" => "varchar(80)", "not null" => "1", "primary" => "1", "comment" => "Trusted cookie hash"],
|
||||
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "foreign" => ["user" => "uid"], "comment" => "User ID"],
|
||||
"user_agent" => ["type" => "text", "comment" => "User agent string"],
|
||||
"created" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the trusted browser was recorded"],
|
||||
"last_used" => ["type" => "datetime", "comment" => "Datetime the trusted browser was last used"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["cookie_hash"],
|
||||
"uid" => ["uid"],
|
||||
]
|
||||
],
|
||||
"addon" => [
|
||||
"comment" => "registered addons",
|
||||
"fields" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue