生成表结构、
This commit is contained in:
30
internal/model/do/users.go
Normal file
30
internal/model/do/users.go
Normal file
@ -0,0 +1,30 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Users is the golang structure of table users for DAO operations like Where/Data.
|
||||
type Users struct {
|
||||
g.Meta `orm:"table:users, do:true"`
|
||||
Id interface{} // 用户唯一标识符
|
||||
WxOpenId interface{} // 微信 OpenID
|
||||
Username interface{} // 用户名
|
||||
Nickname interface{} // 昵称
|
||||
Avatar interface{} // 用户头像URL
|
||||
PasswordHash interface{} // 密码哈希
|
||||
Email interface{} // 邮箱地址
|
||||
PhoneNumber interface{} // 手机号
|
||||
WxPopenId interface{} // 微信 PopenID
|
||||
QqPopenId interface{} // QQ PopenID
|
||||
FirstVisitAt *gtime.Time // 首次访问时间
|
||||
LastLoginAt *gtime.Time // 最后登录时间
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间
|
||||
}
|
||||
Reference in New Issue
Block a user