mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
3695aa8140
This is a massive overhaul to the SQL Storage for Authelia. It facilitates a whole heap of utility commands to help manage the database, primary keys, ensures all database requests use a context for cancellations, and paves the way for a few other PR's which improve the database. Fixes #1337
11 lines
287 B
Go
11 lines
287 B
Go
package models
|
|
|
|
// U2FDevice represents a users U2F device row in the database.
|
|
type U2FDevice struct {
|
|
ID int `db:"id"`
|
|
Username string `db:"username"`
|
|
Description string `db:"description"`
|
|
KeyHandle []byte `db:"key_handle"`
|
|
PublicKey []byte `db:"public_key"`
|
|
}
|