package com.inkasso.factoring.system.message.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.inkasso.adapter.bean.RelationBaseBean;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Setter;
import lombok.Getter;

import java.util.Date;


/**
* @author 张超
* @date  2023-08-18
*/
@Getter
@Setter
@TableName("kfb_sys_msg")
public class MessageDO extends RelationBaseBean {

    private static final long serialVersionUID = 1L;


    /**
    * 消息类型
    */
    @TableField("msg_type")
    private Integer msgType;

    /**
     * 业务类型
     */
    @TableField("business_type")
    private String  businessType;

    /**
    * 消息标题
    */
    @TableField("msg_title")
    private String msgTitle;

    /**
    * 消息内容
    */
    @TableField("msg_content")
    private String msgContent;

    /**
    * 该条消息绑定的业务数据id
    */
    @TableField("object_id")
    private String objectId;

    /**
    * 接收人用户id
    */
    @TableField("receive_user_id")
    private Long receiveUserId;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private Long tenantId;

    /**
    * 阅读状态
    */
    @TableField("read_status")
    private Boolean readStatus;

    /**
    * 处理状态
    */
    @TableField("deal_status")
    private Boolean dealStatus;

    /**
     * 处理时间
     */
    @TableField("deal_time")
    private Date dealTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private Date createTime;

}
