mirror of
https://git.oceanpay.cc/danial/kami_scripts.git
synced 2025-12-18 22:13:23 +00:00
35 lines
1.5 KiB
Go
35 lines
1.5 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"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
const TableNameSysUser = "sys_user"
|
|
|
|
// SysUser mapped from table <sys_user>
|
|
type SysUser struct {
|
|
ID string `gorm:"column:id;primaryKey;comment:ID" json:"id"` // ID
|
|
Username string `gorm:"column:username;not null;comment:账号" json:"username"` // 账号
|
|
NickName string `gorm:"column:nick_name;comment:昵称" json:"nick_name"` // 昵称
|
|
UserPassword string `gorm:"column:user_password;not null;comment:密码" json:"user_password"` // 密码
|
|
IsAdmin int32 `gorm:"column:is_admin;comment:是否是管理员" json:"is_admin"` // 是否是管理员
|
|
UserSalt string `gorm:"column:user_salt" json:"user_salt"`
|
|
UserStatus int32 `gorm:"column:user_status;comment:用户状态" json:"user_status"` // 用户状态
|
|
OtpKey string `gorm:"column:otp_key" json:"otp_key"`
|
|
OtpSecret string `gorm:"column:otp_secret" json:"otp_secret"`
|
|
CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
|
|
}
|
|
|
|
// TableName SysUser's table name
|
|
func (*SysUser) TableName() string {
|
|
return TableNameSysUser
|
|
}
|