fonchain-artistinfo/cmd/model/old/artistinfo.go

23 lines
956 B
Go
Raw Normal View History

2023-02-28 15:27:00 +00:00
package old
import "github.com/fonchain/fonchain-artistinfo/cmd/model"
2023-01-18 09:03:15 +00:00
2023-02-15 01:10:11 +00:00
// User 用户模型
2023-01-18 09:03:15 +00:00
type ArtistInfo struct {
2023-02-28 15:27:00 +00:00
model.Model
2023-01-18 09:03:15 +00:00
UserId uint `gorm:"not null default:0" json:"userId"`
ArtistId string `gorm:"type:varchar(256) default ''" json:"artistId"`
BankAccount string `gorm:"type:varchar(25) not null" json:"bankAccount"`
BankName string `gorm:"type:varchar(25) not null" json:"bankName"`
Introduct string `gorm:"type:text not null" json:"introduct"`
CountryArtLevel string `gorm:"type:varchar(256) default ''" json:"countryArtLevel"`
ArtistCertPic string `gorm:"type:varchar(256) default ''" json:"artistCertPic"`
Remark string `gorm:"type:varchar(256) default ''" json:"remark"`
Remark2 string `gorm:"type:varchar(256) default ''" json:"remark2"`
State uint `gorm:"not null default:0" json:"state"`
}
func (a ArtistInfo) TableName() string {
2023-02-22 02:47:04 +00:00
return "sys_artist_info"
}