/**
 *@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;

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysJob",description="定时任务调度表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_job",comment="定时任务调度表",pk_constraint="PRIMARY")
public class TSysJob implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7738347652434503515L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:BIGINT
	 */
	@Schema(name="jobId",description="任务ID",nullable=false)
	@Id
	@Column(name="job_id",comment="任务ID",length=19L,type=java.sql.Types.BIGINT,nullable=false,autoIncrement=true)
	private BigInteger jobId;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="jobName",description="任务名称",nullable=false)
	@Id
	@Column(name="job_name",comment="任务名称",length=64L,type=java.sql.Types.VARCHAR,nullable=false)
	private String jobName;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="jobGroup",description="任务组名",nullable=false)
	@Id
	@Column(name="job_group",comment="任务组名",length=64L,defaultValue="DEFAULT",type=java.sql.Types.VARCHAR,nullable=false)
	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="cronExpression",description="cron执行表达式",nullable=true)
	@Column(name="cron_expression",comment="cron执行表达式",length=255L,type=java.sql.Types.VARCHAR,nullable=true)
	private String cronExpression;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="misfirePolicy",description="计划执行错误策略（1立即执行 2执行一次 3放弃执行）",nullable=true)
	@Column(name="misfire_policy",comment="计划执行错误策略（1立即执行 2执行一次 3放弃执行）",length=20L,defaultValue="3",type=java.sql.Types.VARCHAR,nullable=true)
	private String misfirePolicy;
	
	/**
	 * jdbcType:CHAR
	 */
	@Schema(name="concurrent",description="是否并发执行（0允许 1禁止）",nullable=true)
	@Column(name="concurrent",comment="是否并发执行（0允许 1禁止）",length=1L,defaultValue="1",type=java.sql.Types.CHAR,nullable=true)
	private String concurrent;
	
	/**
	 * 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="createBy",description="创建者",nullable=true)
	@Column(name="create_by",comment="创建者",length=64L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String createBy;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="createTime",description="创建时间",nullable=true)
	@Column(name="create_time",comment="创建时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime createTime;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="updateBy",description="更新者",nullable=true)
	@Column(name="update_by",comment="更新者",length=64L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String updateBy;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="updateTime",description="更新时间",nullable=true)
	@Column(name="update_time",comment="更新时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime updateTime;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="remark",description="备注信息",nullable=true)
	@Column(name="remark",comment="备注信息",length=500L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String remark;
	
	/** default constructor */
	public TSysJob() {
	}
	
	/** pk constructor */
	public TSysJob(BigInteger jobId,String jobName,String jobGroup)
	{
		this.jobId=jobId;
		this.jobName=jobName;
		this.jobGroup=jobGroup;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
