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

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysPost",description="岗位信息表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_post",comment="岗位信息表",pk_constraint="PRIMARY")
public class TSysPost implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4495708844409518951L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="postId",description="岗位编码",nullable=false)
	@Id(strategy="generator",generator="cn.orm.sqltoy.plugins.id.impl.NanoTimeIdGenerator")
	@Column(name="post_id",comment="岗位编码",length=30L,type=java.sql.Types.VARCHAR,nullable=false)
	private String postId;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="postName",description="岗位名称",nullable=true)
	@Column(name="post_name",comment="岗位名称",length=50L,type=java.sql.Types.VARCHAR,nullable=true)
	private String postName;
	
	/**
	 * jdbcType:INT
	 */
	@Schema(name="postSort",description="显示顺序",nullable=true)
	@Column(name="post_sort",comment="显示顺序",length=10L,type=java.sql.Types.INTEGER,nullable=true)
	private Integer postSort;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="deptId",description="所属部门(保留)",nullable=true)
	@Column(name="dept_id",comment="所属部门(保留)",length=50L,type=java.sql.Types.VARCHAR,nullable=true)
	private String deptId;
	
	/**
	 * jdbcType:INT
	 */
	@Schema(name="postRank",description="职级(保留)",nullable=true)
	@Column(name="post_rank",comment="职级(保留)",length=10L,type=java.sql.Types.INTEGER,nullable=true)
	private Integer postRank;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="companyId",description="所属公司id(保留)",nullable=true)
	@Column(name="company_id",comment="所属公司id(保留)",length=50L,type=java.sql.Types.VARCHAR,nullable=true)
	private String companyId;
	
	/**
	 * jdbcType:CHAR
	 */
	@Schema(name="delFlag",description="删除标志",nullable=true)
	@Column(name="del_flag",comment="删除标志",length=1L,defaultValue="0",type=java.sql.Types.CHAR,nullable=true)
	private String delFlag;
	
	/**
	 * jdbcType:CHAR
	 */
	@Schema(name="status",description="状态",nullable=true)
	@Column(name="status",comment="状态",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=50L,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=54L,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=100L,type=java.sql.Types.VARCHAR,nullable=true)
	private String remark;
	
	/** default constructor */
	public TSysPost() {
	}
	
	/** pk constructor */
	public TSysPost(String postId)
	{
		this.postId=postId;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
