-
Notifications
You must be signed in to change notification settings - Fork 7
/
sys_jobs.gen.go
38 lines (32 loc) · 2.19 KB
/
sys_jobs.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysJob = "sys_jobs"
// SysJob mapped from table <sys_jobs>
type SysJob struct {
ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
JobName string `gorm:"column:job_name;type:varchar(255);not null;comment:任务名称" json:"job_name"`
JobGroup string `gorm:"column:job_group;type:varchar(255);comment:任务组" json:"job_group"`
JobType int32 `gorm:"column:job_type;type:tinyint(2);comment:任务类型" json:"job_type"`
CronExpression string `gorm:"column:cron_expression;type:varchar(255);comment:cron表达式" json:"cron_expression"`
InvokeTarget string `gorm:"column:invoke_target;type:varchar(255);comment:调用目标" json:"invoke_target"`
Args string `gorm:"column:args;type:varchar(255);comment:目标参数" json:"args"`
MisfirePolicy int32 `gorm:"column:misfire_policy;type:tinyint(2);comment:执行策略" json:"misfire_policy"`
Concurrent int32 `gorm:"column:concurrent;type:tinyint(2);default:2;comment:是否并发 1=是 2=否" json:"concurrent"`
Status int32 `gorm:"column:status;type:tinyint(2);default:1;comment:1=正常 2=异常" json:"status"`
EntryID int32 `gorm:"column:entry_id;type:int(11);comment:job启动时返回的id" json:"entry_id"`
CreateBy string `gorm:"column:create_by;type:varchar(128);comment:创建人" json:"create_by"`
UpdateBy string `gorm:"column:update_by;type:varchar(128);comment:更新者" json:"update_by"`
CreatedAt time.Time `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}
// TableName SysJob's table name
func (*SysJob) TableName() string {
return TableNameSysJob
}