✨ GeoIP
This commit is contained in:
@ -5,9 +5,12 @@ import "gorm.io/datatypes"
|
||||
type AuditRecord struct {
|
||||
BaseModel
|
||||
|
||||
Action string `json:"action"`
|
||||
Metadata datatypes.JSONMap `json:"metadata"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
AccountID uint `json:"account_id"`
|
||||
Action string `json:"action"`
|
||||
Metadata datatypes.JSONMap `json:"metadata"`
|
||||
Location *string `json:"location"`
|
||||
CoordinateX *float64 `json:"coordinate_x"`
|
||||
CoordinateY *float64 `json:"coordinate_y"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ type AuthFactor struct {
|
||||
type AuthTicket struct {
|
||||
BaseModel
|
||||
|
||||
Location string `json:"location"`
|
||||
Location *string `json:"location"`
|
||||
CoordinateX *float64 `json:"coordinate_x"`
|
||||
CoordinateY *float64 `json:"coordinate_y"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
StepRemain int `json:"step_remain"`
|
||||
|
@ -5,11 +5,13 @@ import "gorm.io/datatypes"
|
||||
type ActionEvent struct {
|
||||
BaseModel
|
||||
|
||||
Type string `json:"type"`
|
||||
Metadata datatypes.JSONMap `json:"metadata"`
|
||||
Location string `json:"location"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
Type string `json:"type"`
|
||||
Metadata datatypes.JSONMap `json:"metadata"`
|
||||
Location *string `json:"location"`
|
||||
CoordinateX *float64 `json:"coordinate_x"`
|
||||
CoordinateY *float64 `json:"coordinate_y"`
|
||||
IpAddress string `json:"ip_address"`
|
||||
UserAgent string `json:"user_agent"`
|
||||
|
||||
Account Account `json:"account"`
|
||||
AccountID uint `json:"account_id"`
|
||||
|
Reference in New Issue
Block a user