/**
 *@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="TSysAnnouncement",description="系统通告表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_announcement",comment="系统通告表",pk_constraint="PRIMARY")
public class TSysAnnouncement implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4931708619069383502L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="id",description="",nullable=false)
	@Id(strategy="generator",generator="cn.orm.sqltoy.plugins.id.impl.NanoTimeIdGenerator")
	@Column(name="id",comment="",length=32L,type=java.sql.Types.VARCHAR,nullable=false)
	private String id;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="titile",description="标题",nullable=true)
	@Column(name="titile",comment="标题",length=100L,type=java.sql.Types.VARCHAR,nullable=true)
	private String titile;
	
	/**
	 * jdbcType:TEXT
	 */
	@Schema(name="msgContent",description="内容",nullable=true)
	@Column(name="msg_content",comment="内容",length=65535L,type=java.sql.Types.VARCHAR,nullable=true)
	private String msgContent;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="startTime",description="开始时间",nullable=true)
	@Column(name="start_time",comment="开始时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime startTime;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="endTime",description="结束时间",nullable=true)
	@Column(name="end_time",comment="结束时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime endTime;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="sender",description="发布人",nullable=true)
	@Column(name="sender",comment="发布人",length=100L,type=java.sql.Types.VARCHAR,nullable=true)
	private String sender;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="priority",description="优先级（L低，M中，H高）",nullable=true)
	@Column(name="priority",comment="优先级（L低，M中，H高）",length=255L,type=java.sql.Types.VARCHAR,nullable=true)
	private String priority;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="msgCategory",description="消息类型1:通知公告2:系统消息",nullable=true)
	@Column(name="msg_category",comment="消息类型1:通知公告2:系统消息",length=10L,defaultValue="2",type=java.sql.Types.VARCHAR,nullable=true)
	private String msgCategory;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="msgType",description="通告对象类型（USER:指定用户，ALL:全体用户）",nullable=true)
	@Column(name="msg_type",comment="通告对象类型（USER:指定用户，ALL:全体用户）",length=10L,type=java.sql.Types.VARCHAR,nullable=true)
	private String msgType;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="sendStatus",description="发布状态（0未发布，1已发布，2已撤销）",nullable=true)
	@Column(name="send_status",comment="发布状态（0未发布，1已发布，2已撤销）",length=10L,type=java.sql.Types.VARCHAR,nullable=true)
	private String sendStatus;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="sendTime",description="发布时间",nullable=true)
	@Column(name="send_time",comment="发布时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime sendTime;
	
	/**
	 * jdbcType:DATETIME
	 */
	@Schema(name="cancelTime",description="撤销时间",nullable=true)
	@Column(name="cancel_time",comment="撤销时间",length=19L,type=java.sql.Types.DATE,nullable=true)
	private LocalDateTime cancelTime;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="delFlag",description="删除状态（0，正常，1已删除）",nullable=true)
	@Column(name="del_flag",comment="删除状态（0，正常，1已删除）",length=1L,type=java.sql.Types.VARCHAR,nullable=true)
	private String delFlag;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="busType",description="业务类型(email:邮件 bpm:流程)",nullable=true)
	@Column(name="bus_type",comment="业务类型(email:邮件 bpm:流程)",length=20L,type=java.sql.Types.VARCHAR,nullable=true)
	private String busType;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="busId",description="业务id",nullable=true)
	@Column(name="bus_id",comment="业务id",length=50L,type=java.sql.Types.VARCHAR,nullable=true)
	private String busId;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="openType",description="打开方式(组件：component 路由：url)",nullable=true)
	@Column(name="open_type",comment="打开方式(组件：component 路由：url)",length=20L,type=java.sql.Types.VARCHAR,nullable=true)
	private String openType;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="openPage",description="组件/路由 地址",nullable=true)
	@Column(name="open_page",comment="组件/路由 地址",length=255L,type=java.sql.Types.VARCHAR,nullable=true)
	private String openPage;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="createBy",description="创建人",nullable=true)
	@Column(name="create_by",comment="创建人",length=32L,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=32L,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:TEXT
	 */
	@Schema(name="userIds",description="指定用户",nullable=true)
	@Column(name="user_ids",comment="指定用户",length=65535L,type=java.sql.Types.VARCHAR,nullable=true)
	private String userIds;
	
	/**
	 * jdbcType:TEXT
	 */
	@Schema(name="msgAbstract",description="摘要",nullable=true)
	@Column(name="msg_abstract",comment="摘要",length=65535L,type=java.sql.Types.VARCHAR,nullable=true)
	private String msgAbstract;
	
	/** default constructor */
	public TSysAnnouncement() {
	}
	
	/** pk constructor */
	public TSysAnnouncement(String id)
	{
		this.id=id;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
