/**
 *@Generated by sagacity-quickvo 5.0
 */
package cn.pojo.entity;

import java.io.Serializable;
import cn.orm.sqltoy.config.annotation.Entity;
import cn.orm.sqltoy.config.annotation.Id;
import cn.orm.sqltoy.config.annotation.Column;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigInteger;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import java.util.Date;

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysJobLog",description="定时任务调度日志表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_job_log",comment="定时任务调度日志表",pk_constraint="PRIMARY")
public class TSysJobLog implements Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 5542880393027162327L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:BIGINT
	 */
	@Schema(name="id",description="任务日志ID",nullable=false)
	@Id(strategy="identity")
	@Column(name="id",comment="任务日志ID",length=19L,type=java.sql.Types.BIGINT,nullable=false,autoIncrement=true)
	private BigInteger id;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="jobName",description="任务名称",nullable=true)
	@Column(name="job_name",comment="任务名称",length=64L,type=java.sql.Types.VARCHAR,nullable=true)
	private String jobName;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="jobGroup",description="任务组名",nullable=true)
	@Column(name="job_group",comment="任务组名",length=64L,type=java.sql.Types.VARCHAR,nullable=true)
	private String jobGroup;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="invokeTarget",description="调用目标字符串",nullable=true)
	@Column(name="invoke_target",comment="调用目标字符串",length=500L,type=java.sql.Types.VARCHAR,nullable=true)
	private String invokeTarget;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="jobMessage",description="日志信息",nullable=true)
	@Column(name="job_message",comment="日志信息",length=500L,type=java.sql.Types.VARCHAR,nullable=true)
	private String jobMessage;
	
	/**
	 * jdbcType:CHAR
	 */
	@Schema(name="status",description="执行状态（0正常 1失败）",nullable=true)
	@Column(name="status",comment="执行状态（0正常 1失败）",length=1L,type=java.sql.Types.CHAR,nullable=true)
	private String status;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="exceptionInfo",description="异常信息",nullable=true)
	@Column(name="exception_info",comment="异常信息",length=500L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String exceptionInfo;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="createTime",description="创建时间",nullable=true)
	@Column(name="create_time",comment="创建时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
	private LocalDateTime createTime;
	
	/** default constructor */
	public TSysJobLog() {
	}
	
	/** pk constructor */
	public TSysJobLog(BigInteger id)
	{
		this.id=id;
	}
/*---end-auto-generate-don't-update-this-area--*/
	
	/**开始时间 */	
	@JsonIgnore
    private Date startTime = new Date();
	/** 停止时间  */
	@JsonIgnore
    private Date stopTime;
}
