// 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 models import ( "time" ) const TableNameSysJobLog = "sys_job_log" // SysJobLog mapped from table type SysJobLog struct { ID int32 `gorm:"column:id;type:int(10) unsigned;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id JobID int64 `gorm:"column:job_id;type:bigint(20);not null;comment:任务id" json:"job_id"` // 任务id JobName string `gorm:"column:job_name;type:varchar(255);not null;comment:任务名称(冗余字段)" json:"job_name"` // 任务名称(冗余字段) InvokeTarget string `gorm:"column:invoke_target;type:varchar(255);not null;comment:调用目标(冗余字段)" json:"invoke_target"` // 调用目标(冗余字段) Duration int32 `gorm:"column:duration;type:int(11) unsigned;not null;comment:任务执行时间" json:"duration"` // 任务执行时间 Returns string `gorm:"column:returns;type:text;not null;comment:任务调用返回" json:"returns"` // 任务调用返回 Status int32 `gorm:"column:status;type:tinyint(4);not null;comment:调用状态 0发起调用 1成功 2失败" json:"status"` // 调用状态 0发起调用 1成功 2失败 RetryNum int32 `gorm:"column:retry_num;type:tinyint(4) unsigned;not null;comment:重试次数" json:"retry_num"` // 重试次数 CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间 } // TableName SysJobLog's table name func (*SysJobLog) TableName() string { return TableNameSysJobLog }