mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-05 05:37:41 +08:00
22 lines
384 B
Go
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"
|
|
}
|