32 lines
1.5 KiB
Go
32 lines
1.5 KiB
Go
package model
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// User 用户模型
|
|
type Artwork struct {
|
|
gorm.Model
|
|
ID int32 `gorm:"not null" json:"id"`
|
|
ArtistId int32 `gorm:"not null" json:"artistId"`
|
|
Name string `gorm:"type:varchar(256) not null" json:"name"`
|
|
ArtworkId string `gorm:"type:varchar(256) default ''" json:"artworkId"`
|
|
ModelYear string `gorm:"type:varchar(256) not null" json:"modelYear"`
|
|
Photo string `gorm:"type:varchar(1024) not null" json:"photo"`
|
|
BatchId int32 `gorm:"not null" json:"batchId"`
|
|
ArtistPhoto string `gorm:"type:varchar(1024) not null" json:"artistPhoto"`
|
|
CreateAddress string `gorm:"type:varchar(256) not null" json:"createAddress"`
|
|
Width int32 `gorm:"not null" json:"width"`
|
|
Height int32 `gorm:"not null" json:"height"`
|
|
Ruler int32 `gorm:"not null" json:"ruler"`
|
|
AgeOfCreation string `gorm:"type:varchar(56) default ''" json:"ageOfCreation"`
|
|
CreateTime string `gorm:"type:varchar(20) not null" json:"createTime"`
|
|
Introduct string `gorm:"type:varchar(2048) not null" json:"introduct"`
|
|
NetworkTrace bool `gorm:"not null" json:"networkTrace"`
|
|
FlowState int32 `gorm:"default 0"`
|
|
Url string `gorm:"type:varchar(512) not null" json:"url"`
|
|
Remark string `gorm:"type:varchar(256) default ''" json:"remark"`
|
|
Remark2 string `gorm:"type:varchar(256) default ''" json:"remark2"`
|
|
State int32 `gorm:"not null" json:"state"` //1未上传2已上传3已通过4未通过
|
|
}
|