geekai/api/store/model/sd_job.go
2024-01-26 14:50:36 +08:00

22 lines
384 B
Go

package model
import "time"
type SdJob struct {
Id uint `gorm:"primarykey;column:id"`
Type string
UserId int
TaskId string
ImgURL string
Progress int
Prompt string
Params string
Publish bool //是否发布图片到画廊
ErrMsg string // 报错信息
CreatedAt time.Time
}
func (SdJob) TableName() string {
return "chatgpt_sd_jobs"
}