42 lines
1.9 KiB
Go
42 lines
1.9 KiB
Go
package model
|
|
|
|
// User 用户模型
|
|
type User struct {
|
|
//ID uint64 `gorm:"primarykey;" json:"id" form:"id"`
|
|
//CreateAt int64 `gorm:"not null"`
|
|
//DeletedAt int64 `gorm:"not null"`
|
|
Model
|
|
MgmtUserId uint64 `gorm:"column:mgmt_user_id;not null;unique;comment:账号id"`
|
|
MgmtArtistId string `gorm:"column:mgmt_artist_id;type:varchar(256) not null;comment:艺术家id"`
|
|
Account string `gorm:"type:varchar(256) not null"`
|
|
MnemonicWords string `gorm:"type:varchar(256) not null"`
|
|
TelNum string `gorm:"type:varchar(20) not null"`
|
|
Name string `gorm:"type:varchar(20) not null"`
|
|
PenName string `gorm:"type:varchar(20) not null"`
|
|
StageName string `gorm:"type:varchar(20) not null"`
|
|
JoinAssoTime string `gorm:"type:varchar(64) not null"`
|
|
CertificateNum string `gorm:"type:varchar(16) not null"`
|
|
CertificateImg string `gorm:"type:varchar(512) not null"`
|
|
Key string `gorm:"type:varchar(16) not null"`
|
|
RealNameID int32 `gorm:"not null"`
|
|
IDNum string `gorm:"type:varchar(18) not null"`
|
|
Sex int32 `gorm:"not null"`
|
|
Ruler int64 `gorm:"not null"`
|
|
OpenId string `gorm:"type:varchar(2048) not null"`
|
|
CustomerId string `gorm:"type:varchar(2048) not null"`
|
|
Age int32 `gorm:"not null"`
|
|
Introduct string `gorm:"type:varchar(2048) not null"`
|
|
ConAddress string `gorm:"type:varchar(2048) not null"`
|
|
Photo string `gorm:"type:varchar(2048) not null"`
|
|
Video string `gorm:"type:varchar(256) not null"`
|
|
IsRealName int64 `gorm:"not null"`
|
|
IsFdd int64 `gorm:"not null"`
|
|
FddState int64 `gorm:"not null"`
|
|
WxAccount string `gorm:"type:varchar(256) not null"`
|
|
IsLock bool `gorm:"not null"`
|
|
InvitedCode string `gorm:"type:varchar(16) default ''"`
|
|
IsRead int32 `gorm:"not null"`
|
|
IsImport int32 `gorm:"not null"`
|
|
Enable bool `gorm:"not null"`
|
|
}
|