Better Dashboard

This commit is contained in:
2024-01-30 17:57:23 +08:00
parent cd71bbad5f
commit 2a32c8b2f6
12 changed files with 271 additions and 12 deletions

View File

@ -25,6 +25,7 @@ type Account struct {
Challenges []AuthChallenge `json:"challenges"`
Factors []AuthFactor `json:"factors"`
Contacts []AccountContact `json:"contacts"`
Events []ActionEvent `json:"events"`
MagicTokens []MagicToken `json:"-" gorm:"foreignKey:AssignTo"`
ThirdClients []ThirdClient `json:"clients"`
ConfirmedAt *time.Time `json:"confirmed_at"`

12
pkg/models/events.go Normal file
View File

@ -0,0 +1,12 @@
package models
type ActionEvent struct {
BaseModel
Type string `json:"type"`
Target string `json:"target"`
Location string `json:"location"`
IpAddress string `json:"ip_address"`
UserAgent string `json:"user_agent"`
AccountID uint `json:"account_id"`
}