2021-11-23 16:45:38 +07: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 10:09:14 +07:00
|
|
|
Banned bool `db:"banned"`
|
2021-11-23 16:45:38 +07:00
|
|
|
Username string `db:"username"`
|
|
|
|
Type string `db:"auth_type"`
|
2021-12-03 07:04:11 +07:00
|
|
|
RemoteIP NullIP `db:"remote_ip"`
|
2021-11-23 16:45:38 +07:00
|
|
|
RequestURI string `db:"request_uri"`
|
|
|
|
RequestMethod string `db:"request_method"`
|
|
|
|
}
|