Commit 8abdbf41 authored by luxq's avatar luxq

add new field in tasktype

parent f1486e03
......@@ -4,11 +4,11 @@ import "testing"
func init() {
DbInit(DbConfig{
Host: "192.168.1.211",
Host: "43.198.252.255",
Port: 3306,
User: "root",
Passwd: "12345678",
DbName: "liuxuzhong",
User: "ai",
Passwd: "RFnnKHRar5xk7TEF",
DbName: "ai",
})
}
......
......@@ -25,6 +25,7 @@ type TaskType struct {
Kind int `orm:"column(kind)" db:"kind" json:"kind" form:"kind"` // 任务类型 0=系统任务,1=计算任务,2=自定义任务,3=标准任务
BaseModel string `orm:"column(base_model)" json:"base_model" db:"base_model" form:"base_model"`
Model string `orm:"column(model)" json:"model" db:"model" form:"model"`
ResultFileExpires int `orm:"column(result_file_expires)" json:"result_file_expires" db:"result_file_expires" form:"result_file_expires"`
CreatedTime time.Time `orm:"column(created_time)" db:"created_time" json:"created_time" form:"created_time"` // 创建时间
UpdatedTime time.Time `orm:"column(updated_time)" db:"updated_time" json:"updated_time" form:"updated_time"` // 更新时间
Deleted int64 `orm:"column(deleted)" db:"deleted" json:"deleted" form:"deleted"` // 逻辑删除
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment