sys_job_log.gen.go 1.8 KB

1234567891011121314151617181920212223242526272829
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package models
  5. import (
  6. "time"
  7. )
  8. const TableNameSysJobLog = "sys_job_log"
  9. // SysJobLog mapped from table <sys_job_log>
  10. type SysJobLog struct {
  11. ID int32 `gorm:"column:id;type:int(10) unsigned;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
  12. JobID int64 `gorm:"column:job_id;type:bigint(20);not null;comment:任务id" json:"job_id"` // 任务id
  13. JobName string `gorm:"column:job_name;type:varchar(255);not null;comment:任务名称(冗余字段)" json:"job_name"` // 任务名称(冗余字段)
  14. InvokeTarget string `gorm:"column:invoke_target;type:varchar(255);not null;comment:调用目标(冗余字段)" json:"invoke_target"` // 调用目标(冗余字段)
  15. Duration int32 `gorm:"column:duration;type:int(11) unsigned;not null;comment:任务执行时间" json:"duration"` // 任务执行时间
  16. Returns string `gorm:"column:returns;type:text;not null;comment:任务调用返回" json:"returns"` // 任务调用返回
  17. Status int32 `gorm:"column:status;type:tinyint(4);not null;comment:调用状态 0发起调用 1成功 2失败" json:"status"` // 调用状态 0发起调用 1成功 2失败
  18. RetryNum int32 `gorm:"column:retry_num;type:tinyint(4) unsigned;not null;comment:重试次数" json:"retry_num"` // 重试次数
  19. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"created_at"` // 创建时间
  20. }
  21. // TableName SysJobLog's table name
  22. func (*SysJobLog) TableName() string {
  23. return TableNameSysJobLog
  24. }