mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:47:10 +00:00
34 lines
2.2 KiB
Go
34 lines
2.2 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 TableNameUserInfo = "user_info"
|
|
|
|
// UserInfo 管理员表
|
|
type UserInfo struct {
|
|
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:主键,自增" json:"id"` // 主键,自增
|
|
UserID string `gorm:"column:user_id;not null;comment:用户登录号" json:"user_id"` // 用户登录号
|
|
Passwd string `gorm:"column:passwd;not null;comment:用户登录密码" json:"passwd"` // 用户登录密码
|
|
Nick string `gorm:"column:nick;not null;default:kity;comment:用户昵称" json:"nick"` // 用户昵称
|
|
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
|
|
IP string `gorm:"column:ip;not null;default:127.0.0.1;comment:用户当前ip" json:"ip"` // 用户当前ip
|
|
Status string `gorm:"column:status;not null;default:active;comment:该用户的状态 active、unactive、delete" json:"status"` // 该用户的状态 active、unactive、delete
|
|
Role string `gorm:"column:role;not null;default:nothing;comment:管理者分配的角色" json:"role"` // 管理者分配的角色
|
|
RoleName string `gorm:"column:role_name;not null;default:普通操作员;comment:操作员分配的角色名称" json:"role_name"` // 操作员分配的角色名称
|
|
OtpSecret string `gorm:"column:otp_secret" json:"otp_secret"`
|
|
OtpKey string `gorm:"column:otp_key" json:"otp_key"`
|
|
CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
|
|
UpdateTime time.Time `gorm:"column:update_time;not null;default:CURRENT_TIMESTAMP;comment:最后一次修改时间" json:"update_time"` // 最后一次修改时间
|
|
}
|
|
|
|
// TableName UserInfo's table name
|
|
func (*UserInfo) TableName() string {
|
|
return TableNameUserInfo
|
|
}
|