2021-11-23 09:45:38 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// AuthenticationAttempt represents an authentication attempt row in the database.
|
|
|
|
type AuthenticationAttempt struct {
|
|
|
|
ID int `db:"id"`
|
|
|
|
Time time.Time `db:"time"`
|
|
|
|
Successful bool `db:"successful"`
|
2021-11-29 03:09:14 +00:00
|
|
|
Banned bool `db:"banned"`
|
2021-11-23 09:45:38 +00:00
|
|
|
Username string `db:"username"`
|
|
|
|
Type string `db:"auth_type"`
|
2021-12-03 00:04:11 +00:00
|
|
|
RemoteIP NullIP `db:"remote_ip"`
|
2021-11-23 09:45:38 +00:00
|
|
|
RequestURI string `db:"request_uri"`
|
|
|
|
RequestMethod string `db:"request_method"`
|
|
|
|
}
|