fonchain-artistinfo/cmd/model/user.go

42 lines
1.9 KiB
Go
Raw Normal View History

2023-01-18 09:03:15 +00:00
package model
// User 用户模型
type User struct {
2023-02-17 03:33:56 +00:00
//ID uint64 `gorm:"primarykey;" json:"id" form:"id"`
//CreateAt int64 `gorm:"not null"`
//DeletedAt int64 `gorm:"not null"`
2023-02-15 01:10:11 +00:00
Model
2023-02-17 03:33:56 +00:00
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"`
2023-01-18 09:03:15 +00:00
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"`
2023-02-15 01:39:14 +00:00
FddState int64 `gorm:"not null"`
2023-01-18 09:03:15 +00:00
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"`
}