24 lines
771 B
Go
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"`
|
|
}
|