35 lines
2.1 KiB
Go
35 lines
2.1 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 TableNameUser = "user"
|
|
|
|
// User 用户
|
|
type User struct {
|
|
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:ID" json:"id"` // ID
|
|
No string `gorm:"column:no;type:varchar(64);not null;index:uk,priority:1;comment:用户号、用户名" json:"no"` // 用户号、用户名
|
|
Nickname string `gorm:"column:nickname;type:varchar(64);not null;comment:昵称" json:"nickname"` // 昵称
|
|
Sign string `gorm:"column:sign;type:varchar(255);not null;comment:签名" json:"sign"` // 签名
|
|
Avatar string `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"avatar"` // 头像
|
|
Password string `gorm:"column:password;type:varchar(64);not null;comment:密码" json:"password"` // 密码
|
|
PassSalt string `gorm:"column:pass_salt;type:varchar(32);not null;comment:密码盐" json:"pass_salt"` // 密码盐
|
|
WxOpenID string `gorm:"column:wx_open_id;type:varchar(64);not null;comment:OPEN ID" json:"wx_open_id"` // OPEN ID
|
|
WxUnionID string `gorm:"column:wx_union_id;type:varchar(64);not null;comment:UNION ID" json:"wx_union_id"` // UNION ID
|
|
DeleteAt *gorm.DeletedAt `gorm:"column:delete_at;type:datetime;comment:del标志" json:"delete_at"` // del标志
|
|
CreateAt time.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` // 创建时间
|
|
UpdateAt time.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` // 更新时间
|
|
}
|
|
|
|
// TableName User's table name
|
|
func (*User) TableName() string {
|
|
return TableNameUser
|
|
}
|