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"`
|
|
|
|
RemoteIP IPAddress `db:"remote_ip"`
|
|
|
|
RequestURI string `db:"request_uri"`
|
|
|
|
RequestMethod string `db:"request_method"`
|
|
|
|
}
|