You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// 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
const TableNameCronLog = "cron_log"
// CronLog mapped from table <cron_log>
type CronLog struct {
ID int64 ` gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id" `
ExecAt int64 ` gorm:"column:exec_at;type:bigint;not null;index:idx_exec_at_status,priority:1;comment:执行时间" json:"exec_at" `
Desc string ` gorm:"column:desc;type:varchar(64);not null;index:idx_desc_exec_at,priority:1;comment:执行任务" json:"desc" `
Machine string ` gorm:"column:machine;type:varchar(32);not null;comment:执行机器IP" json:"machine" `
Total int64 ` gorm:"column:total;type:bigint;not null;comment:处理总数据行数" json:"total" `
SuccessNum int64 ` gorm:"column:success_num;type:bigint;not null;comment:成功总数据行数" json:"success_num" `
FailNum int64 ` gorm:"column:fail_num;type:bigint;not null;comment:失败总数据行数" json:"fail_num" `
ExecStatus int8 ` gorm:"column:exec_status;type:tinyint;not null;index:idx_exec_at_status,priority:2;comment:执行状态( 1-成功, 2-失败)" json:"exec_status" `
ExecFail string ` gorm:"column:exec_fail;type:varchar(255);not null;comment:执行错误信息" json:"exec_fail" `
EndAt int64 ` gorm:"column:end_at;type:bigint;not null;comment:结束时间" json:"end_at" `
}
// TableName CronLog's table name
func ( * CronLog ) TableName ( ) string {
return TableNameCronLog
}