package com.cool.store.entity;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;

@Table(name = "zxjp_message_template")
@Data
public class MessageTemplateDO {
    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 消息编码(唯一标识)
     */
    @Column(name = "message_code")
    private String messageCode;

    /**
     * 模块编码
     */
    @Column(name = "module_code")
    private Integer moduleCode;

    /**
     * 事项类型
     */
    @Column(name = "matter_type")
    private Integer matterType;

    /**
     * 消息标题
     */
    @Column(name = "message_title")
    private String messageTitle;

    /**
     * 系统来源
     */
    @Column(name = "system_source")
    private String systemSource;

    /**
     * 处理类型(1:仅阅读 2:需要处理)
     */
    @Column(name = "process_type")
    private Integer processType;

    /**
     * 提醒类型(1:持续提醒 2:阶段提醒 )
     */
    @Column(name = "remind_type")
    private Integer remindType;

    /**
     * 提醒时间段 开始时间
     */
    @Column(name = "remind_start_time")
    private Date remindStartTime;

    /**
     * 提醒时间段 结束时间
     */
    @Column(name = "remind_end_time")
    private Date remindEndTime;

    /**
     * 截止日期
     */
    private Date deadline;

    /**
     * 今日必办标识(0:否 1:是)
     */
    @Column(name = "today_task")
    private Integer todayTask;

    /**
     * 消息图片URL
     */
    @Column(name = "message_image")
    private String messageImage;

    /**
     * 发布状态(0:未发布 1:已发布 2:已撤销)
     */
    @Column(name = "publish_status")
    private Integer publishStatus;

    /**
     * 发布时间
     */
    @Column(name = "publish_time")
    private Date publishTime;

    /**
     * 发布人ID
     */
    @Column(name = "publisher_user_id")
    private String publisherUserId;

    /**
     * 创建人ID
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新人ID
     */
    @Column(name = "updater_user_id")
    private String updaterUserId;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 删除标记(0:未删除 1:已删除)
     */
    private Boolean deleted;

    /**
     * 消息详情(富文本内容)
     */
    @Column(name = "message_content")
    private String messageContent;

    /**
     * 处理人信息 [{type:person,value:}{type:position,value:}]
     */
    @Column(name = "handle_person_info")
    private String handlePersonInfo;

    /**
     * 门店范围 [{type:store,value:}{type:region,value:}]
     */
    @Column(name = "store_info")
    private String storeInfo;

    @Column(name = "jump_type")
    private Integer jumpType;
    @Column(name = "jump_url")
    private String jumpUrl;

    @Column(name = "handle_keyword")
    private String handleKeyword;


}