fonchain-artistinfo/cmd/model/contract.go
2022-12-09 16:24:12 +08:00

24 lines
771 B
Go

package model
import (
"gorm.io/gorm"
)
// Contract 用户模型
type Contract struct {
gorm.Model
ID int32 `gorm:"not null"`
UserId int `gorm:"not null"`
CardId string `gorm:"type:varchar(256) default ''"`
MgmtUserId string `gorm:"not null"`
ArtworkId string `gorm:"type:varchar(256) default ''"`
ContractId string `gorm:"type:varchar(256) default ''"`
TransactionId string `gorm:"type:varchar(256) default '' "`
Type int `gorm:"not null"`
BatchId int `gorm:"not null"`
BatchName string `gorm:"type:varchar(256) default '' "`
ViewUrl string `gorm:"type:varchar(256) default ''"`
DownloadUrl string `gorm:"type:varchar(256) default ''"`
State int `gorm:"not null"`
}