Files
kami_scripts/order/model/sys_user_login_log.gen.go

38 lines
1.6 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameSysUserLoginLog = "sys_user_login_log"
// SysUserLoginLog mapped from table <sys_user_login_log>
type SysUserLoginLog struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
UserID string `gorm:"column:user_id" json:"user_id"`
/*
登录名
*/
LoginName string `gorm:"column:login_name;comment:登录名\n" json:"login_name"`
IPAddr string `gorm:"column:ip_addr;comment:登录IP" json:"ip_addr"` // 登录IP
LoginLocation string `gorm:"column:login_location;comment:登录地点" json:"login_location"` // 登录地点
UserAgent string `gorm:"column:user_agent" json:"user_agent"`
Browser string `gorm:"column:browser" json:"browser"`
Os string `gorm:"column:os" json:"os"`
CreatedAt time.Time `gorm:"column:created_at;comment:登录时间" json:"created_at"` // 登录时间
Status int32 `gorm:"column:status;comment:登录状态 1登录成功2登录失败" json:"status"` // 登录状态 1登录成功2登录失败
Message string `gorm:"column:message" json:"message"`
LoginTime time.Time `gorm:"column:login_time;comment:登录时长" json:"login_time"` // 登录时长
Module string `gorm:"column:module" json:"module"`
}
// TableName SysUserLoginLog's table name
func (*SysUserLoginLog) TableName() string {
return TableNameSysUserLoginLog
}