This commit is contained in:
Joe
2026-01-16 15:49:34 +08:00
commit 550d3e1f42
380 changed files with 62024 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package models
import (
"github.com/goravel/framework/database/orm"
)
type LoginLog struct {
orm.Model
AdminID uint `gorm:"index;comment:管理员ID"`
Admin Admin `gorm:"foreignKey:AdminID"`
Username string `gorm:"size:50;comment:用户名"`
IP string `gorm:"size:50;comment:IP地址"`
UserAgent string `gorm:"size:500;comment:用户代理"`
Location string `gorm:"size:100;comment:登录地点"`
Status uint8 `gorm:"default:1;comment:状态 1:成功 0:失败"`
Message string `gorm:"size:255;comment:登录信息"`
Request string `gorm:"type:text;comment:请求数据"`
}