mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-08-12 18:50:58 +00:00
9ccff4efbc
- Sync backend and frontend from GeekAI Plus v4.3.0 - Remove commercial License flows and update open-source deployment defaults - Preserve Docker Compose deployment and bump image tags to v4.3.0 BREAKING CHANGE: commercial License configuration and related endpoints are removed
23 lines
1.3 KiB
Go
23 lines
1.3 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
type ImageJob struct {
|
|
Id uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserId uint `gorm:"column:user_id;type:int(11);not null;comment:用户ID" json:"user_id"`
|
|
Prompt string `gorm:"column:prompt;type:text;not null;comment:提示词" json:"prompt"`
|
|
Params string `gorm:"column:params;type:text;not null;comment:任务参数" json:"params"`
|
|
TaskId string `gorm:"column:task_id;type:varchar(64);comment:Kapon 异步任务 ID" json:"task_id"`
|
|
ImgURL string `gorm:"column:img_url;type:varchar(255);not null;comment:图片地址" json:"img_url"`
|
|
OrgURL string `gorm:"column:org_url;type:varchar(1024);comment:原图地址" json:"org_url"`
|
|
Publish int `gorm:"column:publish;type:tinyint(1);not null;comment:是否发布" json:"publish"`
|
|
Power int `gorm:"column:power;type:smallint;not null;comment:消耗算力" json:"power"`
|
|
Progress int `gorm:"column:progress;type:smallint;not null;comment:任务进度" json:"progress"`
|
|
ErrMsg string `gorm:"column:err_msg;type:varchar(1024);not null;comment:错误信息" json:"err_msg"`
|
|
CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
|
|
}
|
|
|
|
func (m *ImageJob) TableName() string {
|
|
return "geekai_image_jobs"
|
|
}
|