fonchain-artistinfo/cmd/model/user.go

54 lines
2.5 KiB
Go
Raw Normal View History

2023-01-18 09:03:15 +00:00
package model
import (
"gorm.io/plugin/soft_delete"
)
2023-01-18 09:03:15 +00:00
// User 用户模型
type User struct {
2023-02-15 01:10:11 +00:00
Model
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:int(11)" json:"deletedAt"`
MgmtAccId int64 `gorm:"column:mgmt_acc_id;not null;uniqueIndex:mgmt_acc_mgmt_artist_idx;comment:账号id"`
MgmtArtistId string `gorm:"column:mgmt_artist_id;type:varchar(256);not null;uniqueIndex:mgmt_acc_mgmt_artist_idx;comment:艺术家id"`
TelNum string `gorm:"type:varchar(20);not null;电话号码"`
InvitedCode string `gorm:"column:invited_code;type:varchar(16);default:'';comment:邀请码"`
// 实名认证
IsRealName int64 `gorm:"column:is_real_name;not null;是否实名认证:0未认证 1已认证"`
RealNameId int64 `gorm:"column:real_name_id"`
RealNameInfo *RealName `gorm:"foreignKey:RealNameId"`
// 法大大认证
FddState int64 `gorm:"column:fdd_state;not null;comment:法大大认证状态0未认证 2已认证"`
CustomerId string `gorm:"column:costumer_id;type:varchar(2048);not null;comment:法大大客户id"`
OpenId string `gorm:"openId"`
//用户状态
IsRead int64 `gorm:"not null;comment:条款阅读状态"`
IsLock bool `gorm:"not null;comment:画家锁定状态"`
//IsFdd int64 `gorm:"column:is_fdd;not null;comment:"`
//Account string `gorm:"type:varchar(256) not null"`
//Name string `gorm:"type:varchar(20) not null"`
//MnemonicWords string `gorm:"type:varchar(256) 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"`
//OpenId 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"`
//WxAccount string `gorm:"type:varchar(256) not null"`
}
func (u User) TableName() string {
return "user"
2023-01-18 09:03:15 +00:00
}