package com.sqx.modules.chat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.firstLogin.entity.HrEntity;
import com.sqx.modules.resumes.entity.Company;
import com.sqx.modules.resumes.entity.PostPush;
import com.sqx.modules.resumes.entity.Resumes;
import lombok.Data;


/**
 * 聊天会话对象 chat_conversation
 *
 * @author fang
 * @date 2020-03-17
 */
@Data
@TableName("chat_conversation")
public class ChatConversation {
    private static final long serialVersionUID = 1L;

    /**
     * 聊天会话id
     */
    @TableId(type = IdType.AUTO)
    private Long chatConversationId;

    /**
     * 发起人id
     */
    private Long userId;

    /**
     * 接收人id
     */
    private Long focusedUserId;

    /**
     * 状态
     */
    private Long status;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 备注
     */
    private String remark;

    private Integer isSendMsg;

    private Integer isWxMsg;

    private Integer type;

    private Long postPushId;

    private Long resumesId;

    private Integer userType;
    /**
     * 是否已发送微信 0未发送 1已发送
     */
    private Integer isSendWx;
    /**
     * 是否已发送手机号 0未发送 1已发送
     */
    private Integer isSendPhone;
    /**
     * 是否已发送简历 0未发送 1已发送
     */
    private Integer isSendResumes;

    @TableField(exist = false)
    private String messageType;
    @TableField(exist = false)
    private Resumes resumes;
    @TableField(exist = false)
    private UserEntity userEntity;
    @TableField(exist = false)
    private PostPush postPush;
    @TableField(exist = false)
    private HrEntity hr;
    @TableField(exist = false)
    private Company company;

}
