Files
yunzerwebsiteallinone/go/models/system_login_log.go
T
2026-08-26 15:01:35 +08:00

25 lines
1.2 KiB
Go

package models
import "time"
// SystemLoginLog 登录日志表 yz_system_login_log
type SystemLoginLog struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
Tid *uint64 `orm:"column(tid);null" json:"tid"`
UserID uint64 `orm:"column(user_id);default(0)" json:"user_id"`
Account string `orm:"column(account);size(64);default('')" json:"account"`
UserName string `orm:"column(user_name);size(64);default('')" json:"user_name"`
TenantName string `orm:"column(tenant_name);size(64);default('')" json:"tenant_name"`
LoginType string `orm:"column(login_type);size(20);default('password')" json:"login_type"`
Status int8 `orm:"column(status);default(1)" json:"status"`
Message string `orm:"column(message);size(255);default('')" json:"message"`
IP string `orm:"column(ip);size(50);default('')" json:"ip"`
UserAgent string `orm:"column(user_agent);size(500);default('')" json:"user_agent"`
CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"`
DeleteTime *time.Time `orm:"column(delete_time);type(datetime);null" json:"delete_time"`
}
func (m *SystemLoginLog) TableName() string {
return "yz_system_login_log"
}