2025-06-20 15:17:15 +08:00
|
|
|
|
// 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 models
|
|
|
|
|
|
|
|
|
|
|
|
import "platform/web/globals/orm"
|
|
|
|
|
|
|
|
|
|
|
|
const TableNameLogsLogin = "logs_login"
|
|
|
|
|
|
|
|
|
|
|
|
// LogsLogin mapped from table <logs_login>
|
|
|
|
|
|
type LogsLogin struct {
|
|
|
|
|
|
ID int32 `gorm:"column:id;type:integer;primaryKey;autoIncrement:true;comment:登录日志ID" json:"id"` // 登录日志ID
|
|
|
|
|
|
IP string `gorm:"column:ip;type:character varying(45);not null;comment:IP地址" json:"ip"` // IP地址
|
2025-11-17 18:38:10 +08:00
|
|
|
|
UA string `gorm:"column:ua;type:character varying(255);not null;comment:用户代理" json:"ua"` // 用户代理
|
2025-06-20 15:17:15 +08:00
|
|
|
|
GrantType string `gorm:"column:grant_type;type:character varying(255);not null;comment:授权类型:authorization_code-授权码模式,client_credentials-客户端凭证模式,refresh_token-刷新令牌模式,password-密码模式" json:"grant_type"` // 授权类型:authorization_code-授权码模式,client_credentials-客户端凭证模式,refresh_token-刷新令牌模式,password-密码模式
|
|
|
|
|
|
PasswordGrantType string `gorm:"column:password_grant_type;type:character varying(255);not null;comment:密码模式子授权类型:password-账号密码,phone_code-手机验证码,email_code-邮箱验证码" json:"password_grant_type"` // 密码模式子授权类型:password-账号密码,phone_code-手机验证码,email_code-邮箱验证码
|
|
|
|
|
|
Success bool `gorm:"column:success;type:boolean;not null;comment:登录是否成功" json:"success"` // 登录是否成功
|
|
|
|
|
|
UserID *int32 `gorm:"column:user_id;type:integer;comment:用户ID" json:"user_id"` // 用户ID
|
2025-11-17 18:38:10 +08:00
|
|
|
|
Time orm.LocalDateTime `gorm:"column:time;type:timestamp without time zone;not null;comment:登录时间" json:"time"` // 登录时间
|
2025-06-20 15:17:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TableName LogsLogin's table name
|
|
|
|
|
|
func (*LogsLogin) TableName() string {
|
|
|
|
|
|
return TableNameLogsLogin
|
|
|
|
|
|
}
|